Skip to main content

A simple commandline tool to extract slides from videos,lectures and presentations

Project description

slide-extractor

An easy tool to extract slides from presentations ( lectures 😉 )

Usage

slide-extractor -p <path> -s <number> -d <number>
or
slide-extractor -u <youtube url> -s <number> -d <number>

Flags
  • -p or --path : Provides the path for the video file ( * required)
  • -u or --url : Specifies the url of youtube video you want to get the slides of (Note : Use either -p or -u. If both are given, -p will be preferred)
  • -c or --coor : Specifies the coordinates you want to compare before capturing slides. (Useful when the speaker is also in the frame), See here for how to pass this parameter
  • -s or --skip : Provides the skip seconds for the video.( Captures the video's frames at interval of specified value )
  • -d or --diff : Specifies the difference level between current and previous slide ( a slide is included iff the difference is higher than the specified value)
  • -h or --help : Help Menu

Try adjusting the diff value if you think all slides aren't being captured or too many slides are being captured.

Too Low diff value will make the extractor captures slides even with slight difference.

Too High diff value might make the extractor skip certain slides.

How to pass -c or --coor

Imagine this situation where you want to compare only the area (x1,y1),(x2,y2) pass it as -c [[x1,y1],[x2,y2]].
You will also be shown a sample image which is being considered for the evaluation. Use it as a reference o decide the coordinates.

(0,0)
-------------------------------------------
|                                         | 
|    (x1, y1)                             |
|      ------------------------           |
|      |                      |           |
|      |                      |           | 
|      |         ROI          |           |  
|      |                      |           |   
|      |                      |           |   
|      |                      |           |       
|      ------------------------           |   
|                           (x2, y2)      |    
|                                         |             
|                                         |             
|                                         |             
-------------------------------------------(frame max width,frame max height)```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slide_extractor-2.0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

slide_extractor-2.0.1-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page