Mistake in "Contours : Getting Started" of OpenCV-Python Tutorials (Bug #4151)
Description
Mistake is that findContours is unpacked just to contours and hierarchy. Though in version 3 it is unpacked to image, contours and hierarchy.
In tutorials now:
contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
Fixed:
_, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
Associated revisions
Merge pull request #4151 from lupustr3:pvlasov/ipp_alignment
History
Updated by Steven Puttemans about 10 years ago
- Status changed from New to Open
- Assignee set to Steven Puttemans
Updated by Steven Puttemans about 10 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/3742
Updated by Maksim Shabunin almost 10 years ago
Thank you!
- Status changed from Open to Done
- Target version set to 3.0