Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCV: background subtraction under sudden light change

I am working on backgroun subtraction under sudden light change. Is there any example code or way to do this efficiently in OpenCV or IPP? I am reading video frames, so the running time should be very fast. Thanks in advance.

like image 565
E_learner Avatar asked Oct 07 '22 22:10

E_learner


1 Answers

you need to devise some kind of a normalization technique first, where both the frames (one with low lighting and other with a lot of light) would be normalized and should contain values which are very close.

Unfortunately I have had same problem and I could not solve it completely but one way to address this problem is to perform histogram equalization.

After you have done equalization, you can continue with simple background subtraction techniques.

like image 112
masad Avatar answered Oct 10 '22 03:10

masad