|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.javaocr.matcher.FreeSpacesMatcher
public class FreeSpacesMatcher
classify by amount of free spaces. accepts only one feature
| Field Summary | |
|---|---|
private Map<Integer,Set<Character>> |
counts
|
| Constructor Summary | |
|---|---|
FreeSpacesMatcher()
|
|
| Method Summary | |
|---|---|
List<Match> |
classify(double[] features)
create list of matches (sorted) |
List<FreeSpacesContainer> |
getContainers()
extract list of configuration beans for serialisation |
Map<Integer,Set<Character>> |
getCounts()
|
void |
setContainers(List<FreeSpacesContainer> containers)
configure matcher with external configuration data - just train it |
void |
train(char c,
int i)
train certain character occurence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Map<Integer,Set<Character>> counts
| Constructor Detail |
|---|
public FreeSpacesMatcher()
| Method Detail |
|---|
public List<Match> classify(double[] features)
classify in interface Matcherfeatures - features to be matched. we accept only 1 value (must be integer, will be cast there)
public void train(char c,
int i)
c - characteri - amount of free spacespublic Map<Integer,Set<Character>> getCounts()
public List<FreeSpacesContainer> getContainers()
public void setContainers(List<FreeSpacesContainer> containers)
containers -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||