E1101:Module 'cv2' has no 'imread' member
Hi, I received the following errors Windows 10 using Microsoft VsCode [Pylint] E1101:Module 'cv2' has no 'imread' memberFor the following line of code For the following line of code img1 = cv2.imread("dog.jpg") / 255.0
can it be , you have a python file named cv2.py or a folder named cv2 somewhere ?
try to run your script from a simple cmdline, NOT from VsCode.
Hey there! I've also met the same problem when using OpenCV on VsCode platform. My solution is to change the import statement to the form below:
Eventually, cv2 members can be used!
Good luck :)