Issuu on Google+

Name : Yuan-Ting Tsai Class : Physical Computing - ITGM 440 Professor : Andrew Hieronymi


Project Title : Flag Semaphore

Description : There are two modes of this project which are “Learn Mode” and “Engage Mode.” In the learn mode, the user can learn and practice the gestures of using flags. In the engage mode, the user is the semaphore sender of a boat which sailing at sea at left side, and some boats come from right side. The job of the uesr is to follow the display symbols to indicate the boats from the right side without hitting the boat at left side.

Rationale : The conpect of this project is to learn the flag semaphore throughplaying the game. The users learn the real gestures of flag semaphoreand practice those gestures.


Required Devices :

Webcam * 1 Projector * 1 projector screen or white wall (150cm * 200cm) PC or laptop * 1 Table * 1 (min 80cm height) Red Flag * 1 (min 25cm * 30cm) Blue Flag * 1 (min 25cm* 30cm) A space with lights


Devices Installation:

min 200cm

min 250cm

min 150cm webcam projector

Table 80cm


Wireframe :

video

uesr’s boat

Letter

Letter

Letter

Letter

Gesture

Gesture

Gesture

Gesture

Check

Check

Check

Check

Mark

Mark

Mark

Mark

Drifts


Visual Comprehensive : Learn Mode


Visual Comprehensive : Engage Mode


Boat & Drift names

Visual Comprehensive : Boats & Drifts

bdBoat is the boat that user owned, and others are the drifts that floating on the sea. The user has to use different gestures in order to send signals to those drifts. If the user completed the gestures before the drifts hit, the drifts will disappeard. However, if the user doesn’t finish the gestures, the drifts will hit the user’s boat.

The users have to protect this boat by sending semaphoresto the coming bdBoat

boats or drifts.

Shipwrecked sailors. send “HELP” to safe before user’s boat hits. bdHelp

Moves very fast, send “STOP” to park it wothout touch the user’s boat. bdStop


Visual Comprehensive : Boats & Drifts

After send “DIVE,” the submarine will dive into the sea. bdDive

After send “Turn” the baot will turn right and disppear. bdTurn

After send “LEFT” the baot will turn left and disppear. bdLeft

It is too bulky, send “BACK” for preventing the collisionswith user’s boat.

bdBack


Visual Comprehensive : Gesture ()

Gestures

signRest (27)

signMenu(28)

signA (1)

signB (2)

signC (3)

signD (4)

signE (5)

signF (6)

signG (7)

signH (8)

signI (9)

signJ (10)

signK (11)

signL (12)

signM (13)

signN (14)

signO (15)

signP (16)

signQ (17)

signR (18)

signS (19)

signT (20)

signU (21)

signV (22)

signW (23)

signX (24)

signY (25)

signZ (26)


Logic:

Programing : Cluster & Color placement

(0, y3)

(x1, y3)

ltop (0, y2)

top (x1, y2)

lmid (0, y1)

(x2, y2)

(x1, y1)

(x3, y2)

rmid (x2, y1)

btm

(x1, 0)

(x3, y3)

rtop

mid

lbtm

(0, 0)

(x2, y3)

(x3, y1)

rbtm

(x2, 0)

Ex: Rtop Blue flag ~ if (0<bx && bx<x1 && 0<by && by<y1) { rtopB = true; } Ex: Letter A ~ if (rbtmR ==true && btmB == true){ gesture = 1; }

(x3, 0)


Logic:

Programing : Cluster & Color placement

//blue flag boolean lupY; if lup (r>200, g>150, B<50) { lupY = true;} else (lupY = false;) //red flag boolean rbtmR; if rbtm (r>200, g<150, B<50) { rbtmR = true;} else (rbtmR = false;) //letter “L” image finished if (lupY = true && rbtmR = true) {signL.alpha = 0.3;}

//BACK====== if (gesture == 2 && signd == 11){ signDone1X = 295; signDone1Y = 200; }


Workflow : Learn Mode Main menu

Learn Mode

Random Sign

caught colors

Catch colors from webcam

v.s random sign colors

Match

Time up

Not match

10 sec


Workflow :

Main menu

Engage Mode Engage Mode

Random boat or drifts

Random boat or drifts move from right to left

Catch colors from webcam

caught flags campare with

collision happened

random boat or frifts

Game over

Match Main menu boat or drifts disappeared

Not match


Flag system treatment