AirTouchBar allows you to control your MacBook's Touch Bar using hand gestures. Built on Python and MediaPipe, it uses computer vision to recognize hand movements and translate them into Touch Bar actions.
when the application starts, different hand gesture indicates different touchbar actions.
- Closed fist - play/pause music
- pinch hand - adjust volume
- palm facing left - last track
- palm facing right - next track
- Python 3.8+
- MediaPipe
- OpenCV
```bash
git clone https://github.com/yourusername/AirTouchBar-for-mac.git
cd AirTouchBar-for-mac
pip install -r requirements.txt ```
-
Run the main script:
```bash python src/main.py ```
-
Perform hand gestures near the camera to control the Touch Bar.
You can modify settings like max_hands
, detection_confidence
, and tracking_confidence
in the hand_detector.py
file.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.