Looking for a function for motion detection on emgucv

后端 未结 2 504
广开言路
广开言路 2021-01-23 23:23

I am new to emgu cv; I\'m trying to find a code that makes motion detection. I tried this:

CvInvoke.cvAbsDiff(frame, _backgroundImage, BgDifference);

2条回答
  •  孤独总比滥情好
    2021-01-23 23:34

    You can use the MotionHistory class. EmguCV includes an motion detection example (if it doesn't anymore, you can see it here ). With this class, you can get an motionImage, and then you only need to count the pixels to check the biggest area.

提交回复
热议问题