How to remove lighting noise?

I have a car detection project in OpenCV2.3.1 and Visual C ++.

In foreground segmentation, reflections appear due to lighting. And this (reflection) becomes part of the foreground after the background has been removed.enter image description here

I need suggestions or ideas on how to remove this noise. As this causes some foreground objects to be connected as a single object, as shown by using findContours and drawContours. See Parts of the image highlighted in red at the top of the attached image. I think this will simplify the blob detection phase.

* note - I am not allowed to use the built-in cvBlobLib in OpenCV

+5
source share
2 answers

, HSV, V

IplImage imgHSV = cvCreateImage(cvGetSize(imgInput), 8, 3);
IplImage imgThreshold = cvCreateImage(cvGetSize(imgHSV), 8, 1);
cvInRangeS(imgHSV, cvScalar(0, 0, 90, 0), cvScalar(0, 0, 100, 0), imgThreshold);

.. ,

+2

, , .

.

, .

, . , . .

+4

All Articles