public class Decoder extends AbstractDecoder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_FEATURE_BLOCK_SIZE
The property for the number of features to recognize at once.
|
AUTO_ALLOCATE, FIRE_NON_FINAL_RESULTS, logger, PROP_RESULT_LISTENERS, PROP_SEARCH_MANAGER, resultListeners, searchManager| Constructor and Description |
|---|
Decoder() |
Decoder(SearchManager searchManager,
boolean fireNonFinalResults,
boolean autoAllocate,
java.util.List<ResultListener> resultListeners,
int featureBlockSize)
Main decoder
|
| Modifier and Type | Method and Description |
|---|---|
Result |
decode(java.lang.String referenceText)
Decode frames until recognition is complete.
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
addResultListener, allocate, deallocate, fireResultListeners, removeResultListener, toString@S4Integer(defaultValue=2147483647) public static final java.lang.String PROP_FEATURE_BLOCK_SIZE
public Decoder()
public Decoder(SearchManager searchManager, boolean fireNonFinalResults, boolean autoAllocate, java.util.List<ResultListener> resultListeners, int featureBlockSize)
searchManager - search manager to configure search spacefireNonFinalResults - should we notify about non-final resultsautoAllocate - automatic allocation of all componenetsresultListeners - listeners to get signalsfeatureBlockSize - frequency of notification about resultspublic void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface ConfigurablenewProperties in class AbstractDecoderps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public Result decode(java.lang.String referenceText)
decode in class AbstractDecoderreferenceText - the reference text (or null)