/Rabbit

game based on openCV's face detection

Primary LanguageProcessing

rabbit 1.0 - october 2012

  • updated for Processing 3.2.4 - february 2017

by giovanni bedetti

http://giovannibedetti.com/

drawings and animation by donatella esposito

http://www.behance.com/monocolo

interactive installation - based on face detection - for “rabbitFest”, international animation festival (perugia, italy, 19/20th june 2012).

when a face is detected, a sequence of frames that animates a rabbit is projected on a background image. the rabbit can interact with the circumstant space, itself animated.

all the data folder content is Copyright © 2012 giovanni bedetti and donatella esposito

http://gruppoworkshow.jimdo.com/ http://rabbitfest.org/

NOTES:

this code is for Mac OSX only, future releases will provide Windows and Linux compatibility

libraries used:

the opencv library https://github.com/atduskgreg/opencv-processing

the ani library http://www.looksgood.de/libraries/Ani/

CONTROLS:

s - save a screenshot

use these controls to improve face detection: the lights around you are very important

d - debug mode
3 - decrease brigthness
4 - increase brigthness
5 - decrease contrast
6 - increase contrast

with debug Mode On:
c - eat all carrots
k - kill rabbit
g - show/hide gun
e - show results during game

DISCLAIMER

rabbit is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

rabbit is distributed WITHOUT ANY WARRANTY: use this code at your own risk.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.