Drawing Faces

I’ve been struggling with stories about you for a while now.  Developing the ribbon text using verlet integration and stick and ball constraints was reasonably straightforward, getting the Haar face detector working through the opencv toolkit was ok (the python binding to the latest opencv 1.0 release is much easier to use).  Converting from straight opengl to OSG has improved the visual quality considerably and allowed me to add shadows.

However once the image of a face has been captured, I haven’t been very happy with using edge detectors (first in the vigra package then in opencv) to create a line drawing of the face.  To make the face recognisable it has to have enough detail that it becomes too complex to draw with ribbons of text.  If the source image is simplified though then the edges detected don’t have enough salience to convey a recognisable face.  Often important features such as eyes and mouths are missing.

In a trial I did late last year in the undergraduate lab was setting up the face detector for a week.  The camera was mounted facing a blank wall illuminated by a light next to the door, so as to get images of people as they walked in.  One of the problems seemed to be that the images are blurry, because people are in transit - walking past.  It seems that the camera will have to have a focal point of interest in order to capture clear images.  I may use the built in iSight camera on a wall mounted iMac.

After doing some searching around I came accross the idea of AAMs (Active Appearance Models) a research topic in computer vision.  The idea here is to build up a model of the object you want to recognise (or draw in this case) which describes its statistical properties via marking features on a database of source images - and then using this model to “fit” the model to a new image.  In this way it should be possible to draw a recognisable face with only a few lines.  VisionOpen is developing some opensource software based on opencv to do this.