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.
Source Distribution
Built Distributions
File details
Details for the file partypi-0.1.0.tar.gz
.
File metadata
- Download URL: partypi-0.1.0.tar.gz
- Upload date:
- Size: 152.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b0e5ef48bb55804f4d22ac7678da71959cc935f06402eb547b377ea590ff01e |
|
MD5 | 20014c1922a766a33bb9e75fa466b327 |
|
BLAKE2b-256 | 7d768bae804b01081c09dda0a441f775de1a9f861542c9ee10164c383a57b92b |
File details
Details for the file partypi-0.1.0-py3.5.egg
.
File metadata
- Download URL: partypi-0.1.0-py3.5.egg
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868124c72c91fa946266ff66099e46487a50ca02f7951556f38a48f53b9804d3 |
|
MD5 | a5032a978e5a8e58313cb5e26cede628 |
|
BLAKE2b-256 | cd1b41940edf9ef3302974c97a63b12d9bf05d370a691f36e459f855403abdd4 |
File details
Details for the file partypi-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: partypi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1a2e713be63f3264eb8a9dc1bb18700b3232d20fdc5751b79aba49270f5637 |
|
MD5 | d9bbd7401659389f9eb0c1cf47104d2f |
|
BLAKE2b-256 | 4cd4b474631a892edff61e0a061d405434d41191e24134b8e5beecca92da0bec |