|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.util.plugins.PluginBase
org.neuroph.contrib.ocr.OcrPlugin
public class OcrPlugin
Provides OCR interface for neural network.
Field Summary | |
---|---|
static java.lang.String |
OCR_PLUGIN_NAME
Ocr plugin name field used for getting plugin from parent neural network. |
Constructor Summary | |
---|---|
OcrPlugin(java.awt.Dimension samplingResolution,
ColorMode colorMode)
Constructor, creates new OCR Plugin for specified sampling resolution and color mode |
Method Summary | |
---|---|
ColorMode |
getColorMode()
Returns color mode used for OCR |
java.awt.Dimension |
getSamplingResolution()
Returns sampling resolution used for OCR |
java.lang.Character |
recognizeCharacter(java.awt.image.BufferedImage charImage)
Recognizes character from the image and returns character |
java.lang.Character |
recognizeCharacter(java.awt.image.BufferedImage charImage,
java.awt.Dimension scaleToDim)
This method scales character image to the given dimensions and then does the character recognition. |
java.util.HashMap |
recognizeCharacterProbabilities(java.awt.image.BufferedImage charImage)
Recogize the character from the image and returns HashMap with keys as characters and recognition probability as values sorted descending by probability. |
Methods inherited from class org.neuroph.util.plugins.PluginBase |
---|
getName, getParentNetwork, setParentNetwork |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OCR_PLUGIN_NAME
Constructor Detail |
---|
public OcrPlugin(java.awt.Dimension samplingResolution, ColorMode colorMode)
samplingResolution
- image sampling resolution (dimensions)colorMode
- recognition color modeMethod Detail |
---|
public java.lang.Character recognizeCharacter(java.awt.image.BufferedImage charImage, java.awt.Dimension scaleToDim)
charImage
- character imagescaleToDim
- dimensions to scale the image before character recognition is done
public java.lang.Character recognizeCharacter(java.awt.image.BufferedImage charImage)
charImage
- character image
public java.util.HashMap recognizeCharacterProbabilities(java.awt.image.BufferedImage charImage)
charImage
- character image
public ColorMode getColorMode()
public java.awt.Dimension getSamplingResolution()
|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |