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.
Step 1: Clone the projectStep2: Place the video you want to experiment on in the VideoThumbnail directory
Step3: Copy paste this to command line, python3 main.py 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