E1101:Module 'cv2' has no 'imread' member

asked 2018-10-10 06:31:50 -0500

ZJ gravatar image

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

edit retag flag offensive close merge delete

Comments

can it be , you have a python file named cv2.py or a folder named cv2 somewhere ?

berak gravatar imageberak ( 2018-10-10 06:39:21 -0500 )edit

try to run your script from a simple cmdline, NOT from VsCode.

berak gravatar imageberak ( 2018-10-11 07:08:54 -0500 )edit