pip install opencv-python
安装完进行图像读取时import cv2,会提示错误,只需要采用如下方式导入即可:
import cv2
import cv2.cv2 as cv2 cv2.imread()