Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.

image description

main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6 Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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.

image description

main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6 http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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.draw. the code are in below link

image description

main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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. the code are in below link

may i know what should i write in condition if? if ( what should i type here ) { 112 ... 132 }

image description

main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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. the code are in below link

may i know what should i write in condition if? if?

if ( what should i type here ) { )

{

112 ... 132 132 line

}

image description

main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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. the code 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

may i know what should i write in condition if?

if ( what should i type here )

{

112 ... 132 line

}

image description

main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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

main,cpp : http://paste.ofcode.org/BneVtmX9Drv9uJ8ihAyuG6http://paste.ofcode.org/AzLK9rri4dwBEipmfwed5M

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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

main,cpp : http://paste.ofcode.org/AzLK9rri4dwBEipmfwed5Mhttp://paste.ofcode.org/cSajEBHRPd2ETdEJPE5mqu

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr

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

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

main,cpp : http://paste.ofcode.org/cSajEBHRPd2ETdEJPE5mqu http://paste.ofcode.org/36TG5U8WTViFNLQiGFcxk

Color.h : http://paste.ofcode.org/WDy2xPwYnaZxLQ9MPpq7fE

Color.cpp : http://paste.ofcode.org/c4yeiyC2tv2t8XwakssuWr