This is implementation for http://codingdojo.org/cgi-bin/wiki.pl?KataBankOCR