TypeError: Expected Ptr<cv::UMat> for argument ‘image‘

python3+opencv TypeError: Expected Ptr<cv::UMat> for argument ‘image‘
输入的不是UMat格式,使用cv2.UMat(img).get()转化一下

img = cv2.UMat(img).get()

猜你喜欢

转载自blog.csdn.net/weixin_37707670/article/details/118077362