Assignment 2: Opto-simulator

Objective

To simulate eyes that follows the subject depending on his/her position.


Sensing

Camera captures an image of the subject’s face.

Computing

Computer calculates the position of the subject within the x-axis and y-axis within the screen.

Effecting

The simulated eyes look and follow in the direction of the subject’s position.


Process/Execution
Overview
opto_simulator_1
Tracking the face
opto_simulator_2
Syncing face position with video playback

 

opto_simulator_3


Results

opto_simulator_gif

Assignment 1: Mirror

Objective

To create a mirror that grows dimmer as the subject moves closer to it.


Sensing

Camera captures an image of the subject’s face.

Computing

Computer calculates the area of the subject to determine the distance and generates a value for the brightness of its reflection.

Effecting

Reflection is dimmed when subject is close to the “mirror” while it is brighter when subject is away.


Process/Execution
Overview
mirror_1
Getting image from camera
mirror_2
Bounding box for face tracking
mirror_3
Calculate area of bounding box
mirror_4
Face size to brightness

 

mirror_5


Results

mirror_gif