-1
こんにちは、以下のコードを実行している間、上記のエラーに直面しています。ValueError:アンパックする値が多すぎる(期待値2)cv2
img = cv2.imread('034.jpg',0)
ret,thresh = cv2.threshold(img,127,255,0)
contours,hierarchy = cv2.findContours(thresh, 1, 2)
エラー:
File "bb.py", line 6, in contours,hierarchy = cv2.findContours(thresh, 1, 2) ValueError: too many values to unpack (expected 2)
ありがとうございます。 –