Create Image Dataset from Video Frames
This task can be accomplished by either of the following methods:
- ffmpeg
- opencv
1. ffmpeg
ffmpeg -i /path/to/your/video.mp4 -r 1/1 $frame%04d.jpg
E.g.
2. opencv
./opencv_frame_extraction -fn="/path/to/your/video.mp4"
E.g.
Source code:
Github:
Written on April 16, 2015