报错代码 :
binary,contours, hierarchy = cv2.findContours(binary, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
报错提示:
not enough values to unpack (expected 3, got 2)
解决方法:
cv版本问题 键入以下代码即可
pip install opencv-python==3.4.3.18
报错代码 :
binary,contours, hierarchy = cv2.findContours(binary, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
报错提示:
not enough values to unpack (expected 3, got 2)
解决方法:
cv版本问题 键入以下代码即可
pip install opencv-python==3.4.3.18