Skip to content

video frame extraction from a clip to generate image based dataset

Notifications You must be signed in to change notification settings

arafMustavi/video-frame-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

video-frame-extractor

video frame extraction from a clip for dataset creation.

frame-generator.py generates all the frames from a sample video that will be saved into extracted-frames directory.

Dependency and Installation of Packages :

we will need opencv and os package of python for this project. from python3.4 onwards, os is an integral part of python. We will need to install opencv for running the frame-generator.py. It is advised that you use virtual environment for any computer-vision related project to avoid conflict of package dependency.

pip3 install opencv-python

Running the code :

  • create a directory with the name sample-clips .
  • keep the video clips in the newly created sample-clips directory .
  • make sure that frame-generator.py and sample-clips directory are kept under same directory .
  • hit the following command in commandline.
python3 frame-generator.py
  • you should see the frames of your video clips extracted into extracted-frames directory.

Acknowledgement :

In the process of writing this frame-generator.py code the following links helped a lot. You can check them out.

About

video frame extraction from a clip to generate image based dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages