How to feed customized images into BackgroundSubtractor?

asked 2020-06-17 22:47:50 -0500

I'm using BackgroundSubtractorMOG2 to detect objects. I've noticed that it kept updating backgrounds automatically.

What I want is to use a procedure to crudely detect the target objects and remove them from the captured photos in the initial part. Than feed them into the subtractor to get prepared for the further detect.

However the function to update subtractor manually seems not exist. I've looked up OpenCV documentary and couldn't find a method to drop or add backgrounds. It just keeps upgrading raw photos from camera.

Is there a solution? Thanks a lot.

edit retag flag offensive close merge delete

Comments

detect the target objects

wait, that's not what it's supposed to do, it has no notion of "objects" or "detection"

berak gravatar imageberak ( 2020-06-18 01:39:55 -0500 )edit