A local AI-powered projected computer interface using a mobile phone camera, computer vision, a projector, and an existing small LLM with tool skills.
- Ethco Coder
- Natnael Ermiyas
The project turns a normal projected computer display into a physical interaction surface.
A mobile phone acts as the camera sensor. The phone sends camera frames to a desktop through a local network or, where practical, USB. The desktop detects the user's hand and fingertip, maps the camera coordinates to the projector coordinates, identifies projected UI objects, and generates structured interaction events.
An existing small local LLM — for example, a TinyLlama-class model — can then act as an agent using a system prompt and SKILL.md capability descriptions.
No LLM fine-tuning is required for the initial design.
📱 MOBILE PHONE
Camera Sensor
|
Wi-Fi / USB
|
v
┌─────────────────┐
│ Desktop Receiver│
└────────┬────────┘
|
v
┌─────────────────┐
│ Computer Vision │
│ Hand/Fingertip │
└────────┬────────┘
|
v
┌─────────────────┐
│ Calibration + │
│ Interaction │
└────────┬────────┘
|
Structured Event
|
v
┌─────────────────┐
│ Small Local │
│ LLM │
│ System Prompt + │
│ SKILL.md │
└────────┬────────┘
|
v
┌─────────────────┐
│ Tool Validation │
└────────┬────────┘
|
┌─────────┼─────────┐
v v v
PowerShell CMD Python/OS
\ | /
\ | /
v v v
Windows
|
v
Projector
Imagine a projected folder named Documents.
The user places a finger on it.
Camera
↓
Hand tracking
↓
Fingertip detected
↓
Coordinate transformation
↓
Projected object = Documents
↓
TOUCH(Documents)
↓
Agent selects open_folder skill
↓
Tool validation
↓
Windows opens Documents
↓
Projector displays feedback
Basic physical interaction should be fast.
Instead of sending camera images directly to the LLM:
Camera → LLM → action
the system uses:
Camera
↓
Vision
↓
Interaction engine
↓
Structured event
↓
LLM when reasoning/tool selection is needed
This reduces latency and allows a very small model to be useful.
Capabilities are described using SKILL.md.
Example structure:
skills/
├── filesystem/
│ ├── open_folder/
│ │ ├── SKILL.md
│ │ └── tool.py
│ ├── create_folder/
│ │ ├── SKILL.md
│ │ └── tool.py
│ └── search_files/
│ ├── SKILL.md
│ └── tool.py
└── applications/
└── open_app/
├── SKILL.md
└── tool.py
The LLM should select from registered skills rather than being given unrestricted access to the operating system.
The LLM should not directly generate arbitrary PowerShell and have it executed automatically.
Use:
LLM
↓
Structured tool call
↓
Tool allowlist
↓
Argument validation
↓
Permission / confirmation
↓
Execution
Destructive operations such as deleting files should require explicit confirmation.
The first mobile-camera implementation should use the local Wi-Fi network:
Phone ───── Wi-Fi ───── Desktop
This makes early development relatively simple and keeps the camera data local.
USB can be investigated later when lower latency or more reliable bandwidth is needed.
The application should use a common camera interface so that the vision engine does not care whether the frames come from a webcam, Wi-Fi phone, or USB phone.
- Python — desktop orchestration and vision integration.
- OpenCV — image processing and projector/camera calibration.
- Hand-tracking model/library — fingertip and hand landmarks.
- Existing small local LLM — agent reasoning and skill selection.
- JSON — structured events and tool calls.
- PowerShell / Python / OS APIs — controlled desktop tools.
- Mobile application — camera capture and local streaming.
- Projector — visual output and interface.
The exact libraries are intentionally left replaceable during the prototype stage.
specification.md— system requirements and architecture.implementation-plan.md— technical implementation sequence.todo.md— task checklist.roadmap.md— project milestones and long-term direction.
The recommended first demonstration is deliberately small:
- Connect a projector.
- Display a folder icon.
- Use a webcam initially.
- Detect a fingertip.
- Calibrate camera → projector coordinates.
- Detect a finger touching the folder.
- Trigger
open_folder. - Validate the requested path.
- Open the folder.
- Display success on the projector.
After this works, replace the webcam with the mobile phone.
Do not build everything at once.
First prove:
Hand → Projected UI
Then prove:
Projected UI → Windows
Then prove:
Event → Small LLM → Skill → Tool
Then combine:
Phone Camera
↓
Vision
↓
Projected Interaction
↓
Small LLM Agent
↓
Skills
↓
Validated Tools
↓
Windows
Stage: Architecture / early implementation planning
V1 objective: A working projected folder interaction controlled by a hand, with the phone eventually serving as the camera sensor and a small local LLM providing optional agent/tool intelligence.
The first implementation milestone is available in src/projected_ai_interface. It provides a borderless Tk projected UI with a logical 4×3 test grid, responsive folder targets, hover highlighting, click/touch feedback, display selection, and a headless dry-run mode for machines without a projector or graphical session.
python3 -m pip install -e '.[test]'
python3 -m pytest -q
PYTHONPATH=src python3 -m projected_ai_interface.cli --dry-run
PYTHONPATH=src python3 -m projected_ai_interface.cliUse --display N to select a detected display. When no display-detection library or graphical display is available, --dry-run uses a configurable fallback size (--width and --height) and prints the complete UI model as JSON. Press Escape to close the fullscreen UI.
Phase 2 adds a transport-neutral CameraSource interface, an OpenCV webcam source, capture metrics, bounded reconnect support, and a deterministic synthetic source for testing without a camera. Install webcam support with python3 -m pip install -e '.[camera]', then run projected-camera --device 0 --frames 30. For a headless smoke test, run projected-camera --synthetic --frames 30.
The Android-first camera client lives in mobile-camera/. It is written with React Native primitives rendered through React Native Web so the same UI can be exercised in a browser first, then bundled into a Capacitor Android WebView. It requests camera permission, previews the camera, connects to a manually entered local WebSocket endpoint, and sends binary JPEG frames with selectable capture rates.
cd mobile-camera
npm install
npm run build # browser/WebView production validation
npm run dev # browser-first camera test
npx cap sync android # copy the validated web bundle
cd android && ./gradlew assembleDebugThe Capacitor project targets Android SDK 35 and includes the camera and Internet permissions. APK compilation requires a full JDK with javac, Android SDK platform/build tools, and ANDROID_HOME or ANDROID_SDK_ROOT; see mobile-camera/PROTOCOL.md for the frame protocol and build prerequisites.
Ethco Coder & Natnael Ermiyas
This project is intended to evolve experimentally. Architecture and technology choices may change as measurements from the prototype reveal better approaches.