开发者

Background subtraction

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜