Nearly completed marker recognition. Still some errors with complex
contours.