Mistake in "Contours : Getting Started" of OpenCV-Python Tutorials (Bug #4151)


Added by Dmitrii Kozlov about 10 years ago. Updated almost 10 years ago.


Status:Done Start date:2015-01-26
Priority:Low Due date:
Assignee:Steven Puttemans % Done:

0%

Category:documentation
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty:Easy HW Platform:x64
Pull request:https://github.com/Itseez/opencv/pull/3742

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)

Bus is here http://docs.opencv.org/trunk/doc/py_tutorials/py_imgproc/py_contours/py_contours_begin/py_contours_begin.html#contours-getting-started


Associated revisions

Revision 8298644b
Added by Alexander Alekhin over 9 years ago

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

Also available in: Atom PDF