FaceOSC Installation and Processing Examples
Download FaceOSC:
https://github.com/kylemcdonald/ofxFaceTracker/releases (.zip)
Changing faceOSC settings:
Inside the FaceOSC package there is an xml file called settings.xml.
Right Click → Show Package Content → data → settings.xml
port: must be the same in both applications (defaults to 8338)
host: localhost will send to the same computer otherwise find the correct ip address of the computer you are sending to.
OSC Messages:
- OSC uses an address protocol to identify data sent
- Associated with the address are values in sequence
- For example, FaceOSC sends a single integer value (0 or 1) with the address: /found
FaceOSC address specification:
Always sent
- /found i: 0 or 1 if a face is currently being tracked
Sent when a face is being tracked
- /pose/position ff: center coordinate position of the tracked face in the capture dimensions (camera w & h,default is 640x480)
- /pose/scale f: size of the tracked face (smaller when farther from the camera)
- /pose/orientation fff: 3d vector denoting the orientation of the tracked face (looking left, angled, down, etc)
- /gesture/mouth/width f: left to right of mouth
- /gesture/mouth/height f: top to bottom of inner mouth
- /gesture/eyebrow/left f: center of the eye to middle of eyebrow
- /gesture/eyebrow/right f: center of the eye to middle of eyebrow
- /gesture/eye/left f: upper inner eye to lower outer eye
- /gesture/eye/right f: upper inner eye to lower outer eye
- /gesture/jaw f: nose center to chin center
- /gesture/nostrils f: left side of nose to right side of nose
Face OSC Templates
https://github.com/CreativeInquiry/FaceOSC-Templates
FaceOSC and Processing
To make FaceOSC working width Processing you need the OSCP5 library
http://www.sojamo.de/libraries/oscP5/#installation
- Open Processing
- Go to Skecth -> Import Library -> Add Library
- Search OSCP5 and install it
FaceOSC processing templates
Open FaceOSC, and run the sketches
- FaceOSC Template (Basic Example) : face_osc_template
- FaceOSC Visual Example: face_osc_mouth_color
- FaceOSC with audio, minim library: face_osc_drum