Background subtraction and Optical flow for tracking object in OpenCV C++
问题 I am working on a project to detect object of interest using background subtraction and track them using optical flow in OpenCV C++. I was able to detect the object of interest using background subtraction. I was able to implement OpenCV Lucas Kanade optical flow on separate program. But, I am stuck at how to these two program in a single program. frame1 holds the actual frame from the video, contours2 are the selected contours from the foreground object. To summarize, how do I feed the