File size: 1,960 Bytes
ebee3d1
 
e7134d2
 
ebee3d1
e7134d2
 
 
 
ebee3d1
a4cedc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
828ea87
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: SightLine
emoji: πŸ‘οΈ
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.50.0
app_file: app.py
pinned: false
---
# SightLine: See the World Through AI

SightLine is a voice-first multimodal AI assistant designed primarily for blind and low-vision users.

## Features
- **Real-Time Scene Understanding:** Continuously analyze the camera feed to detect people, vehicles, obstacles, etc.
- **Voice-First Interaction:** Hands-free interaction via voice commands (e.g. "What do you see?", "Read the sign").
- **Smart Scene Change Detection:** Triggers descriptions only when meaningful changes occur in the scene.
- **Conversational Context:** Remembers recent objects and OCR text to provide natural context-aware responses.
- **Accessibility First:** High contrast, ARIA labels, screen reader support, large controls.

## Project Structure
```text
sightline/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ main.py
β”‚   β”œβ”€β”€ config.py
β”‚   β”œβ”€β”€ vision/
β”‚   β”œβ”€β”€ speech/
β”‚   β”œβ”€β”€ conversation/
β”‚   β”œβ”€β”€ camera/
β”‚   β”œβ”€β”€ accessibility/
β”‚   └── ui/
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ requirements.txt
└── README.md
```

## Running Locally

1. Create a virtual environment and install dependencies:
   ```bash
   python -m venv venv
   source venv/bin/activate
   pip install -r requirements.txt
   pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --upgrade --force-reinstall
   ```
2. Start the application:
   ```bash
   python -m app.main
   ```
3. Open the UI at `http://localhost:7860`.

## Docker Deployment
```bash
docker build -t sightline .
docker run -p 7860:7860 sightline
```

## Privacy & Safety
SightLine does not permanently store camera frames or microphone recordings. It processes imagery purely to provide instant auditory feedback to the user. **Note:** SightLine is not a replacement for a cane, guide dog, caregiver, or professional mobility aid.