Skip to main content

Party Pi is a computer vision emotion detection game with OpenCV and Microsoft Oxford Emotion API.

Project description

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

Screenshot

Install

Install OpenCV3 with python3 bindings

Get Authorization Keys

Microsoft/Oxford Emotion API Reference

  • Place your subscription key in config.json: “Ocp-Apim-Subscription-Key: {subscription key}”

Imgur API Reference

Getting Started

Clone repository:

git clone https://github.com/JustinShenk/party-pi.git
cd party-pi

Install dependencies:

pip install -r requirements.txt

Change config.json.example to config.json and add your Emotion_API and Imgur keys. Then start the game:

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.

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.2.tar.gz (152.0 kB view details)

Uploaded Source

File details

Details for the file partypi-0.1.2.tar.gz.

File metadata

  • Download URL: partypi-0.1.2.tar.gz
  • Upload date:
  • Size: 152.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for partypi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d5704bbbd801a80b76f2a70a16371d699892989e40f0752d39db93ac100da6b3
MD5 03c9c83e81a5ef0129cfb8c4581d3918
BLAKE2b-256 e3cb0601c40e0636c115b4c4a99e90abdb4588d23a5eb4111a778abe66752a9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page