midterm project - Spirit Mirror



The Spirit Mirror allows the person who is staring at his/her reflection to alter his/her image by blowing into a microphone. The altered image turns dark and a random white shape appears. While the person goes about staring at the reflection and altering it, a haunting piece of music plays in the background.
Relevant resources:
http://en.wikipedia.org/wiki/Spirit
The English word "spirit" comes from the Latin spiritus, meaning "breath" (compare spiritus asper), but also "soul, courage, vigor", ultimately from a PIE root *(s)peis- ("to blow").
[ Khronos Projector ] simplified demos
Steps required to implement the code:
1)Run live video from the computer webcam to act as the “mirror”.
2)Implement microphone signal code.
3)In the signal code, when the force of the blowing is at or above a certain signal value, display a dark overlay.
4)Then display a random white shape.
5)After a certain delay, have the mirror go back to its original state.
Programming challenges:
Getting the microphone signal data to correspond well with the appearance of the dark background and white shape.










