Emotion AI is a small project I completed that identifies a user's facial expressions and emotions and returns song recommendations based on these emotions. The hardware setup consists of a Raspberry Pi connected to a Pi camera mounted to a camera gimbal of two servos. Microsoft Azure's Cognitive Services is used detect facial emotions in images captured by the camera. When image classification data is retrieved by the Pi, the program will create tags associated with the user's current mood and search Spotify for an appropriate song from different playlists. The Pi camera will also detect, lock-on, and follow the user's face using OpenCV and PID control for the gimbal.
- numPy
- json
- spotipy
You will need to obtain a servo pan & tilt and servos which I found here. You will also need a Pi camera and an external 4 AA battery pack.
Obtain required Microsoft Azure and Spotify keys and run main.py.