TrackHands
TrackHands is a cross-platform desktop app that detects when your fingers are near your mouth and reminds you to stop.
demo.mov
Installation
From Release
Download the latest release for your platform from the Releases page.
macOS Note
Since the app is not signed with an Apple Developer certificate, macOS may show a warning that the app "is damaged and can't be opened." To fix this, run the following command in Terminal after installing:
xattr -cr /Applications/TrackHands.app
Building from Source
-
Clone the repository:
git clone https://github.com/cacoos/trackhands.git cd trackhands -
Install dependencies:
-
Run in development mode:
-
Build for production:
The built application will be in src-tauri/target/release/bundle/.
Features
- Real-time hand and face detection using MediaPipe
- Unobtrusive system tray app
- Warning overlay when hands are detected near mouth
- Camera preview with detection visualization
- Adjustable detection frequency
- Configurable camera resolution
- Screenshot capture of detected incidents
- Privacy-focused — all processing done locally
Requirements
- macOS 11+, Windows 10+, or Linux
- Built-in camera or compatible webcam
- Camera permissions enabled
Development Requirements
How It Works
TrackHands runs in your system tray and uses your camera to:
- Detect your face and mouth position using MediaPipe Face Mesh
- Track your hand and finger positions using MediaPipe Hands
- Show a warning overlay when fingers are detected near your mouth
- Capture a screenshot of the incident to help build awareness
Privacy
- All processing is done locally on your device
- No data is collected or transmitted
- Camera access is required but footage never leaves your computer
Settings
- Detection Speed: Adjust how frequently detection runs (Slow/Medium/Fast)
- Resolution: Configure camera resolution (Low/Medium/High)
Project Structure
trackhands/
├── src/ # React frontend (desktop app)
│ ├── components/ # UI components
│ ├── hooks/ # Custom hooks (detection)
│ └── stores/ # State management
├── src-tauri/ # Rust backend
│ ├── src/ # Tauri commands
│ └── icons/ # App icons
├── site/ # Landing page website
│ ├── src/components/ # Page sections (hero, features, etc.)
│ └── src/lib/ # Detection utilities for demo
└── public/ # Static assets
Running the Landing Page
cd site
pnpm install
pnpm devTechnology Stack
- Frontend: React, TypeScript, Vite, Tailwind CSS
- Backend: Rust, Tauri 2.0
- Detection: MediaPipe (Face Mesh + Hand Landmarks)
- State: Zustand
Troubleshooting
If you're having issues with detection:
- Ensure good lighting on your face
- Try quitting and reopening the app
- Check camera permissions in System Settings
- Try a different camera resolution setting
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
Author
Joaquin Ossandon (@cacoos)