A python project to control Spotify playback using hand gestures with OpenCV, MediaPipe and Spotipy.
- Python 3.x
- Spotify Premium account
- Go to the Spotify Developer Dashboard.
- Log in and create a new application.
- Note your Client ID and Client Secret.
- Set the Redirect URI (e.g.,
http://127.0.0.1:8888/callback).
git clone https://github.com/yourusername/spotify-controller.git
cd spotify-controllerpip install spotipy opencv-python mediapipeIn config.py in the project root:
SPOTIFY_CLIENT_ID=your_client_id
SPOTIFY_CLIENT_SECRET=your_client_secret
SPOTIFY_REDIRECT_URI=http://127.0.0.1:8888/callbackpython main.pyOn first run, you will be asked to authenticate your Spotify account.