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.
main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6 Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr