Skip to content
theyapguardPublic

About

School navigation for visually impaired students. Voice-first, AI-powered, no beacons or infrastructure required.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

98 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

WayFinder logo

🧭 WayFinder

Giving blind students their independence back.

AI-powered indoor navigation that needs no beacons, no floor-plan installs, and no infrastructure β€” just a phone camera.

License: MIT Flutter Python Platform Made for


❀️ The Problem

In every school, there are students who can't find their own classroom, cafeteria, or bathroom without asking for help. Not because they're lost β€” because they're blind or visually impaired.

Schools hand them a schedule and a hallway and expect them to navigate alone. But:

Why today's tools fail indoors
πŸ›°οΈ GPS doesn't work indoors Signals can't reach through walls
πŸ“‘ Beacons need infrastructure Schools don't have them installed
πŸ—ΊοΈ Floor-plan apps assume sight A map you can't see doesn't help
πŸ™‹ So they depend on someone else Every single day, for every trip

A student should not need a volunteer, a buddy, or a stranger to get to third period.

WayFinder gives them back their independence.

🎯 Not "we built an indoor navigation app." We gave blind students their independence back.


✨ What WayFinder Does

A student opens WayFinder and says:

"Take me to my 3rd-period chemistry class."

Using the phone's camera, DINOv2 vision embeddings, and voice AI, the app:

Capability What the student experiences
πŸ“ Locates exactly where the student is standing "You are at the Main Entrance"
🧭 Guides them turn-by-turn through the school "Continue straight, then turn left"
⚠️ Warns about obstacles in their path "Caution: people ahead"
πŸ”” Alerts the teacher when they're arriving Teacher gets a heads-up before the door opens
🚨 Reroutes to the nearest exit in an emergency "Emergency β€” exit is 12 steps to your right"

No beacons. No special infrastructure. Just a phone. πŸ“±


🧩 The Three Layers of Framing

Lead with emotional. Support with practical. Close with technical.

Layer What we say Why it matters
❀️ Emotional "Visually impaired students deserve the same independence as everyone else." Judges feel it
πŸ› οΈ Practical "No beacons, no floor-plan installs, no infrastructure. Just a phone camera." Judges understand it
πŸ”¬ Technical "DINOv2 embeddings + RAG localization + real-time waypoint matching + on-device obstacle detection." Judges respect it

πŸ—οΈ How It Works

flowchart LR
    subgraph Student["πŸ§‘β€πŸ¦― Student"]
        V["πŸŽ™οΈ 'Hey WayFinder,<br/>take me to chemistry'"]
        A["πŸ”Š Audio guidance"]
    end

    subgraph App["πŸ“± Flutter App"]
        CAM["πŸ“· Camera"]
        LOC["πŸ“ Localization<br/>(RAG)"]
        NAV["🧭 Navigation<br/>(waypoint match)"]
        TTS["πŸ”‰ Text-to-Speech"]
    end

    subgraph Vision["🧠 Vision Server · GPU"]
        Y["YOLOv8-seg<br/>detect people"]
        SD["Stable Diffusion<br/>clean scene"]
        D["DINOv2<br/>768-dim embedding"]
    end

    subgraph Cloud["☁️ Supabase"]
        DB[("πŸ—„οΈ Embeddings,<br/>paths, maps")]
    end

    V --> CAM
    CAM --> Y --> SD --> D
    D --> LOC
    D --> NAV
    LOC <--> DB
    NAV <--> DB
    LOC --> TTS
    NAV --> TTS
    TTS --> A
Loading

πŸ“ Full architecture, sequence diagrams & component map β†’

πŸ”¬ The Technical Story in Three Steps

Step Layer Technology Job
1️⃣ Perception YOLOv8-seg + Stable Diffusion 2.0 + DINOv2 See the scene, remove people, fingerprint it as a 768-dim vector
2️⃣ Localization RAG retrieval + GPT-4 Vision Match the fingerprint to a known location and verify it
3️⃣ Guidance Waypoint matching + compass + dynamic thresholds Walk the student in, turn by turn, and recover if they drift

🎀 Voice-First by Design

Everything is hands-free β€” built for someone who cannot look at a screen.

Command Result
πŸ—£οΈ "Hey WayFinder, where am I?" Captures 8 frames, cleans the scene, announces your location
πŸ—£οΈ "Hey WayFinder, take me to the cafeteria" Orients you, then gives turn-by-turn directions
πŸ—£οΈ "Hey WayFinder, what routes are available?" Lists nearby destinations
πŸ—£οΈ "Hey WayFinder, why do you think I'm here?" Explains the evidence behind its location guess
πŸ—£οΈ "Hey WayFinder, stop" Ends navigation immediately

πŸ› οΈ Tech Stack

Component Technology Purpose
πŸ“± Mobile App Flutter (Dart) Cross-platform UI, TalkBack-friendly
🧠 Vision AI DINOv2 (Meta) Scene understanding (768-dim embeddings)
πŸ‘€ Object Detection YOLOv8-seg People & carried-object detection
πŸ–ŒοΈ Scene Cleaning Stable Diffusion 2.0 Inpaint people out for robust matching
πŸŽ™οΈ Wake Word Porcupine On-device "Hey WayFinder"
πŸ—£οΈ Speech-to-Text Google STT Transcribe voice commands
πŸ’¬ NLU GPT-4 Turn casual speech into intents
πŸ‘οΈ VLM Verification GPT-4 Vision Confirm location matches
πŸ”Š Audio Output Flutter TTS Spoken guidance
☁️ Backend Supabase (PostgreSQL) Database + auth + storage
⚑ AI Server FastAPI + PyTorch GPU inference gateway

πŸš€ Quick Start

βœ… Prerequisites

Need Why
πŸ€– Android device (7.0+) with camera Runs the app & speaks guidance
🐍 Python 3.8+ with NVIDIA GPU Runs the vision server
🎯 Flutter 3.0+ Builds the app
☁️ Supabase account (free tier) Database, auth, storage
πŸ”‘ OpenAI API key GPT-4 command parsing & location verification

1️⃣ Set Up the Vision AI Server

cd scripts
pip install -r ../requirements.txt
wget https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8l-seg.pt
python dinov2_http_gateway.py     # http://YOUR_IP:8000

2️⃣ Set Up Supabase

Run database_scheme.sql in the Supabase SQL editor, then create the reference-images and maps storage buckets.

3️⃣ Configure the App

Create a .env file:

SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key
OPENAI_API_KEY=sk-your-api-key

Point the app at your server in lib/services/dinov2_service.dart:

static const String _defaultServerUrl = 'http://YOUR_SERVER_IP:8000';

4️⃣ Build & Run

flutter pub get
flutter run

πŸ“– How to Use

πŸŽ“ For Students (Hands-Free)

  1. Say "Hey WayFinder, where am I?" β€” the app tells you your location.
  2. Say "Hey WayFinder, take me to the cafeteria."
  3. Face the direction the compass tells you, then follow the spoken turns.

πŸ› οΈ For Teachers & Staff (Setup)

Step Action
1️⃣ Create a floor β€” upload a floor-plan image
2️⃣ Add locations β€” tap the map to place nodes ("Cafeteria", "Chemistry Lab")
3️⃣ Record a route β€” walk it with the camera forward; the app captures waypoints every ~2s (embedding + heading + reference image)

πŸ“Š Performance

Metric Clean scene Crowded scene
🎯 Localization accuracy 95% 90%
🧭 Waypoint detection 92% β€”
πŸ”„ Recovery success 85% β€”
⚑ Navigation frame rate 10–15 FPS 10–15 FPS
Threshold Value Meaning
RAG retrieval 0.80 Embedding match to a location
Navigation β€” clean 0.87 Waypoint reached
Navigation β€” people present 0.84 Slightly loosened
Navigation β€” crowded 0.75 Loosened for crowds
Before a turn 0.90 High precision for turns

πŸ—„οΈ Data Model

Table Holds
maps Floor-plan images
map_nodes Named locations & their map position
navigation_paths Recorded routes (start β†’ end)
path_waypoints Embedding + heading + turn type per waypoint
place_embeddings 768-dim location fingerprints for RAG retrieval

Full schema: database_scheme.sql


πŸŽ›οΈ Configuration

Tune matching strictness β€” lib/services/real_time_navigation_service.dart:

static const double _waypointReachedThresholdDefault = 0.87; // standard
static const double _cleanSceneThreshold             = 0.87; // no people
static const double _peoplePresentThreshold          = 0.84; // 1-2 people
static const double _crowdedSceneThreshold           = 0.75; // 3+ people
static const double _turnWaypointThreshold           = 0.90; // before turns

Server speed vs. quality:

export SD_REALTIME_MODE=true    # faster, for live navigation
export SD_REALTIME_MODE=false   # higher quality inpainting
python dinov2_http_gateway.py

Why WayFinder fits the challenge

Judging criterion Our answer
❀️ Impact Real accessibility problem β€” blind students navigating school alone every day
πŸ’‘ Creativity Visual place recognition instead of beacons β€” non-generic, works with zero school infrastructure
🎨 Design Voice-first, TalkBack-friendly, hands-free; nothing requires sight
βš™οΈ Functionality Working localization + turn-by-turn navigation + auto-recovery demonstrated end-to-end
πŸ“š Learning Team can explain every layer β€” from DINOv2 embeddings to RAG to dynamic thresholds

πŸ€– AI-Use Disclosure

In line with the hackathon rules, we disclose how AI was used:

Area How AI helped
🧠 In the product DINOv2 (visual embeddings), GPT-4 (intent + verification), YOLOv8 (detection) β€” these are the product
πŸ’» In development AI coding assistants (ChatGPT / Claude / OpenHands) were used to scaffold screens, debug, and draft documentation
βœ… Our understanding The team designed the pipeline, tuned thresholds, recorded real paths, and can explain every component and decision

πŸ“¦ Submission Checklist

  • Project name & short description
  • Problem explanation & what it does
  • Source code (this repository)
  • MIT licensed & publicly viewable
  • Architecture documentation
  • πŸŽ₯ 1–2 minute demo video
  • πŸ–ΌοΈ Screenshots
  • πŸ”— Devpost submission link

πŸ‘₯ Team

Name Role
theyapguard Developer β€” app, vision pipeline, navigation

🀝 Contributing

Contributions that expand independence are welcome!

Area Idea
🍎 iOS support Bring it to iPhone
πŸ“΄ Offline mode On-device embeddings, no server
🌐 Multi-language Guidance in the student's language
🚧 Obstacle detection Richer, safer warnings
⚑ Performance Higher FPS on mid-range phones

πŸ“„ License

Released under the MIT License β€” see LICENSE.


WayFinder β€” because getting to class shouldn't require asking for help. 🧭❀️

About

School navigation for visually impaired students. Voice-first, AI-powered, no beacons or infrastructure required.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages