当前位置:网站首页>Pycharm configuring opencv Library
Pycharm configuring opencv Library
2022-07-24 18:11:00 【I love to learn food】
The detour I took : For just started OpenCV Little white of , First contact again pycharm compiler . So in configuration opencv There are many problems in Library .
as follows :
- 1、 If you are directly in Terminal Run interface input 【pip install opencv-python】, Because this visit is foreign , So the download speed is very slow , Finally, it will be saved . But the mirror image of Tsinghua is noted later , It will speed up the download :【pip3 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple】. The same principle can be used to add libraries later
Of course : I try this , still import cv2 Report errors - 2、 In the most old-fashioned way :【file->settings->Project->Python Interpreter->+ -> Search for opencv-python->Inatsll Package】 Then there was the long wait …
Again : I try this , still import cv2 Report errors - 3、 This time I listen to my classmates' suggestions , Recreate project , Then check all that should be checked . next , Repeat step 2.
Again : I try this , still import cv2 Report errors - wait .....
Successfully solved : Last , I use the following method to solve
- 1、 First : hold Python Interpreter Replace the mirror image inside with Tsinghua

- 2、 Then proceed as follows ( Refer to other big guys )


Import... Again :
complete :
test :
import cv2 as cv
src=cv.imread("E:\\Pec\\12.jpg")
cv.namedWindow("input image")
cv.imshow("input image",src)
cv.waitKey(0)
cv.destroyAllWindows()
print(" Successfully printed ")

边栏推荐
- es(1)
- 手写博客平台~第二天
- File upload vulnerability -.User.ini and.Htaccess
- Interview assault 66: what is the difference between request forwarding and request redirection?
- jmeter --静默运行
- Alibaba /166 obtains the API instructions for all products in the store
- Section 9 cache penetration follow Daewoo redis ------- directory posts
- undefined reference to H5PTopen
- C language programming training topics: K characters in left-handed string, little Lele and Euclidean, printing arrow pattern, civil servant interview, poplar matrix
- Mac database management software Navicat premium essentials mac
猜你喜欢

Emerging potential of interactive virtual reality technology in drug discovery

In depth analysis of the famous Alibaba cloud log4j vulnerability

Install jumpserver

继承与派生

如何用WebGPU流畅渲染百万级2D物体?

Shengxin commonly used analysis graphics drawing 02 -- unlock the essence of volcano map!

Codeforces Round #794 (Div. 2)(A.B.C)

安装JumpServer

Win10 super good-looking mouse theme, you also try it

JumpServer的使用
随机推荐
6126. 设计食物评分系统
0623~ holiday self study
com.mysql.cj.jdbc.exceptions. MySQLTransactionRollbackException: Deadlock found when trying to get lo
C language to achieve a static version of the address book
redis集群的三种方式
【obs】视频、音频编码与rtmp发送的配合
Ship new idea 2022.2 was officially released, and the new features are really fragrant!
0625~<config>-<bus>
Still reading logs on the command line? Use kibana, visual log analysis yyds!
Shengxin commonly used analysis graphics drawing 02 -- unlock the essence of volcano map!
T245982 「KDOI-01」醉花阴
C language custom type explanation - Consortium
Wu Enda writes: how to establish projects to adapt to AI career
2022 the latest short video de watermarking analysis API interface sharing
简单测试JS代码
0627~ holiday knowledge summary
05mysql lock analysis
[OBS] dependency Library: x264 vs Build
PXE efficient batch network installation
排序的几种方式for while 还有sort