Hriday

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.

AI-02
Domain AI & Linux
Scope Verified Local Build
Year 2026
Systems lens Frame-sharpness gating and hue-preserving luminance inversion from dark smartboards to printable paper.
AI-02Signal block diagram
Raspberry Pi LAN Studio bidirectional sync and local OpenCV Notes Studio diagramPI1 · PI LAN STUDIOPI LAN STUDIONVMe / LAN Archive SyncCV1LOCAL OPENCV ENGINESharpness & Board InvertU1 · MACBOOKMACBOOK NOTES STUDIOLAN Sync <──> Frame Scout285 automated tests passingOUT1HOME STUDY PORTALInstant Seek · Resume SyncOUT2WHITE-PAPER PDFSOriginal Handwriting Kept
Figure AI-02 — Bidirectional LAN sync between Raspberry Pi archive and MacBook OpenCV notes compiler.Swipe diagram →

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 systemd service 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

Python OpenCV & FFmpeg Raspberry Pi & Linux PDF Generation Local Streaming