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

How to draw a rectangle contours only if largest than specific size

$
0
0
This is i get just now, it will detect and draw rectangle at the 2 largest object, the problem now is it will draw a rectangle when the object is small than the size i want but is the first/second largest in the camera. Requirement : It will draw rectangles at the 1st & 2nd largest object only if when the object largest than 200 * 300 (frame size : 640*480). If the 1st & 2nd object is small than the minimum size so it will not be draw. may i know what should i write in condition if? if ( what should i type here ) { 112 ... 132 line } The codes are in below link ![image description](/upfiles/14528165464017471.jpg) main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6 Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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