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的方法预先进行数据类型转换。
本文标题:opencv-python(cv2)的数据类型要求
本文链接:https://www.haomeiwen.com/subject/znzbgctx.html
网友评论