如何解决通过RTSP用相机检测YOLOv3对象
我正在用python写我的学士学位,这是关于监视系统中的对象检测的。 我有一个相机,其编解码器部分设置为DCIF,H264。 我们知道OpenCV能够通过RTSP协议捕获视频流,因此我对其进行了设置。
我不知道问题是否出在编解码器上,但是一切似乎都如此(尽管我的GPU也不是一流的),因为当我第一次使用笔记本网络摄像头第一次使用它时,一切都很好。我将在这里放置终端输出的一部分,我很乐意寻求有关如何使其工作的帮助,因为它会工作一段时间(约10秒)并显示/崩溃。 我正在使用YOLOv3卷积神经元网络模型,正如我提到的那样,它工作得很好。
这是终端输出:
OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 27 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x31637661/'avc1'
Could not find encoder for codec id 27: Encoder not found
2020-10-28 18:07:32.655181: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1),but there must be at least one NUMA node,so returning NUMA node zero
2020-10-28 18:07:39.985532: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-10-28 18:07:44.088814: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-10-28 18:07:47.001301: W tensorflow/core/common_runtime/bfc_allocator.cc:246] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.15GiB with freed_by_count=0. The caller indicates that this is not a failure,but may mean that there could be performance gains if more memory were available.
2020-10-28 18:07:47.042291: W tensorflow/core/common_runtime/bfc_allocator.cc:246] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.15GiB with freed_by_count=0. The caller indicates that this is not a failure,but may mean that there could be performance gains if more memory were available.
2020-10-28 18:07:47.199933: W tensorflow/core/common_runtime/bfc_allocator.cc:246] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.08GiB with freed_by_count=0. The caller indicates that this is not a failure,but may mean that there could be performance gains if more memory were available.
[h264 @ 0x560c2b45e4c0] error while decoding MB 11 10,bytestream -6
Detections have been saved successfully.
更新:在尝试将中断更改为continue后,除了块我遇到了错误:
[h264 @ 0x565266a13880] error while decoding MB 31 18,bytestream -45
[NULL @ 0x565266e16a40] SEI type 40 size 1936 truncated at 736
[NULL @ 0x565266e16a40] missing picture in access unit with size 1136
[h264 @ 0x565266ef4280] no frame!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。