I was making a simple program to take an image from the camera but a strange error has occurred:
Traceback (most recent call last):
File "the path was deleted for stackoverflow", line 3, in <module>
cv2.imshow("",img)
TypeError: Expected Ptr<cv::UMat> for argument 'mat'
And here is the simple code:
import cv2
img = cv2.imread(0)
cv2.imshow("",img)
pls help