net.sourceforge.javaocr.scanner.accuracy
Class OCRIdentification

java.lang.Object
  extended by net.sourceforge.javaocr.scanner.accuracy.OCRIdentification

public class OCRIdentification
extends Object

Provides a data structure to manage an OCR character recognition attempt.

Author:
William Whitney

Field Summary
private  ArrayList<Character> chars
           
private  ArrayList<Double> identErrors
           
private static Logger LOG
           
private  OCRComp ocrType
           
 
Constructor Summary
OCRIdentification(OCRComp ocrType)
           
 
Method Summary
 void addChar(char newChar, double identError)
           
 char getCharIdx(int idx)
           
 double getIdentErrorIdx(int idx)
           
 int getNumChars()
           
 OCRComp getOCRType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ocrType

private OCRComp ocrType

chars

private ArrayList<Character> chars

identErrors

private ArrayList<Double> identErrors

LOG

private static final Logger LOG
Constructor Detail

OCRIdentification

public OCRIdentification(OCRComp ocrType)
Method Detail

addChar

public void addChar(char newChar,
                    double identError)

getNumChars

public int getNumChars()

getCharIdx

public char getCharIdx(int idx)

getIdentErrorIdx

public double getIdentErrorIdx(int idx)

getOCRType

public OCRComp getOCRType()

toString

public String toString()
Overrides:
toString in class Object


Copyright © -2012. All Rights Reserved.