error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function ‘poi
今天遇到的问题报错:error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function ‘pointSetBoundingRect’原代码contours = contours[0] if imutils.is_cv2() else contours[1](x, y, w, h) = cv2.boundingRect(cnt)报错指向的是第二行修改后
原创
2021-09-29 16:58:51 ·
951 阅读 ·
1 评论