Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ“ Lecture2PDF AI

Convert Lecture Videos into Clean, Study-Ready PDFs Automatically

Stop wasting hours taking screenshots during lectures. Let Lecture2PDF AI detect slides, extract key frames, and generate organized PDFs in minutes.

๐Ÿš€ Fast โ€ข ๐Ÿ”’ Private โ€ข ๐Ÿ“š Student Friendly


๐Ÿ“– Overview

Lecture2PDF AI is a Chrome Extension that automatically extracts presentation slides from lecture videos and converts them into a downloadable PDF.

Whether you're studying from YouTube, Udemy, Coursera, or recorded college lectures, Lecture2PDF AI helps you focus on learning instead of manually capturing screenshots.


โŒ The Problem

Imagine watching a 2-hour lecture.

Every time the slide changes, you:

  • Pause the video
  • Take a screenshot
  • Save it
  • Resume watching

After the lecture, you end up with:

  • Hundreds of screenshots
  • Duplicate images
  • Disorganized notes
  • Hours wasted

Most students spend more time collecting notes than actually studying.


โœ… The Solution

Lecture2PDF AI automates the entire process.

Simply:

  1. Open a lecture video
  2. Click Scan Video
  3. Review detected slides
  4. Generate PDF

That's it.

The extension handles everything automatically.


โœจ Features

๐Ÿ” Smart Slide Detection

Automatically identifies meaningful slide transitions throughout the lecture.


๐Ÿง  Adaptive Thresholding

Uses Otsu's Thresholding Algorithm to dynamically determine the best detection threshold for each video.


๐Ÿ“ธ Duplicate Reduction

Filters unnecessary captures and focuses on important slide changes.


๐Ÿ–ผ Slide Review Dashboard

Preview all detected slides before generating the final PDF.

You can:

  • Review captures
  • Remove unwanted slides
  • Fine-tune results

๐Ÿ“„ PDF Generation

Convert selected slides into a professional PDF instantly.

Perfect for:

  • Exam preparation
  • Revision notes
  • Quick review sessions

๐Ÿ”’ Privacy First

Everything runs locally in your browser.

No:

  • Cloud uploads
  • External servers
  • Data collection
  • Tracking

Your lecture data never leaves your device.


๐Ÿš€ How It Works

Open Lecture Video
        โ†“
Scan Video
        โ†“
Detect Slide Changes
        โ†“
Review Captured Slides
        โ†“
Generate PDF
        โ†“
Download Notes

โš™๏ธ Technology Stack

Technology Purpose
JavaScript Core Application Logic
Chrome Manifest V3 Extension Framework
HTML/CSS User Interface
Canvas API Frame Processing
PDF-Lib PDF Generation
Otsu's Method Threshold Optimization
Service Workers Background Processing

๐Ÿง  Detection Algorithm

Frame Analysis

Lecture2PDF samples frames across the lecture timeline and converts them into lightweight brightness grids.

This significantly reduces processing cost while maintaining accuracy.


Change Detection

Consecutive frames are compared to calculate visual differences.

The algorithm ignores:

  • Mouse movements
  • Cursor activity
  • Minor animations

while detecting actual slide transitions.


Adaptive Threshold Selection

Instead of relying on a fixed threshold, Otsu's Method automatically calculates the optimal threshold for every lecture.

Benefits:

  • Higher accuracy
  • Fewer duplicates
  • Better results across different video styles

๐Ÿ“ฆ Installation

Method 1: Install from Source

1. Clone the Repository

git clone https://github.com/RajGahoi/lecture2pdf.git

cd lecture2pdf

Or download the ZIP file and extract it.


2. Open Chrome Extensions

Open Chrome and visit:

chrome://extensions/

3. Enable Developer Mode

Turn ON Developer Mode from the top-right corner.


4. Load the Extension

Click:

Load Unpacked

Select the project folder containing:

manifest.json

5. Pin the Extension

Click the Extensions icon and pin:

Lecture2PDF AI

The extension is now ready to use.


๐Ÿ“š Usage

Step 1

Open any lecture video.

Supported platforms include:

  • YouTube
  • Coursera
  • Udemy
  • Khan Academy
  • PhysicsWallah
  • Unacademy
  • Most HTML5 video players

Step 2

Click the Lecture2PDF AI extension icon.


Step 3

Press:

๐Ÿ” Scan Video

The extension will automatically analyze the lecture.


Step 4

Review the detected slides.

Remove any unwanted captures if necessary.


Step 5

Click:

โšก Generate PDF

The PDF will be generated and downloaded automatically.


๐ŸŽฏ Use Cases

๐Ÿ‘จโ€๐ŸŽ“ Students

Create revision notes instantly.

๐Ÿ‘ฉโ€๐Ÿซ Teachers

Generate lecture handouts from recorded sessions.

๐Ÿ“š Online Learners

Capture key slides from online courses.

๐ŸŽ“ Exam Preparation

Build concise study material quickly.


๐Ÿ”ฎ Future Roadmap

  • AI-powered lecture summarization
  • OCR text extraction
  • Export to Markdown
  • Export to Notion
  • Multi-language support
  • Smart chapter detection
  • Lecture transcript integration
  • Cloud synchronization

๐Ÿค Contributing

Contributions are welcome.

If you'd like to improve the project:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a Pull Request

โญ Support

If Lecture2PDF AI saved you time, please consider giving this repository a star.

It helps more students discover the project and motivates future development.


Built for Students โค๏ธ

Transform lectures into organized study material โ€” automatically.

โญ Star the project if you found it useful.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages