Image/video object-filtering scripts built on ffmpeg and ImageAI.
- Use
vids_to_pngs.sh
to collectively break video files into individual.png
files, one per frame, atpng_frames/
- This will also intermittently create a single
.mp4
file of the merged videos
- This will also intermittently create a single
- Grab a RetinaNet model file, like this one
- Run
filter.py --objects person sports_ball --dir ./png_frames
(see-h
for help)- This will produce JSON files that contain the filenames of the images with your object(s)