This is a small game made by my team (Team 4).
You are the goalkeeper trying to defend the penalties.
You can move the goalkeeper position by moving your face.
It requires:
- Processing
- OpenCV library for Processing
- webcam
You can download the code from here.
The code related to OpenCV is taken from Ian's facetracking code.
All other code was based on a tutorial we found on the web, but made from sratch.
Enjoy and leave a comment.
JC
- if you are having trouble installing OpenCV on Windows Vista, see previous post (Face Detection working on Windows XP).
- you can detect your body movement (instead of only the face) by replacing the haarcascade XML file.
sexta-feira, novembro 26, 2010
quinta-feira, novembro 18, 2010
Face Detection working on Windows XP
Hi all.
After EI class I spend some time trying to figure out how to make Face Detection work on Windows Vista.
I manage to get things to work, but the face recognition doesn't start. The pictures are shown on the screen, but there is no scroll.
So I tried on Windows XP, and it worked.
I followed these steps:
- Download and install Open CV 1.0 (not 2.0) from here.
- On install make sure you tick «add path...».
- Although the system now has the PATH var defined for current user, you should define for all users (as a system variable).
- Copy libraries for processing to the library dir (unzip opencv_01.zip).
- Copy the xml file «haarcascade_frontalface_alt.xml» from «haarcascades» dir (found it in the Open CV install dir\data) to «data» dir that contains the png images for FaceTracking tutorial.
- Reboot
That's it.
Ian just posted a message on EI forum, and it seems Pedro Camacho found a solution for Vista/7 (I supose). You can find it here.
JC
After EI class I spend some time trying to figure out how to make Face Detection work on Windows Vista.
I manage to get things to work, but the face recognition doesn't start. The pictures are shown on the screen, but there is no scroll.
So I tried on Windows XP, and it worked.
I followed these steps:
- Download and install Open CV 1.0 (not 2.0) from here.
- On install make sure you tick «add path...».
- Although the system now has the PATH var defined for current user, you should define for all users (as a system variable).
- Copy libraries for processing to the library dir (unzip opencv_01.zip).
- Copy the xml file «haarcascade_frontalface_alt.xml» from «haarcascades» dir (found it in the Open CV install dir\data) to «data» dir that contains the png images for FaceTracking tutorial.
- Reboot
That's it.
Ian just posted a message on EI forum, and it seems Pedro Camacho found a solution for Vista/7 (I supose). You can find it here.
JC
domingo, novembro 14, 2010
Bike control system
For assignment 3 our final prototype is a «bike control system».
We didn't implemented it on a real bicycle, but you can get an idea of how it works from the following 2 videos.
Video 1:
Video 2:
Feel free to comment our work.
JC
We didn't implemented it on a real bicycle, but you can get an idea of how it works from the following 2 videos.
Video 1:
Video 2:
Feel free to comment our work.
JC
Subscrever:
Mensagens (Atom)