1. First installation anaconda, wherein selecting mounted pip
2.pip _install opencv_pyhon
3. Results
4. Reload python3.7 disposed in the pycharm
5 opencv test whether the installation is successful
1 #!D:/Code/python 2 # -*- coding: utf-8 -*- 3 # @Time : 2019/8/24 17:58 4 # @Author : Johnye 5 # @Site : 6 # @File : 111.py 7 # @Software: PyCharm 8 import cv2 as cv 9 cv.namedWindow("load image") 11 src =cv.imread("D:\wallpaper\desk7702\95727.jpg") 12 cv.imshow("load image",src) 13 cv.waitKey(1000)
Results are as follows