安装依赖文件:
pip install --upgrade setuptools
pip install numpy Matplotlib
然后安装:pip install opencv-python
测试:import cv2
img = cv2.imread("C:\a.jpg")
cv2.imshow("Image",img)
cv2.waitKey(0)
cv2.destroyAllWindows()