当前位置:网站首页>Problems when yolov5 calls ip camera
Problems when yolov5 calls ip camera
2022-08-02 03:32:00 【woshicaiji12138】
I tried to use yolov5-5.0 for real-time target detection today, but when I entered the command:
python detect.py --source http://192.168.xx.xx:xx/video --weights yolov5s.pt
(xx means my own ip)
The following problem always occurs:
[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV
exception:
OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can'tfind starting numb
er (in the name of file): http://192.168.3.100:8001/video in function 'cv::icvExtractPattern'
Traceback (most recent call last):
File “detect.py”, line 178, in
detect()
File “detect.py”, line 51, in detect
dataset= LoadStreams(source, img_size=imgsz, stride=stride)
File “D:\yolov5\yolov5-5.0\yolov5-5.0\utils\datasets.py”, line 284, in init
assert cap.isOpened(), f'Failed to open {s}'
AssertionError: Failed to open http://192.168.3.100:8081/video
I checked a lot of information on the Internet and couldn't solve it until I saw in a blog that someone else's instruction wassuch
python detect.py --source http://admin:[email protected].x.x.span>x:x
Suddenly I remember that when I click the connection address of the ip camera directly in the terminal of pycharm, this pop-up window will appear:
Only then did I realize how rudimentary my mistake was: I didn't have an ip camera to enter the account number and password.
So re-enter in the terminal:
python detect.py --source http://admin:[email protected]192.168.x.x:x --weights yolov5s.pt
Success!
边栏推荐
猜你喜欢
Redis安装,基本命令,持久化方式,集群
APK的安装过程分析 PMS包管理器
脚手架安装
HCIP Day 11_MPLS Experiment
AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
Week 7 Review
「PHP基础知识」PHP中对象的使用
(forwarded) HashCode summary (2)
[Remote Control Development Basic Tutorial 3] Crazy Shell Open Source Formation UAV-ADC (Joystick Control)
5. Hezhou Air32F103_LCD_key
随机推荐
@ApiModel 和 @ApiModelProperty
API 低代码开发:接口大师,一套开发、管理和提供接口的产品框架
小程序(开发必备常识)1
LeetCode:第304场周赛【总结】
(Reposted) The relationship between hashcode and equals
subprocess.CalledProcessError: Command ‘pip install ‘thop‘‘ returned non-zero exit status 1.
APK的安装过程分析 PMS包管理器
Redis简单学习笔记
@Accessors 注解详解
Mysql8创建用户以及赋权操作
知识问答与知识会话的区别
【面经】米哈游数据开发一面二面面经
知识工程作业2:知识工程相关领域介绍
(转帖)HashCode总结(1)
跨域问题解决
[详解C语言]一文带你玩转C语言小游戏---扫雷
Day34 LeetCode
JVM学习----垃圾回收--G1
[Basic Tutorial of Remote Control Development 1] Crazy Shell Open Source Formation Drone-GPIO (Remote Control Indicator Light Control)
线性代数学习笔记3-1:矩阵与线性变换、常见矩阵(逆矩阵、伴随矩阵、正交矩阵等)