Drawing Faces part 3

A final refinement of the image drawing process. The aim is to go from a grayscale image to a set of equally space coordinates which can be used to draw an abstraction of the face as a set of lines.
The face on the left is captured from a webcam, the second image (a bitmap) is the result of a canny edge detector using opencv. The third is a result of using a contouring routine in opencv. The threshold of the edge detector is adjusted to reduce the number of contours to a manageable amount (around 35 for a 120 x 120 pixel image seems to work ok) through a process of iteration.
Unfortunately the contours from opencv are not quite what I want - if you look closely you’ll see they aren’t lines but loops, which when ‘drawn’ with the ribbons of text are too complicated. The final step is to save the canny image as a file and use an open source tool autotrace to trace the edges and convert them to lines. These are output to a pdf file, which is then further massaged by a python script by fitting a set of equally spaced points along each line and packaged up as a tasty python pickle object.