Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Detect cars in video

$
0
0
Hello, I´m new with OpenCV and I want detect cars in a webcam or a video file. This is my current solution: while (Camera.read(RawImage)) { Camera >> RawImage; BackgroundMask(RawImage, Mask); cv::threshold(Mask, BinaryMask, 100, 255, cv::THRESH_BINARY); Mat NewImage(RawImage.rows, RawImage.cols, CV_8UC3, Scalar(0, 255, 0)); RawImage.copyTo(NewImage, BinaryMask); imshow("Rawimage", RawImage); imshow("New Image", NewImage); waitKey(30); } I get a green Image with the filtered cars in it. Now I want to draw a box around this cars. How can I do it in an easy way? Thank you for help :)

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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