cv516Buaa / tph-yolov5

GNU General Public License v3.0
716 stars 170 forks source link

How to play the inference on a video? #24

Open RoyAmoyal opened 2 years ago

RoyAmoyal commented 2 years ago

hey, how can I run the inference on a video?

it looks a little bit complicated since you are using Dataoader in the code.

thanks!

cv516Buaa commented 2 years ago
python detect.py --source 0  # webcam
                          img.jpg  # image
                          vid.mp4  # video
                          path/  # directory
                          path/*.jpg  # glob
                          'https://youtu.be/Zgi9g1ksQHc'  # YouTube
                          'rtsp://example.com/media.mp4'  # RTSP, RTMP, HTTP stream