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.