Ostrich Flash Web Cam Motion Capture Samples and Example Code

OSTRICH – Flash Webcam Gesture Capture

“Cursors to follow your movement in a few lines of code!”

Capturing the difference between successive video frames allows us to locate motion. Ostrich is set up to provide any number of cursors in various regions for excellent experimental usage. This magical interface is second perhaps only to brainwaves in the minds of many futurists. Work was done to capture the left side of motion on the left, the right side on the right and proportionally across the middle giving Ostrich improved expectation performance.

Click to Download the code for the examples

OSTRICH SAMPLES
Simple Cursor
Two Cursors
Gesture Button
Motion Blobs
Fairy Follows Fingers

Update to Ostrich Flash – Automatically Detecting iSite WebCam Cam on Mac in Flash

Ostrich Flash has been updated to automatically detect the Webcam cam on  the Mac.  There seems to be a bug or a glitch between Adobe Flash a Apple Macintosh where the iSite cam is not detected as default camera.

The OstrichCamera class in the Ostrich Zip file has been updated to solve this problem.  You do not need to know how but in case you have found this post searching for the solution here is the fix:

OSTRICH DOES THIS FOR YOU!

// make sure there is a camera at all to choose from
if (Camera.names.length == 0) {
 dispatchEvent(new Event(OstrichCamera.NO_CAMERA));
 return;
}
// find the USB class camera - the Mac iSite camera
// note Flash uses a string of a number to locate cameras
var macCamera:Number = -1;
for (var i:uint=0; i<Camera.names.length; i++) {
 if (Camera.getCamera(String(i)).name == "USB Video Class Video") {
 macCamera = i;
 break;
 }
}
// if there is a USB class camera use it
if (macCamera >= 0) {
 signal = Camera.getCamera(String(macCamera));
} else {
 signal = Camera.getCamera();
}
cam.attachCamera(signal);
addChild(cam);

Note, because of this addition, you should always capture the OstrichCamera.READY event before you pass the OstrichCamera to the other classes like OstrichCursor.

-10-

Ostrich to Let Designers and Developers Capture Webcam Motion in Flash Launching in August!

Ostrich, the seventh in a series of advanced interface open source solutions will launch in August after Inventor Dan Zen goes to Hawaii 😉 to recover from the launching of six previous sites available at Flash Feathers – http://flashfeathers.wordpress.com and also linked to at right.

So have a look around – we look forward to bringing you Ostrich soon!

Fairy follows the fingers of Dan Zen

Fairy follows the fingers of Dan Zen - do you see the Ostrich?

FLASH FEATHERS

  • ROBIN – multiuser chat and realtime game classes with Flash and PHP
  • FALCON – easy data transfer between Flash and server scripts
  • HUMMINGBIRD – parallax effect with mouse movement for 3D menus
  • GOOSE – multitouch emulator and processor with just Flash and Browsers
  • PENGUIN – tilt emulator and processor for tilt and translation apps
  • WOODPECKER – sound frequency and wave animation for MP3 and FLV
  • GOOSE – motion capture so a cursor follows your Web cam motion
  • DODO – blob detection to provide blobs anywhere there is Web cam motion

Each Flash Feather has its own Blog with the name of the bird followed by flash then .wordpress.com.  The exception is Penguin which is plural – penguinsflash.wordpress.com.

http:// BIRDNAME flash.wordpress.com

TOUR
Each site has:

  • an ABOUT page, a CODE example page and a VIDEO tutorial page at the top
  • an introduction in the top left column
  • a Download section at left with a link to the zip file(s)
  • a Donate area (Karmatja) which links through to paypal
  • a Friends section at the left to add your site if you use the Flash Feather
  • news about the specific Flash Feather in the blog area
  • links to all the Flash Feathers at the right
  • an aggregate news feed of all Flash Feathers at bottom right

ZIP FILE
The zip files come with:

  • readme.txt file with information about installing classes
  • a samples folder with example FLA and AS files
  • an icons Flash file with neat little icon components
  • a com/ folder that holds the packages and classes needed

FRIENDS AND DONATIONS
Please let us know if you use any of the Flash Feathers and we will add you to the Friends area at left.  If you use the Flash Feathers for a commercial venture or would care to donate that would be super!

karmatja

All the best and we hope you build exciting things!

feathers

Dan Zen

%d bloggers like this: