Skip to content

chachi/MirrorMirror

Repository files navigation

Code Health

MirrorMirror

An art project.

This will become an interactive video exhibit which reacts to the viewers facial expressions with different sorts of video actions.

Dependencies

Python: MirrorMirror is written using Python 2.7 which is installed by default on Mac OSX, but can be found at http://python.org

opencv is currently the only library dependency. It can be installed with a tool like homebrew from http://brew.sh or from http://opencv.org

Running

After installing OpenCV, you'll have to modify mirror.py so that the FACE_CASCADE_XML string points to the correct haarcascade_frontalface_default.xml file. This is necessary for the face detection.

In a terminal, run:

python mirror.py

It should open a new window to your computer's webcam and show you a bounding box around any faces in the image.

To-Do

  • Image capture
  • Facial detection
  • Add facial expression learning
  • Add hooks for emotion reactions
  • Distributed node communication

RPi Setup

  • ssh-copy-id to each RPi
  • sudo raspi-config
    1. Expand filesystem
    2. Enable boot to desktop
  • /etc/network/interfaces needs "wireless-power off" to disable wireless power saving
  • Add restart, fix_network scripts to cron
  • Add /etc/init.d script
  • Install unclutter package to hide cursor
  • Rebuild/install zmq with pip
  • Copy virtualenv

About

Live video art project with Python, OpenCV, and nanomsg.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published