Hello,
I am new to openCV and have started the tutorials online. I'm using Visual Studio Code and Python and get no error when I just import opencv and python. However, when I run these lines of code:'
import opencv as cv
import numpy
img = cv.imread('photo.jpg')
I get this error:
AttributeError: module 'opencv' has no attribute 'imread' PS C:\Users\OpenCV>
I don't understand why this is happening, if I need to specify more I would gladly do so.
Thank you!