Raspberry Pi Lecture Library & Notes Studio
A home-subnet Raspberry Pi lecture server paired with an OpenCV frame compiler that turns multi-hour smartboard videos into ink-friendly printable PDFs while preserving handwritten equations.
┌────────────────────────┐ ┌──────────────────────┐ │ PI1 · PI LAN STUDIO │◀──┐ ┌──▶│ OUT1 · STUDY PORTAL │ │ NVMe / LAN Archive │ │ ┌──────────────┐ │ │ Fast Seek · Resume │ └────────────────────────┘ ├─▶│ U1 · MACBOOK │──┤ └──────────────────────┘ ┌────────────────────────┐ │ │ OpenCV Scout │ │ ┌──────────────────────┐ │ CV1 · BOARD COMPILER │───┘ └──────────────┘ └──▶│ OUT2 · PRINT PDFS │ │ Sharp Frame + Invert │ LAN Sync <──> │ White-Paper · 285 QA │ └────────────────────────┘ └──────────────────────┘
Why I built it
Preparing for JEE means hundreds of multi-hour video lectures and thousands of dense blackboard derivations. Uploading gigabytes to third-party cloud tools is slow, and OCR text converters mangle hand-drawn circuit arrows and physics free-body diagrams. I split the workflow into two local tools: a Raspberry Pi home library for instant lecture playback, and Lecture Notes Studio on my Mac for compiling printable board notes.
How it works
- Raspberry Pi Lecture Server: A zero-dependency Python HTTP server runs as a hardened Linux
systemdservice bound to my home subnet and Tailscale interface. It serves byte-range video streams for instant scrubbing, persists resume timestamps, verifies checksums before publishing note bundles, and repairs attached PDFs that carry malformed trailing bytes. - OpenCV Frame Scout & Deduplicator: Before scanning a full three-hour lecture, a fast scout pass samples preview frames to classify the layout (dark smartboard, whiteboard, slides, or split-screen). The OpenCV pipeline then rejects presenter occlusion and near-duplicate frames, locking onto the sharpest unobstructed board states so original handwriting stays intact.
- Hue-Preserving White-Paper PDFs: For dark smartboard recordings, the exporter inverts dark backgrounds onto crisp white pages while preserving colored vector/chalk highlights for legibility on paper, embeds chapter bookmarks, and cross-checks exported pages against source timestamps.
What I tested & current scope
The combined repository is backed by 285 automated tests spanning layout classification, color-space inversion, PDF repair, and subnet access guards. Multi-hundred-gigabyte video archives stay on external storage attached to the Pi while finished PDFs sync to internal Mac storage.
Stack & parts