当前位置:网站首页>Opencv Library in pycharm cannot be automatically completed [July 2022]
Opencv Library in pycharm cannot be automatically completed [July 2022]
2022-07-18 15:02:00 【Moon fish and fourteen elements】
I'm using PyCharm Study OpenCV I came across such a problem when I was young , stay ‘init.py’ Reference not found in ‘imread’. After finding a series of methods on the Internet , It's about PyCharm In the installation OpenCV( Try installing again , To no avail ), Others said they would install another opencv-contrib-python Installation package ( Try installing , No result ), Others say to import in the following way cv library :
import cv2.cv2 as cv
But this error report doesn't seem to be a success :

After a try , Finally found a feasible solution .
resolvent
First ,CTRL+ Left mouse button , Click to enter cv2 Of __init__.py file .

then , Right click on the file name , stay Explorer Open file in .

take cv2.pyd File copy to site-packages Next , Equivalent to the lack of add-on, let's directly add , You can load cv2 The automatic code completion function of .


Go back and test , The automatic prompt is successfully realized :
If you just start importing in this way , May not respond in time at the beginning , Then you can. Choose to reopen once PyCharm.

Then it will display normally :
边栏推荐
- The MySQL data of the government network server has opened the network strategy with dataworks, but the test still refers to the connectivity of the database test
- 2022危险化学品经营单位安全管理人员操作考试题及答案
- 【成像】【7】太赫兹光学——光学元件和子系统
- 风控人不能不知的黑产大揭秘
- After 2000, he was hired as a special associate researcher of Nanjing University. He went to primary school at the age of 4 and was admitted to Nanjing University at the age of 14!
- 【成像】【8】太赫兹光学——波束耦合,高阶高斯波束模型
- Finding the median in data flow
- 保研机试备考十四:BFS
- 强化学习中的符号命名分析
- 2022 questions and answers of safety management personnel operation examination of hazardous chemical business units
猜你喜欢

Mitmproxy getting started installation

03-GuliMall 开发环境配置

CUDA and cudnn installation tutorial (super detailed) Uninstalling CUDA, installing nsight visual studio edition of CUDA fails, and there is no CUDA option in vs2019+cuda11.1 new project

Variables in shell scripts

Uninstall cuda11.1

为什么电商平台要重点关注非法经营罪,这与二清又有什么关联?

PyCharm中Opencv库不能自动补全【2022年7月】

vivado里那些看不懂的约束语句

Information retrieval summit sigir2022 best paper award came out, Melbourne Institute of technology best paper, UMass University and other best short papers

小程序毕设作品之微信评选投票小程序毕业设计(8)毕业设计论文模板
随机推荐
NC16857 [NOI1999]生日蛋糕
SLAM_旋转运动学_两个坐标系速度v和加速度a的关系
Establishment of APP automated test framework (VII) -- airtest basic operation
Top k high frequency elements
Failed to determine a suitable driver class problem solution
真值与条件表达式
sudo 找不到命令 command not found 解决方案
Deutsche Bank listed on the world Hong Kong Stock Exchange: with a market value of HK $3.9 billion, Shaanxi Automobile Group is the major shareholder
亚马逊卖家该如何做好防关联?不砍单!(测评自养号详解)
2022 a special equipment related management (elevator) operation certificate examination questions and online simulation examination
2022T电梯修理操作证考试题及在线模拟考试
Hybridclr -- epoch-making unity native C # hot update technology
Redis is configured to save RDB snapshots, but it is currently not able to persist
How about the income of increased life insurance? Can it be a pension financial product?
Wwdc22 - Apple privacy technology exploration
Preparation for the computer test of Baosteel 15: a master of string processing
【sdx62】SBL阶段读取GPIO的状态操作
21JVM(1)
德银天下港交所上市:市值39亿港元 陕汽集团是大股东
Wechat selection and voting of applet completion works applet graduation project (8) graduation project thesis template