/fpcv_slides

Slides of "First Principles of Computer Vision" Lectures by Prof. Shree K. Nayar || Code for Automatic Slides Generation from Video Lectures.

Primary LanguagePython

First Principles of Computer Vision Lecture Slides

Description

  • Uploaded some sample slides of Youtube Lectures by Prof. Shree K. Nayar in this repo.
  • The code to extract the slides from videos is also present in this repo and it is mainly inspired from this repository
  • The code uses OpenCV's Background Subtraction algorithm to detect the change in the frame.
  • I have modified to work it with Prof. Shree K. Nayar's Youtube lectures.
  • This project converts a video presentation into a deck of pdf slides by capturing screenshots of unique frames. Note: Before uploading the slides' PDFs to this repository, I compressed them using some online tool.

Steps to run the code

python video2pdfslides.py <video_path>

Run for multiple .mp4 files in a directory

python video2pdfslides_for_multiple_vids.py <directory_path>

Future work

  • will use Tesseract for OCR in the slides.