Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Well, if the background is plain enough, say a solid color, you can do a binary operation to set that color to black, and the rest to white (cv::inRange for example). Then call canny and findContours to get the outline.