You'll have to `process the image` by going through it a pixel at a time, searching for `edges` (areas of contrast?) and seeing if there is a correlation between surrounding pixels, and whether the angle that the edge suggests is within a given threshold, and then gradually construct polygons from it. OR maybe convert the image to black and white with a given threshold and use that as an outline?