ValueError: not enough values to unpack (expected 3, got 2)
PythonOpenCV出现这个错误原代码本身为:image,contours,hierarchy=cv.findContours(img,cv.RETR_TREE,cv.CHAIN_APPROX_NONE)修改为:contours,hierarchy=cv.findContours(img,cv.RETR_TREE,cv.CHAIN_APPROX_NONE)出现这个错误是因为OpenCV版本过高