cv2遇到以下错误时:
> Unsupported depth of input image:
> 'VDepth::contains(depth)'
> where
> 'depth' is 6 (CV_64F)
原因是cv2只支持32位的数据(np.uint8, np.float32)。需要使用numpy的方法预先进行数据类型转换。
cv2遇到以下错误时:
> Unsupported depth of input image:
> 'VDepth::contains(depth)'
> where
> 'depth' is 6 (CV_64F)
原因是cv2只支持32位的数据(np.uint8, np.float32)。需要使用numpy的方法预先进行数据类型转换。