您好,欢迎来到钮旅网。
搜索
您的当前位置:首页[rtsp @ 0x55b45e3820] method DESCRIBE failed: 401 Unauthorized

[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 (1) 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.:5/h265/ch1/main/av_stream in function 'icvExtractPattern'
1/1: rtsp://admin:admin@192.168.144.:5/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.:5/h265/ch1/main/av_stream

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

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

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

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- niushuan.com 版权所有 赣ICP备2024042780号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务