当前位置:网站首页>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 ")

边栏推荐
- Three ways of redis cluster
- Wechat applet
- 2022 the latest short video de watermarking analysis API interface sharing
- New can also create objects. Why do you need factory mode?
- 0615~用自定义注解实现RBAC权限管理
- Awk from entry to earth (17) awk multiline writing
- new也可以创建对象,为什么需要工厂模式?
- C language custom types - Enumeration
- C language programming training topics: K characters in left-handed string, little Lele and Euclidean, printing arrow pattern, civil servant interview, poplar matrix
- (mandatory) override equals must override hashcode (principle analysis)
猜你喜欢

关于接口的写法 1链式判读 ?. 2方法执行 (finally)一定会执行

Inheritance and Derive

Flink operation Hudi data table

Section 7 Data Dictionary: hash followed by Daewoo redis ------- directory post

What are the pitfalls from single architecture to distributed architecture?

SSM framework learning

Use of jumpserver

Common methods of number and math classes

redis集群的三种方式

使用Prometheus+Grafana监控MySQL性能指标
随机推荐
Install jumpserver
How to quickly upload files to Google Lab
如何用WebGPU流畅渲染百万级2D物体?
阿里巴巴/1688按图搜索商品(拍立淘) API使用说明
0615~用自定义注解实现RBAC权限管理
pycharm配置opencv库
0611~自习课
0613 ~ self study
Laravel笔记-用户登录时密码进行RSA加密(提高系统安全性)
0623~放假自习
Learn redisson from scratch ------- topics (subscription and distribution)
jmeter --静默运行
单细胞代码解析-妇科癌症单细胞转录组及染色质可及性分析1
《STL源码剖析》应该怎样读?
Read zepto source code touch module
6126. 设计食物评分系统
Has polardb for PostgreSQL entered the list of Xinchuang database?
头文件是必须的吗?跟一跟编译过程~~~
【OpenCV】—阈值化
阿里巴巴/166获得店铺的所有商品 API使用说明