The imagenet.cpp / imagenet.py samples that we used previously can also be used for realtime camera streaming. The types of supported cameras include:
- MIPI CSI cameras (csi://0)
- V4L2 cameras (/dev/video0)
- RTP/RTSP streams (rtsp://username:password@ip:port)
For more information about video streams and protocols, please see the Camera Streaming and Multimedia page.
Below are some typical scenarios for launching the program on a camera feed (run --help for more options):
C++
$ ./imagenet csi://0 # MIPI CSI camera
$ ./imagenet /dev/video0 # V4L2 camera
$ ./imagenet /dev/video0 output.mp4 # save to video file
其他省略…

本文介绍如何使用先前的ImageNet.cpp/imagenet.py示例处理实时摄像头流,支持MIPICSI、V4L2和RTP/RTSP流。展示了通过不同接口启动程序的方法,并提到了更多关于视频流和协议的信息,可供读者参考。

被折叠的 条评论
为什么被折叠?



