5 ms·
Consider using background subtraction for this: https://docs.opencv.org/4.x/d1/dc5/tutorial_background_subtraction.html https://docs.opencv.org/4.x/d1/dc5/tutor
by logophobia 4y ago
Consider using background subtraction for this: https://docs.opencv.org/4.x/d1/dc5/tutorial_background_subtraction.html https://docs.opencv.org/4.x/d1/dc5/tutorial_background_subtr...
Will make things a little more robust (and overengineered!).
- maxmunzel 4y agoThanks for the hint!
- catlifeonmars 4y agoI’m curious, could you somehow make the background model adaptive by averaging a rolling window of camera frames to use as the background model in this?
- maxmunzel 4y agoThis is pretty much what I’m doing. Except that I’m using an exponential moving average so I don’t have to mess with windowing.
- catlifeonmars 4y agoOh nice, I hadn’t thought of that.