in Process

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