Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

yes, that seems to have changed.

import cv2

help(cv2.findContours)

Help on built-in function findContours in module cv2:

findContours(...)

findContours(image, mode, method[, contours[, hierarchy[, offset]]]) -> image, contours, hierarchy

(one more return value)

yes, that seems to have changed.

import cv2

help(cv2.findContours)

Help on built-in function findContours in module cv2:

findContours(...)

findContours(image, mode, method[, contours[, hierarchy[, offset]]]) -> image, contours, hierarchy

hierarchy

(one more return value)

yes, that seems to have changed.changed in 3.0.

import cv2

help(cv2.findContours)

Help on built-in function findContours in module cv2:

findContours(...)

findContours(image, mode, method[, contours[, hierarchy[, offset]]]) -> image, contours, hierarchy

(one more return value)

yes, that seems to have changed in 3.0.

import cv2

help(cv2.findContours)

Help on built-in function findContours in module cv2:

findContours(...)

findContours(image, mode, method[, contours[, hierarchy[, offset]]]) -> image, contours, hierarchy


so, you probably need:

_, contours, hierarchy = cv2.findContours(...)

(one more return value)