Skip to content

A completely modular python code to extract presentation slides from a video as images and then merge into a single PDF file.

Notifications You must be signed in to change notification settings

01-DC/video-keyframe-extractor

Repository files navigation

Video Keyframe Extractor


OpenCV Python ImageHash


Description

Kya matlab teacher slides nahi upload karte?

My personal project for extracting slides/keyframes from a class recording/video and make a pdf with the selected images.
Uses Python, OpenCV, ImageHash and matplotlib.


Features

  • Based on Python3 and OpenCV library
  • Uses fast Image Difference Hashing algorithm
  • Completely modular structure
  • Each module can be executed independently
  • Image to PDF converter module
  • Video analysis progress bar
  • Allows to visualise frame differences using matplotlib
  • Allows to adjust extracting threshold to extract more or less slides accordingly
  • Run frameSelector module to find that perfect threshold value

How to Run?

  • Fork and clone the repository on your local machine.
  • Run pip install -r requirements.txt
  • Edit VIDEO_PATH variable in main.py according to your video file.
  • Run python main.py
  • Follow the prompts in terminal
  • Execute frameSelector.py to fine tune threshold value after completion of video analysis once.
  • Done

Made with <3 by DC

About

A completely modular python code to extract presentation slides from a video as images and then merge into a single PDF file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages