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
====
.. image:: partypi/demo.png
Install
=======
Install OpenCV3 with python3 bindings
Get Authorization Keys
======================
Microsoft/Oxford Emotion API `Reference <https://dev.projectoxford.ai/docs/services/5639d931ca73072154c1ce89>`_
- Place your subscription key in config.json: "Ocp-Apim-Subscription-Key: {subscription key}"
Imgur API `Reference <https://api.imgur.com/endpoints>`_
Getting Started
===============
Clone repository:
.. code-block:: python
git clone https://github.com/JustinShenk/party-pi.git
cd party-pi
Install dependencies:
.. code-block:: python
pip install -r requirements.txt
Change ``config.json.example`` to ``config.json`` and add your Emotion_API and Imgur keys. Then start the game:
.. code-block:: python
python main.py
Additional (optional) 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
- Add Python 2 compatibility
- Add camera detection feature to recognize if raspberry pi
Author
======
`Justin Shenk`_ (`@JustinShenk`_) created Party Pi.
.. _Justin Shenk: https://linkedin.com/in/JustinShenk/
.. _@JustinShenk: https://github.com/JustinShenk/
########
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
====
.. image:: partypi/demo.png
Install
=======
Install OpenCV3 with python3 bindings
Get Authorization Keys
======================
Microsoft/Oxford Emotion API `Reference <https://dev.projectoxford.ai/docs/services/5639d931ca73072154c1ce89>`_
- Place your subscription key in config.json: "Ocp-Apim-Subscription-Key: {subscription key}"
Imgur API `Reference <https://api.imgur.com/endpoints>`_
Getting Started
===============
Clone repository:
.. code-block:: python
git clone https://github.com/JustinShenk/party-pi.git
cd party-pi
Install dependencies:
.. code-block:: python
pip install -r requirements.txt
Change ``config.json.example`` to ``config.json`` and add your Emotion_API and Imgur keys. Then start the game:
.. code-block:: python
python main.py
Additional (optional) 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
- Add Python 2 compatibility
- Add camera detection feature to recognize if raspberry pi
Author
======
`Justin Shenk`_ (`@JustinShenk`_) created Party Pi.
.. _Justin Shenk: https://linkedin.com/in/JustinShenk/
.. _@JustinShenk: 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
partypi-0.1.1.tar.gz
(152.0 kB
view details)
File details
Details for the file partypi-0.1.1.tar.gz
.
File metadata
- Download URL: partypi-0.1.1.tar.gz
- Upload date:
- Size: 152.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62a5c4893988bc4e1d67fae80ab905842b5286556865cc921d429c544d43b9ed |
|
MD5 | d29fe54f989bcfb480f839acda76feff |
|
BLAKE2b-256 | 1612b288451821572be6cb1c24c9bc11c0cdf9ab1a4b8f4d472ea802e88ba513 |