Party Pi is a computer vision emotion detection game with OpenCV and Microsoft Oxford Emotion API.
Project description
# Party Pi Emotion detection game for parties using computer vision.
## Description Interactive game that prompts players to show an emotion (eg, “Show surprise”), and displays the winner. Can be used on raspberry pi with piCamera module.
## Demo ![happiness](demo.png)
## Install Install OpenCV3 with python3 bindings
### Mac
#### Brew brew install opencv3 –with-python3 –with-contrib
#### Anaconda conda install -c menpo opencv3=3.1.0
### Ubuntu
[Installing OpenCV3 on Ubuntu](http://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/)
### Windows
[Installing OpenCV3 on Windows](https://www.solarianprogrammer.com/2016/09/17/install-opencv-3-with-python-3-on-windows/)
## Get authorization keys
[Microsoft/Oxford Emotion API](https://dev.projectoxford.ai/docs/services/5639d931ca73072154c1ce89) - Place your subscription key in config.json: “Ocp-Apim-Subscription-Key: {subscription key}”
[Imgur API](https://api.imgur.com/endpoints)
## Getting Started
Clone repository
git clone https://github.com/JustinShenk/party-pi.git
cd party-pi
pip install -r requirements.txt
Change auth.json.example to config.json and add your Emotion_API and Imgur keys.
python main.py
Additional arguments: –picam for piCamera module and –resolution to specify resolution.
Select Easy or Hard Mode (left or right arrow keys)
- ## TODO
[ ] Fix alignment of analyzing text
[ ] Redesign mode selection boxes
[ ] Add PyQT for font and sizing support
## Author
[Justin Shenk](https://github.com/JustinShenk/)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.