public class SimpleOcr extends CvStage
Modifier and Type | Class and Description |
---|---|
protected static class |
SimpleOcr.CharacterMatch |
static class |
SimpleOcr.DrawStyle |
static class |
SimpleOcr.OcrModel |
CvStage.CvStageBeanInfo, CvStage.Result
Constructor and Description |
---|
SimpleOcr() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlphabet() |
SimpleOcr.DrawStyle |
getDrawStyle() |
int |
getFontMaxPixelSize() |
java.lang.String |
getFontName() |
double |
getFontSizePt() |
java.lang.String |
getPropertyName() |
double |
getThreshold() |
boolean |
isAutoDetectSize() |
boolean |
isDebug() |
protected CvStage.Result |
performOcr(CvPipeline pipeline,
Camera camera,
java.lang.String fontName,
double fontSizePt,
java.lang.String alphabet) |
CvStage.Result |
process(CvPipeline pipeline)
Perform an operation in a pipeline.
|
void |
setAlphabet(java.lang.String alphabet) |
void |
setAutoDetectSize(boolean autoDetectSize) |
void |
setDebug(boolean debug) |
void |
setDrawStyle(SimpleOcr.DrawStyle drawStyle) |
void |
setFontMaxPixelSize(int fontMaxPixelSize) |
void |
setFontName(java.lang.String fontName) |
void |
setFontSizePt(double fontSizePt) |
void |
setPropertyName(java.lang.String propertyName) |
void |
setThreshold(double threshold) |
customizePropertySheet, getBeanInfo, getCategory, getDescription, getDescription, getLengthUnit, getName, getPossiblePipelinePropertyOverride, getPossiblePipelinePropertyOverride, isEnabled, recordPropertyOverride, setEnabled, setName
public java.lang.String getAlphabet()
public void setAlphabet(java.lang.String alphabet)
public java.lang.String getFontName()
public void setFontName(java.lang.String fontName)
public double getFontSizePt()
public void setFontSizePt(double fontSizePt)
public double getThreshold()
public void setThreshold(double threshold)
public int getFontMaxPixelSize()
public void setFontMaxPixelSize(int fontMaxPixelSize)
public boolean isAutoDetectSize()
public void setAutoDetectSize(boolean autoDetectSize)
public SimpleOcr.DrawStyle getDrawStyle()
public void setDrawStyle(SimpleOcr.DrawStyle drawStyle)
public boolean isDebug()
public void setDebug(boolean debug)
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
public CvStage.Result process(CvPipeline pipeline) throws java.lang.Exception
CvStage
process
in class CvStage
java.lang.Exception
protected CvStage.Result performOcr(CvPipeline pipeline, Camera camera, java.lang.String fontName, double fontSizePt, java.lang.String alphabet) throws java.lang.Error, java.io.IOException
java.lang.Error
java.io.IOException