Python OpenCV TypeError : "corners is not a numpy array, neither a scalar" -
running opencv findchessboardcorners, error:
ret, corners = cv2.findchessboardcorners(_image, size, cv2.calib_cb_adaptive_thresh+cv2.calib_cb_fast_check+cv2.calib_cb_normalize_image) typeerror: corners not numpy array, neither scalar
this relevant code:
size = (10,6) _image = cv2.imread(filepath, 0) ret, corners = cv2.findchessboardcorners(_image, size, cv2.calib_cb_adaptive_thresh+cv2.calib_cb_fast_check+cv2.calib_cb_normalize_image)
maybe, should this:
ret, corners = cv2.findchessboardcorners(_image, size, flags=cv2.calib_cb_adaptive_thresh+cv2.calib_cb_fast_check+cv2.calib_cb_normalize_image)
based on docs, third parameter corners
, looks expecting flags
.
Comments
Post a Comment