Hacker News new | ask | show | jobs
by logophobia 1490 days ago
Consider using background subtraction for this: https://docs.opencv.org/4.x/d1/dc5/tutorial_background_subtr...

Will make things a little more robust (and overengineered!).

2 comments

I’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?
This 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.
Oh nice, I hadn’t thought of that.
Thanks for the hint!