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.


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.




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
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:


Additional (optional) arguments: --picam for piCamera module and --resolution to specify resolution.

Select Easy or Hard Mode (left or right arrow keys).


  • 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


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.4.tar.gz (153.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page