The code:
import numpy as np
import cv2
img = cv2.imread('/home/pi/Downloads/download.jpg',0)
cv2.imshow(img)
cv2.waitkey(0)
cv2.destroyAllWindows()
Its throwing an error:
Traceback (most recent call last):
File "/home/pi/Exp/opcv.py", line 5, in <module>
cv2.imshow(img)
TypeError: Required argument 'mat' (pos 2) not found
Just trying to open a image using opencv and python. But it shows that funky error. Also i'm very new to both programming and opencv.
Thanks