开发者

Background subtraction

开发者 https://www.devze.com 2022-12-24 17:23 出处:网络
I\'m doing background subtraction usi开发者_运维问答ng opencv. The problem is the foreground object is not always detected correctly. To deal with this I would like to use four or five images, and tak

I'm doing background subtraction usi开发者_运维问答ng opencv. The problem is the foreground object is not always detected correctly. To deal with this I would like to use four or five images, and take their average as the background image. How can I do that?


Perhaps go through all the images, and if the pixel in question is within a certain range of colour variation for all the images, disregard it as background?

Then I suppose the size of the range would determine how picky you were and how confident you are in the stability and consistency of your camera.


You should try using the included background detector in OpenCV (under cvaux.h). They also have blob detector if you want to find object blob.

By combining blob information and optical flow information, you can usually find the foreground object.

0

精彩评论

暂无评论...
验证码 换一张
取 消