Skip to content

Passing a video as input, we generate thumbnails for every 1 sec interval of the video. The FrameRate can be adjusted in order to obtain more thumbnails. I'm using OpenCV to extract the images and in order to remove the duplicates, I'm using a special algorithm.

Notifications You must be signed in to change notification settings

VSevagen/Video-to-Image-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Video-to-Image-converter

Passing a video as input, we generate thumbnails for every 1 sec interval of the video. The FrameRate can be adjusted in order to obtain more thumbnails. I'm using OpenCV to extract the images and in order to remove the duplicates, I'm using a structural similarity index(SSIM) to differentiate between duplicates and similar images.

Run the Program

Step 1: Clone the project
Step2: Place the video you want to experiment on in the VideoThumbnail directory
Step3: Copy paste this to command line, python3 main.py

Note

At the moment, SSIM is set to 0.8 or more. That is, if the difference between 2 images is more than 0.8, then they are most probably very similar. This value can be modified to suit the need of the user. Moreover, frameRate can be modified as well to either increase or decrease the number of thumbnails

In order for this program to work, you will need to modify your directory path in all 3 files, namely thumbnail.py, removeDup.py and pdfMaker.py

About

Passing a video as input, we generate thumbnails for every 1 sec interval of the video. The FrameRate can be adjusted in order to obtain more thumbnails. I'm using OpenCV to extract the images and in order to remove the duplicates, I'm using a special algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages