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的方法預先進行數據類型轉換。