An intuitive camera-based gesture control system for macOS that enables touchless control of system functions like volume, zoom, and brightness through hand gestures.
- Volume Control: Adjust system volume by pinching thumb and index finger
- Zoom Control: Zoom in/out in applications using hand gestures
- Brightness Control: Control display brightness with hand movements
- Real-time Processing: Low-latency hand tracking with MediaPipe
- Customizable: Adjust sensitivity and control ranges to your preference
- Python 3.7+
- macOS (Windows support coming soon)
- Webcam
git clone https://github.com/RandomForestPanda/FreeHandsControl.git
cd FreeHandsControl
pip install -r requirements.txt
- mediapipe
- opencv-python
- numpy
- pyobjc (for macOS system controls)
python -m FreeHandsControl.volume
python -m FreeHandsControl.zoom
python -m FreeHandsControl.brightness
This software directly modifies system settings on macOS. Use with caution:
- May affect system volume, display brightness, and application zoom levels
- Requires accessibility permissions
- Test in a controlled environment before regular use
- Not recommended for mission-critical systems
You can adjust parameters in the respective control files:
VolumeHandControl.py
: Adjust[50,300]
range for volume sensitivityZoomHandcontrol.py
: Modifylength
thresholds for zoom sensitivity
-
Accessibility Access
System Preferences → Security & Privacy → Privacy → Accessibility
Allows volume/brightness control -
Screen Recording (optional for some versions)
System Preferences → Security & Privacy → Privacy → Screen Recording
Required for application-specific zoom control -
Terminal/IDE Permissions
If running from terminal:
System Preferences → Security & Privacy → Privacy → Full Disk Access
- These permissions give the software system-modification capabilities
- Only install from trusted sources
- Review the source code before granting access
- Revoke permissions after use via the same settings panels
Contributions are welcome! Please open an issue or submit a pull request for any improvements.
This project is licensed under the MIT License - see the LICENSE file for details.
- MediaPipe for the hand tracking solution
- AppleScript for macOS system control integration via OSAscript