开发者

Please help me....I want to know how to code for background subtraction

开发者 https://www.devze.com 2023-01-14 22:09 出处:网络
I\'m just getting started with OpenCV. I came across this question, and I\'m trying to find where that code c开发者_如何学Came from. Any ideas?If you don\'t have reference image of the background then

I'm just getting started with OpenCV. I came across this question, and I'm trying to find where that code c开发者_如何学Came from. Any ideas?


If you don't have reference image of the background then you could try to make an average of first n frames and use such resultant image as a reference. This number, n, could be 20 or similar and it should be enough if the scene isn't too complex. I recommend you to read a chapter about background subtraction in official OpenCV book (http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134) as there are some of other similar techniques presented.

0

精彩评论

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