/** * An Screen Rendered Character (SRC) Classifier is able to * return the character class of a given grayscale character image. * Valid classes are a-z and A-Z (52 classes). * @author Steffen Wachenfeld * @version 2009-04-14 */ public interface SRCClassifer { /** * Returns the character class of a given 8Bit-gray image. * The image is given as a 2D matrix of int values. * Values will be scaled 0-255, where 0 is black and 255 is white. * Pixels will be stored with the first dimension being x and the second being y. * Origin is upper left corner of an image. * This results in grayImage[x][y], where grayImage[0][0] is the top-left most pixel * * @param grayImage 8-Bit gray scale image * @return one of 52 character classes a-z, A-Z */ public char classifySRC(int[][] grayImage); }