Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you need a binary image to use findContours(), not a color (bgr) one, use cvtColor() to get a grayscale image, then threshold() (or Sobel() or Canny() or inRange()) to achieve that.