Skip to content

nicleee666/AirTouchBar-for-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AirTouchBar for Mac

Overview

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.

Usage

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

Demo

Watch the video on YouTube

Requirements

  • Python 3.8+
  • MediaPipe
  • OpenCV

Installation

```bash

Clone the repository

git clone https://github.com/yourusername/AirTouchBar-for-mac.git

Change into the project directory

cd AirTouchBar-for-mac

Install dependencies

pip install -r requirements.txt ```

Usage

  1. Run the main script:

    ```bash python src/main.py ```

  2. Perform hand gestures near the camera to control the Touch Bar.

Configuration

You can modify settings like max_hands, detection_confidence, and tracking_confidence in the hand_detector.py file.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages