Skip to content

Control your Spotify app based on hand gesture recognition🎶 The application was developed using pyQT, Recurrent Neural Networks (used to classify gestures) and OpenCV.

Notifications You must be signed in to change notification settings

kzaleskaa/spotify-gesture-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPOTIFY GESTURE CONTROLLER

Spotify Gesture Controller logo

📝 Description

Spotify Gesture Controller is a project realised during "Programming in functional languages" course. The main goal was create the app, which can:

  • play/pause current track
  • skip to next/previous track
  • add/remove song to saved
  • volume up/down music

using hand gestures. To do this, Python 3.9 was used with OpenCV and MediaPipe libraries. Tensorflow model was trained on custom dataset, which was created by myself.

🏃‍ How to install and run it?

Remember: to use this app you need to have premium version of Spotify.

  1. Download repository
    git clone https://github.com/kzaleskaa/hand-gesture-recognition.git
    cd hand-gesture-recognition
    
  2. Create a new project at Spotify Dashboard and edit settings - add http://localhost:8888/spotify-api/callback/ in Redirect URLs.
  3. Create your environment and activate it
    $ python -m venv venv
  4. Install requirements
    $ pip install -r .\requirements.txt
  5. In root project directory, create .env file with following content (from your Spotify Dashboard):
    CLIENT_ID=<YOUR CLIENT ID>
    CLIENT_SECRET=<YOUR CLIENT SECRET>
    
  6. Start app
    python main.py
    
  7. Open your spotify app, start play music and use this app to control it

✋ Gestures

ezgif com-gif-maker (9)

🎶 Spotify API

Based on simple REST principles, the Spotify Web API endpoints return JSON metadata about music artists, albums, and tracks, directly from the Spotify Data Catalogue.

If no action on Spotify is made, please open your app and start play music manually. Then, you can use this app to control it.

🖊 Credits

About

Control your Spotify app based on hand gesture recognition🎶 The application was developed using pyQT, Recurrent Neural Networks (used to classify gestures) and OpenCV.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages