Answers for "Expected Ptr<cv::UMat> for argument 'img'"

0

Expected Ptr<cv::UMat> for argument 'img'

The image is not in valid type. Use np.float32(image) instead of just image. 
Example:
gray = cv2.cvtColor(np.float32(imgUMat), cv2.COLOR_RGB2GRAY)
Posted by: Guest on July-07-2021

Browse Popular Code Answers by Language