Skip to content

nicolomassobrio/Magic-Mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic-Mirror

The project consists of a prototype of an interactive mirror, made using Microsoft Kinect v1 and Processing 3.5.2. The user stands in front of a display, connected to a device with processing and he's able to see his mood projected according to his posture.

Software prerequisites

Windows version:

Installation and usage

$ go get -u -f github.com/nicolomassobrio/Magic-Mirror/Magic_Mirror
$ go download
  • Add the Magic_Mirror folder to Processing folder on your device.
  • Check if SimpleOpenNi and Mimin library folders are in a folder called 'libraries' in Processing folder on your device.
  • Lantch Processing.
  • Open Magic_Mirror file.
  • Run the Processing file.

The technique

  • The program uses the SimpleOpenNi v1.96 Processing library, which traces a basic skeleton of the user when the kinect detects its presence.
  • The program allows the user to color the background of the mirror moving legs and arms in predefined positions, acquired from the Processing file.
  • The processing file stores in memory 4 user positions related to four moods, 2 positions related to a dance pose and 2 relative to gestural indicators.
  • The second processing file, called SkeletonPoser, defines a series of variables and functions that can be used whenever an element of the class with the same name is created, allowing to build new positions and associate new colors, texts and music to them.

Acquired body poses

The following table presents which body poses are already acquired:

Position Color Description/Feeling
Both arms stretched along the body Black neutral position (no feeling)
Both hands above the shoulders and both elbows bended below the shoulders Red Anger/Strength/Power
Right hand above the shoulders Orange Greeting/Positiveness/Cordiality
Both arms above the shoulders Yellow Happiness/Hug/Energy
Left hand above the shoulders and right arm stretched down Green Disgust
Both hands above the shoulders and right elbow bended above the shoulders Purple Fear
Both hands above the elbows and both elbows bended - Asking the current time
Right arm stretched above the head and the legs apart - playing Bohemian Rhapsody
Right hand above the shoulders, left hand below the hips and left foot on the right of right knee - playing Staying Alive
Left hand near the left ear, left elbow blended above the shoulder and right arm stretched on the right of the right shoulder - pausing the music player

Magic Mirror Interaction folder

The Magic Mirror Interaction is a new Processing file based on Magic Mirror project. Using this application two users can interact each other using colors and their body poses. Processing splits the screen into two different interfaces, one for each user.

$ go get -u -f github.com/nicolomassobrio/Magic-Mirror/Magic_Mirror_Interaction
$ go download
  • Add the Magic_Mirror_Interaction folder to Processing folder on your device.
  • Lantch Processing.
  • Open Magic_Mirror_interaction file.
  • Run the Processing file.

Examples

alt text

alt text

alt text

alt text

alt text

alt text

alt text

alt text

License

Creative Commons License
Magic Mirror by Nicolò Massobrio is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at https://github.com/nicolomassobrio/Magic-Mirror.