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