You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine reading a book or document and your AI assistant has the ability to summarize, save, and quiz you on what you read. Well RayBan Meta Notebuddy does just that. Notebuddy is a powerful iOS application that pairs with Ray-Ban Meta smart glasses (via Meta Wearables SDK) to transform physical documents into AI-summarized study cards. Scan documents hands-free through your smart glasses — or use your phone's camera as a fallback — extract text with OCR, generate intelligent summaries, and organize content into study decks with quiz mode.
Supports dual AI providers: Apple Foundation Models for fully on-device, offline summarization, and OpenAI for cloud-powered summarization, text-to-speech, and quiz generation.
Features
Document Scanning
- **Hands-Free Scanning**: Use Meta Ray-Ban smart glasses camera for document capture
- **Phone Camera Fallback**: Use your iPhone's built-in camera when glasses aren't connected
- **Auto-Capture Mode**: Automatically detects document boundaries and captures when stable
- **Multi-Page Support**: Scan multiple pages and combine them into a single summary card
- **Real-Time Boundary Detection**: Visual overlay shows detected document edges with color-coded stability
- **Distance Mode**: Enhanced OCR processing with upscaling, grayscale, and adaptive thresholding
- **Perspective Correction**: Automatic skew correction for angled documents
AI-Powered Summarization (Dual Provider)
- **Apple Intelligence (On-Device)**: Uses Foundation Models for privacy-preserving, offline summarization (iOS 26+)
- **OpenAI (Cloud)**: Supports gpt-4o-mini, gpt-4, and custom models for cloud summarization
- **Streaming Output**: Watch summaries generate in real-time, token by token
- **Smart Extraction**: Automatically generates titles, summaries (1-3 sentences), and key points (3-5 bullets)
- **Document Classification**: Identifies document type (article, letter, receipt, etc.)
- **Deck-Level Summaries**: Aggregate summaries and key themes across all cards in a deck using map-reduce for large decks
Quiz Mode
- **Multiple-Choice Questions**: Generate 10+ questions from deck content for active recall study
- **Dual AI Support**: Generate quizzes with OpenAI or Apple Intelligence, with fallback generation from key points
- **Results & Review**: Score display with percentage, review missed questions with correct answers
- **Haptic Feedback**: Tactile responses for correct and incorrect answers
Flashcard Study Mode
- **AI-Generated Flashcards**: Create study flashcards from deck content with term/question on front and answer on back
- **Realistic 3D Flip Animation**: Tap cards to flip with smooth spring animation
- **Swipe Navigation**: Swipe left/right through flashcards like physical cards
- **Print Support**: Export flashcards as PDF with 4 cards per page, formatted for double-sided printing
- **Study Tracking**: Track cards studied, flip count, and session duration
PDF Import
Import PDFs as Study Cards: Select any PDF file and automatically create one summarized card per page
Two Entry Points: Import from the Library toolbar (creates a new deck) or from a deck's menu (adds cards to that deck)
Progress Tracking: Real-time progress view showing streaming AI summaries as each page is processed
Page Thumbnails: Each card includes a rendered thumbnail of the original PDF page
Smart Filtering: Automatically skips blank or image-only pages (< 30 characters of text)
Study Organization
Deck Management: Organize cards into color-coded study decks (10 preset colors)
Quick Capture: Save cards without assigning to a deck for later organization
Card Carousel: Swipe through cards in a deck with playback controls
PDF Export: Export individual cards as formatted, shareable PDFs
Search & Filter: Find cards and decks across your entire library
Deck Summaries: Generate aggregated summaries and key themes for entire decks
Audio & Text-to-Speech
Apple TTS: Built-in speech synthesis for instant feedback
Apple Developer Account (free accounts work for personal devices)
Meta Ray-Ban Smart Glasses paired with your iPhone (optional)
Meta AI App installed from the App Store (if using glasses)
Step 1: Clone the Repository
git clone https://github.com/Alphonso84/RayBan_Meta_Lab.git
cd RayBan_Meta_Lab
Step 2: Open in Xcode
open "Smart Glasses.xcodeproj"
When Xcode opens, it will automatically download the Meta Wearables SDK via Swift Package Manager. Wait for the package resolution to complete (you'll see progress in the status bar).
Step 3: Configure Code Signing
Select the Smart Glasses project in the navigator (blue icon)
Select the Smart Glasses target
Go to the Signing & Capabilities tab
Check Automatically manage signing
Select your Team from the dropdown (sign in with your Apple ID if needed)
If needed, change the Bundle Identifier to something unique (e.g., com.yourname.notebuddy)
Step 4: Enable Developer Mode on Meta AI App
On your iPhone:
Open the Meta AI app
Go to Settings > App Info
Tap the App version number 5 times to reveal the Developer Mode toggle
Enable Developer Mode
Tap Enable to confirm
Step 5: Build and Run
Connect your iPhone to your Mac via USB
Select your iPhone from the device dropdown in Xcode's toolbar
Press Cmd + R (or click the Play button) to build and run
On first launch, trust the developer certificate on your iPhone:
Go to Settings > General > VPN & Device Management
Tap your developer certificate and tap Trust
Step 6: Connect Your Glasses (Optional)
Launch the app on your iPhone
Navigate to the Settings tab
Tap Connect Glasses
Follow the on-screen prompts to complete registration
Grant camera permissions when prompted
If you don't have glasses, you can use the Phone Camera fallback on the Scan tab.
How to Use
Scanning Documents
Open Scanner - Tap the Scan tab (viewfinder icon)
Choose Source:
If glasses are connected, the glasses camera feed starts automatically
If not, tap "Use Phone Camera" to use your iPhone's camera
Point at Document - Hold a document in view
Wait for Detection - A cyan boundary appears around detected documents
Hold Steady - The progress ring fills as you hold still (boundary turns yellow, then green)
Auto-Capture - Document captures automatically when stable (or tap Manual Capture)
Review Summary - AI generates title, summary, and key points in real-time
Save Card - Choose a deck and save
Multi-Page Scanning
Toggle Multi mode in the top bar
Scan First Page - Follow standard scanning process
Add Page - Tap "Add Page" to include and continue scanning
Scan Additional Pages - Repeat for all pages
Finish - Tap "Done" to combine all pages and summarize
Skip - Tap "Skip" to discard current page without adding
Quiz Mode
Open a deck from the Library tab
Tap the quiz icon in the deck options
Wait for questions to generate (uses AI or key point extraction)
Answer multiple-choice questions
Review your score and missed questions
Retry to improve your recall
Flashcard Study
Open a deck with 2+ cards from the Library tab
Tap the menu (⋯) → "Study Flashcards"
Wait for flashcards to generate (uses AI or key point extraction)
Tap a card to flip between front (question) and back (answer)
Swipe left/right to navigate between cards
Tap menu → "Print Flashcards" to export as PDF for printing
Tap "Finish Study" to see your session stats
PDF Import
From Library: Tap the "+" button in the Library toolbar → "Import PDF"
From a Deck: Open a deck → tap the menu (⋯) → "Import PDF"
Select a PDF file from the file picker
Review the page count and tap "Start Import"
Watch as each page is summarized with streaming AI output
Cards are created automatically — one per page with title, summary, key points, and thumbnail
A new deck is created from the filename (Library import) or cards are added to the existing deck
PDF Export
Open a card in deck detail view
Tap the share/export option
A formatted PDF is generated with title, summary, key points, and source text
Share via the iOS share sheet
Managing Decks
View Library - Tap the Library tab (books icon)
Browse Decks - Scroll through your deck grid with stats
Create Deck - Tap "+" → "New Deck" with title, description, and color
Import PDF - Tap "+" → "Import PDF" to create a deck from a PDF file
Open Deck - Tap a deck to view its cards in a carousel
Generate Deck Summary - Tap the summary option to aggregate insights across all cards
Listen - Tap play to hear card content or deck summaries via TTS