Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Shapes processing and tracking

$
0
0
Until now I can draw shapes from a binary image **maskFrame** into **lastFrame** as follows: cv::Mat lastFrame; std::vector > contours; // frame processing ... findContours(maskFrame, contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE); drawContours(lastFrame, contours, -1, cv::Scalar(0), 2); which should be the standard way.. Now, I would need to *track* these shapes for at least two frames. If I have a shape in **frame(n)**, I would like to know if this shape is also present in **frame(n - 1)** by some possible information I could get, as area of the shape & position inside the frame. Is it possible to achieve this whit some other class ?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>