当前位置:网站首页>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:xSuddenly 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!
边栏推荐
- OD-Model【4】:SSD
- (Repost) HashCode Summary (1)
- AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
- SSM整合
- UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the index ing argu
- 删库后!除了跑路还能干什么?
- 磷脂-聚乙二醇-酰肼,DSPE-PEG-Hydrazide,DSPE-PEG-HZ,MW:5000
- 每日练习------有n个整数,使其前面各数顺序向后移m个位置,最后m个数变成最前面的m个数
- MySQL中JOIN的用法
- LeetCode:1161. 最大层内元素和【BFS层序遍历】
猜你喜欢
随机推荐
每日练习------有n个整数,使其前面各数顺序向后移m个位置,最后m个数变成最前面的m个数
APK的安装过程分析 PMS包管理器
亚马逊卖家怎么提升转化率
线性代数学习笔记3-1:矩阵与线性变换、常见矩阵(逆矩阵、伴随矩阵、正交矩阵等)
LeetCode:746. 使用最小花费爬楼梯【动态规划】
多个el-select下拉框无法选中相同内容
(Repost) HashCode Summary (1)
[详解C语言]一文带你玩转C语言小游戏---扫雷
删库后!除了跑路还能干什么?
ModuleNotFoundError No module named ‘xxx‘可能的解决方案大全
赶紧进来!!!教你用C语言写三子棋小游戏
[Basic Tutorial of Remote Control Development 1] Crazy Shell Open Source Formation Drone-GPIO (Remote Control Indicator Light Control)
线性代数学习笔记2-2:向量空间、子空间、最大无关组、基、秩与空间维数
连接数据库时遇到的bug1号
MySQL分页查询的5种方法
MySQL占用CPU过高,排查原因及解决的多种方式法
(转帖)HashCode总结(2)
腾讯50题
5. Hezhou Air32F103_LCD_key
parser = argparse.ArgumentParser() parsing









