(Practice by yourself) python OpenCV has been installed but the method of import cv2 cannot be used

Recently, I was learning verification code image recognition. After installing pip install opencv-python, I found that the imported method command has shading.

The solution is as follows:

 Find the path to install python. After installing opencv-python , there will be a cv2 folder under site-packages.

Copy the file with the suffix pyd under the cv2 folder to site-packages, copy copy copy. As shown below

There is no such shade of color. 

 

Guess you like

Origin blog.csdn.net/yuanhou110/article/details/128788356