Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

findContours expects white foreground and black background.

if you want it the other way round (detect black things) -- invert the image

img = ~img