Darknet/YOLO v3.0-177-gfa2353b
Object Detection Framework
 
Loading...
Searching...
No Matches
darknet_07_display_rtsp_stream.cpp File Reference

This application will read from a RTP stream, run the video through Darknet/YOLO, and display the results. More...

Include dependency graph for darknet_07_display_rtsp_stream.cpp:

Functions

int main (int argc, char *argv[])
 

Detailed Description

This application will read from a RTP stream, run the video through Darknet/YOLO, and display the results.

If you don't have a device that generates a RTP stream, you can use VLC and a computer with a webcam such as a laptop.

For example, from my laptop I run one of these commands to start a stream on the multicast address 239.0.0.1:

cvlc -vvv v4l2:///dev/video0 :v4l2-width=640 :v4l2-height=480 :v4l2-fps=10 --sout '#transcode{vcodec=mp2v,vb=256,width=640,height=480,acodec=none}:rtp{dst=239.0.0.1,port=43210,mux=ts}'

or:

cvlc -vvv v4l2:///dev/video0 :v4l2-width=1280 :v4l2-height=720 :v4l2-fps=30 --sout '#transcode{vcodec=mp2v,width=1280,height=720,acodec=none}:rtp{dst=239.0.0.1,port=43210,mux=ts}'

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function: