How sachin1880/touchlessx works
TouchlessX is a local desktop application that turns webcam hand motion into configurable computer controls. Its main workflow starts at the app entry point, captures frames, tracks hand landmarks, recognizes stable gestures, then dispatches mapped actions to the operating system. The UI also exposes profiles, gesture training, voice, clipboard, smart-home control, and insights. Major capabilities are documented in the README; some connections to those subsystems are documented rather than confirmed in sampled runtime code.
Main entry points: ui.py Desktop UI · app.py App Entry · action_controller.py Action Dispatcher · camera.py Webcam Capture
Components 23
Capture and Recognition
- App Entry
app.py - Webcam Capture
src/camera.py - Hand Tracker
src/hand_tracker.py - Gesture Engine
src/gesture_engine.py
Action Control
- Action Dispatcher
src/action_controller.py - OS Input
- Safety Controls
src/safety.py
Desktop Experience
- Desktop UI
src/ui.py - Feature Pages
src/ui_pages.py - UI Widgets
src/ui_widgets.py
Personalization
- Settings
src/config.py - Profiles
src/profiles.py - Custom Gesture Store
src/custom_gestures.py - Gesture Training
src/training.py - Usage History
src/history.py - Action Log
src/action_log.py
Local and Optional Features
- Clipboard
src/clipboard.py - Voice Commands
src/voice.py - Voice Assistant
src/assistant.py - Smart Home
src/smart_home.py - Platform Services
src/system.py
Other components
- User
- Smart-Home Hub
Connections 28
- User → App Entry: starts
README.md - App Entry → Webcam Capture: starts capture
app.py - App Entry → Hand Tracker: initializes
app.py - App Entry → Gesture Engine: wires pipeline
app.py - Webcam Capture → Hand Tracker: provides frames
- Hand Tracker → Gesture Engine: provides landmarks
- Gesture Engine → Action Dispatcher: dispatches gestures
src/action_controller.py - Action Dispatcher → OS Input: sends controls
README.md - Desktop UI → Webcam Capture: controls camera
src/ui.py - Desktop UI → Action Dispatcher: configures actions
src/ui.py - Desktop UI → Settings: loads settings
src/ui.py - Desktop UI → Feature Pages: hosts pages
src/ui.py - Feature Pages → UI Widgets: uses widgets
src/ui_pages.py - Desktop UI → Profiles: manages profiles
src/ui.py - Profiles → Settings: validates against
src/profiles.py - Desktop UI → Gesture Training: manages training
src/ui.py - Gesture Training → Custom Gesture Store: uses classifier
src/training.py - Desktop UI → Usage History: reads insights
src/ui.py - Desktop UI → Action Log: records actions
src/ui.py - Desktop UI → Clipboard: handles clipboard
src/ui.py - Desktop UI → Voice Commands: starts listening
src/ui.py - Desktop UI → Voice Assistant: configures assistant
src/ui.py - Voice Assistant → Voice Commands: uses speech support
src/assistant.py - Desktop UI → Smart Home: manages integration
src/ui.py - Smart Home → Smart-Home Hub: sends commands
README.md - Desktop UI → Safety Controls: provides stop controls
src/ui.py - Desktop UI → Platform Services: uses platform services
src/ui.py - Voice Commands → Action Dispatcher: maps commands
README.md