【发布时间】:2018-05-08 01:46:21
【问题描述】:
在查找轮廓时,我收到一个值错误,即“太多值无法解包”
Traceback (most recent call last):
File "C:/Python27/check5.py", line 8, in <module>
contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
ValueError: too many values to unpack
知道为什么会这样吗?
【问题讨论】:
-
请给我们一些代码
-
From the docs -
... in the output, we got three arrays, first is the image, second is our contours, and one more output which we named as hierarchy ...