Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When you detect an object, you shoud get a contour or a rectangle or something that has a retrievable bounding box (perhaps with boundingRec()). Just check that all its points' coordinates are > 0 and less than height - 1 and width - 1.