object-detection - 如何使用 yolo3 和 RTMP?
问题描述
我想在 RTMP 上使用 YOLO 实时检测对象。我在这个上使用过:https ://github.com/MarcoBay/darknet-rtmp 但是当我使用这个时,错误发生如下:
*darknet.exe detector demo cfg/coco.data yolo.cfg yolov3_gpu_4000.weights -dont_show -rtmp_fps 15 -rtmp_bps 2000000 rtmp://192.168.110.48:1935/live/001*
Demo
layer filters size input output
0 TH conv 32 3 x 3 / 1 608 x 608 x 3 -> 608 x 608 x 32
1 TH conv 64 3 x 3 / 2 608 x 608 x 32 -> 304 x 304 x 64
2 TH conv 32 1 x 1 / 1 304 x 304 x 64 -> 304 x 304 x 32
3 TH conv 64 3 x 3 / 1 304 x 304 x 32 -> 304 x 304 x 64
4 Shortcut Layer: 1
...
95 route 91
96 TH conv 128 1 x 1 / 1 38 x 38 x 256 -> 38 x 38 x 128
97 upsample 2x 38 x 38 x 128 -> 76 x 76 x 128
98 route 97 36
99 TH conv 128 1 x 1 / 1 76 x 76 x 384 -> 76 x 76 x 128
100 TH conv 256 3 x 3 / 1 76 x 76 x 128 -> 76 x 76 x 256
101 TH conv 128 1 x 1 / 1 76 x 76 x 256 -> 76 x 76 x 128
102 TH conv 256 3 x 3 / 1 76 x 76 x 128 -> 76 x 76 x 256
103 TH conv 128 1 x 1 / 1 76 x 76 x 256 -> 76 x 76 x 128
104 TH conv 256 3 x 3 / 1 76 x 76 x 128 -> 76 x 76 x 256
105 TH conv 171 1 x 1 / 1 76 x 76 x 256 -> 76 x 76 x 171
106 detection
Loading weights from yolov3_gpu_4000.weights...
seen 64
Done!
video file: rtmp://192.168.110.48:1935/live/001
**Couldn't connect to webcam.
: Invalid argument**
我怎么解决这个问题?请帮助我在 RTMP 上使用 YOLO 的经验。
解决方案
您能否检查您的网络摄像头连接/配置错误与网络摄像头连接有关,模型权重看起来已加载。
推荐阅读
- javascript - 如何删除包含在双引号内的子字符串
- node.js - 无法在 graphql 请求拦截上设置“别名”属性
- r - ggMarginal:如何自定义箱线图大小和顺序?
- json - 在终端中运行完成后,如何将光标从终端自动移动到 VS Code 中的代码编辑器?
- php - Symfony 序列化器子分组可能吗?
- wireshark - 如何重放 pcap 文件并从 TCP/IP Listner 读取数据?
- visual-studio - Windows更新后文件被锁定:“w3wp.exe”
- python-3.x - Google Colab GPU 环境搭建
- python - 如何在python中为包含带有数字的字符的输入生成系列
- react-native - 对象作为 React 子对象无效:带有键 {cca2、currency、callingCode、region、subregion、flag、name} 的对象