donderdag 17 februari 2011

Flash detection of tilted face

The previous version wasn't all that accurate, allthough it was fast.
Now I've made a version that samples an image under a number of tilts and compares the results.
It turns out this is a very handy approach.

http://workinprogress.ludatic.nl/ludatic/facedetection/

I used the deface project as a basis, this is without the tilting offcourse, which as you can see, adds a lot of accuracy.
http://code.google.com/p/deface/

maandag 14 februari 2011

Face detection on 80x80 pixels

This was the question from a client, I wasn't sure after looking at some examples, so I created this test:
Go there

vrijdag 11 februari 2011

Buttons and mouse transparency

It's a wellknown fact by now, that using this:
this.mouseEnabled=false;
this.mouseChildren= false;
will prevent an object from receiving mouse-events, BUT.... So you can put buttons underneath something and still get your mouseevents..

I am creating the ludatic site as we speak in AS3 and came across the following.
I create a loader and load an overlayer from a file (for instance a menu).
The menu had a big transparant PNG.
Now the buttons on the page below didn't work anymore. Naturally, I had to
I could set this up differently, but I think you should be able to fix these things programmatically, without rethinking your designs or the way you build them up.
So I set the mouseEnabled and this.mouseChildren property in the document class. It still didn't work..

After a lot of scratching my head and staring at the wall with my head in my hands....

Offcourse: The loader is mouseEnabled, this is a default. The big transparent PNG is not enabled, but it is inside the loader.content, which is a display object and therefore receives (and blocks) mouseEvents.
So the idea is to set the loader to mouseEnabled=false (and it's children) and there you go..