Article directory
Install opencv in pycharm
1. What is OpenCV?
OpenCV是一个基于Apache2.0许可(开源)发行的跨平台计算机视觉和机器学习软件库,可以运行在Linux、Windows、Android和Mac OS操作系统上。 [1] 它轻量级而且高效——由一系列 C 函数和少量 C++ 类构成,同时提供了Python、Ruby、MATLAB等语言的接口,实现了图像处理和计算机视觉方面的很多通用算法。
————来自百度百科
简单来说,OpenCV是一个开源的计算机视觉库,库中提供了很多函数。
2. Install OpenCV
1. Run pip install opencv-python on the terminal
As shown in the figure below:
If the Chinese plug-in is downloaded, the Terminal will be in Chinese: Terminal
If the anaconda virtual environment is configured, you can enter conda install opencv-python in the terminal
(https://imgblog.csdnimg.cn/bb668aaa568d4b1f9622da61d84e4675.png)
2. Download in the python interpreter
As shown below:
Click on file and select Settings.
Select the Project option, and then click on Python Interpreter (python interpreter).
Then click the plus sign +
to search for opencv-python in the search bar in the figure, and then click Install Package to install the required package.