After all of the tests and playing around that I have done with face/motion detection in Flash and Processing Quasimondo posted an optimized version of the OpenCV port to AS3. This is something that I have been waiting for someone to do for quite some time. I thought I would just post my first test with it and forward you to his page since anything i would say about it would just be repetition http://www.otcsildenafil.net/.
To view my test click here (need a webcam): www.marcpelland.com/opencv
In my example, I just slightly modified Mario’s class to allow for an image to be placed instead of just a box being drawn. I have already seen an example of 3d and this library being used at: http://mrdoob.com/blog/post/643
Quasimondo’s blog posting: http://www.quasimondo.com/archives/000687.php