OpenCV2-Python-Tutorials
OpenCV2-Python-Tutorials copied to clipboard
Contours : Getting Started —— the code is wrong
source code:
image, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)
source url: https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_contours/py_contours_begin/py_contours_begin.html?highlight=findcontours