Coder Social home page Coder Social logo

radiantly / slide-extractor Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 44 KB

A nifty python script to extract slides from videos and save it as a pdf.

License: GNU General Public License v3.0

Python 100.00%
python3 opencv decord slide-extractor read-frames pdf-generation

slide-extractor's Introduction

Slide-extractor

A nifty python script to extract slides from videos and save it as a pdf. Python3+ required.

slide-extractor.py

This is the newest iteration of the script and uses the Decord library to read frames from the video.

# Install dependencies
pip install decord pillow tqdm imagehash

# Run script
python slide-extractor.py <NameofVideoFile/Directory>

If you have trouble installing Decord, follow the installation instructions on their page here.

Older versions

slide-extractor-opencv.py (legacy)

This script uses opencv to read frames from the video. This is twice as slow when compared with the previous script.

# Install dependencies
pip install opencv-contrib-python pillow imagehash

# Run script
python slide-extractor-opencv.py <NameofVideoFile/Directory>

slide-extractor-opencv-multiprocessing.py (legacy)

This script uses opencv to read frames from the video. This is faster than the other opencv script, but a major drawback is that no progress bar or indication of processing is shown to the user.

# Install dependencies
pip install opencv-contrib-python pillow imagehash

# Run script
python slide-extractor-opencv-multiprocessing.py <NameofVideoFile/Directory>

Original script from johan456789/slide-extractor

slide-extractor's People

Contributors

dependabot[bot] avatar johan456789 avatar radiantly avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.