abidrahmank / OpenCV2-Python-Tutorials

This repo contains tutorials on OpenCV-Python library using new cv2 interface
1.25k stars 887 forks source link

Fix findContours statement in Getting Started #254

Open shreepads opened 4 years ago

shreepads commented 4 years ago

The Contours: Getting Started document has a findContours() call that fails because it lists three return values: image, contours and hierarchy. However this fails as findContours() only returns two values: contours and hierarchy.

See https://docs.opencv.org/2.4/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#findcontours