pip组件安装
python3.6
1.pip install opencv-contrib-python==3.4.1.15 -i https://pypi.tuna.tsinghua.edu.cn/simple
2. pip install pytesseract==0.3.6 -i https://pypi.tuna.tsinghua.edu.cn/simple
3. python -m pip install --upgrade numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
pip可能要安装Win64OpenSSL
> https://slproweb.com/products/Win32OpenSSL.html
conda组件安装
conda install tensorflow-gpu==2.2 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
验证安装
import cv2 as cv
src=cv.imread("图片路径")
cv.imshow("Input Image",src)
cv.waitKey(0)
cv.destroyALLWindows()