This code allows you to open Spotify with your hands following using the Mediapipe and OpenCV libraries.
- Python 3.x
- cv2 (OpenCV)
- mediapipe
- webbrowser
Make sure you have installed the above requirements.
- download this code:
git clone https://github.com/0MeMo07/Opencv-Spotify-Open.git
- Go to Opencv-Spotify-Open file:
cd Opencv-Spotify-Open
- Install the required libraries by running the following command:
pip install -r requirements.txt
- Connect a webcam to your computer.
- Start the program by running the following command:
python SpotifyHandOpen.py
- Keep your hands within the camera frame.
- Make a touch gesture by bringing your thumb in contact with the tip of your index finger.
- Every third touch, the program will automatically open Spotify and navigate to the playlists.
- Press 'q' on the keyboard to exit the program.