Quantcast
Viewing all articles
Browse latest Browse all 40524

Background Subtraction with changing light

Hi,
Perhaps this method:
Take only a part of the camera image, for example the part bounded by the green rectangle in your youtube video
- (1) compute the difference level between the current frame and a frame where nobody is present.
- when the difference level is higher than a threshold, increase the counter.
- wait for the difference level to come back smaller than the threshold.
- goto (1)

The difference level should be a number which give you the similarity between 2 frames. I don't know a convenient or efficient method to compute it with opencv, but I guess it's not difficult. Perhaps compute the difference between the 2 frames, pixel by pixel, then sum all the pixels values from this difference?


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>