【发布时间】:2020-10-02 15:06:38
【问题描述】:
我该如何解决?
import numpy as np
import cv2 as cv
im = cv.imread('good.jpg')
imgray = cv.cvtColor(im, cv.COLOR_BGR2GRAY)
ret, thresh = cv.threshold(imgray, 127, 255, 0)
im2, contours, hierarchy = cv.findContours(thresh, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
错误
ValueError: 没有足够的值来解包(预期 3,得到 2)
【问题讨论】:
标签: python opencv image-processing