Code Monkey home page Code Monkey logo

slideextract's Introduction

slideextract

slideextract is a program to extract slides from videos. It outputs an image for each detected slide. Slide detection is done by comparing consecutive frames for differences within a specific threshold, to account for video encoding artifacts.

For better results and faster extraction you should specify a comparison region, such as the slide number. From a series of unchanging comparison regions slideextract will pick the last frame in hopes of capturing the final state of the entire slide (animated bullet points, annotations, etc...).

# Select a comparision region via gui
slideextract -g video.mp4 outprefix

Once extraction is completed you can view the extracted slides with your favorite image viewer and delete possible duplicates. This often happens when the video jumps back and forth between slides.

You can then combine the slides to a pdf with a tool like convert:

convert `ls -v outprefix*.png` outprefix.pdf

Dependencies

  • opencv 4.x

Build Instructions

make
make install # DESTDIR= PREFIX=/usr/local

License

BSD 2-Clause license, see LICENSE for more details.

slideextract's People

Contributors

szanni avatar

Watchers

 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.