This project combines YOLOv2(reference) and seq-nms(reference) to realise real time video detection.
make
the project;- Download
yolo.weights
andtiny-yolo.weights
by runningwget https://pjreddie.com/media/files/yolo.weights
andwget https://pjreddie.com/media/files/tiny-yolo-voc.weights
; - Copy a video file to the video folder, for example,
input.mp4
; - In the video folder, run
python video2img.py -i input.mp4
and thenpython get_pkllist.py
; - Return to root floder and run
python yolo_seqnms.py
to generate output images invideo/output
; - If you want to reconstruct a video from these output images, you can go to the video folder and run
python img2video.py -i output
And you will see detection results in video/output
This project copies lots of code from darknet , Seq-NMS and models.