error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32F || depth ==CV_32S

1692 단어 opencv

[해결] error: (-215:Assertion failed) npoints >= 0 & (depth == CV_32F ||depth == CV_32S) in function'cv:: contourArea'


In OpenCV 3.4:
    image, contours, hierarchy=  cv2.findContours(image, mode, method[, contours[, hierarchy[, offset]]]) 

로 수정


In OpenCV 4.0:
contours, hierarchy= findContours(image, mode, method[, contours[, hierarchy[, offset]]]) 

좋은 웹페이지 즐겨찾기