[rtsp @ 0x55b45e3820] method DESCRIBE failed: 401 Unauthorized

YOLOv5 🚀  torch 1.9.0 CPU
Fusing layers... 
Model Summary: 232 layers, 7459581 parameters, 0 gradients
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "/home/firefly/anaconda3/envs/yolo/lib/python3.8/site-packages/cv2/qt/plugins"
[rtsp @ 0x55b45e3820] method DESCRIBE failed: 401 Unauthorized
[ERROR:0@4.524] global /io/opencv/modules/videoio/src/cap.cpp (164) open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.6.0) /io/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) 
CAP_IMAGES: can't find starting number (in the name of file): rtsp://admin:admin@192.168.144.64:554/h265/ch1/main/av_stream in function 'icvExtractPattern'
1/1: rtsp://admin:admin@192.168.144.64:554/h265/ch1/main/av_stream... Traceback (most recent call last):
  File "detect.py", line 258, in <module>
    detect()
  File "detect.py", line 130, in detect
    dataset = LoadStreams(source, img_size=imgsz, stride=stride)
  File "/home/firefly/yolov5-rknn/utils/datasets.py", line 279, in __init__
    assert cap.isOpened(), f'Failed to open {s}'
AssertionError: Failed to open rtsp://admin:admin@192.168.144.64:554/h265/ch1/main/av_stream

yolov5 检测rtsp视频流,运行报错:

在这里插入图片描述
排查问题:

  • 相机是否能在网页访问,能访问说明rtsp流可以拉
  • rtsp地址格式没有问题,海康标准格式:rtsp://用户名:密码@ip地址:554/h265/ch1/main/av_stream

然后我发现这个海康相机是有密码的,不是空,然后加上密码后运行成功。

在这里插入图片描述

常将有日思无日,莫待无时思有时。

  • 5
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

振华OPPO

你的鼓励是我创作的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值