public abstract class SpenRecognitionBase extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpenRecognitionBase.ResultListener
This listener interface provides callback methods for receiving recognition results when you call
request(List). |
| Modifier and Type | Method and Description |
|---|---|
void |
request(List<SpenObjectBase> input)
Request a recognition result.
The response to this method is returned asynchronously. |
void |
setResultListener(SpenRecognitionBase.ResultListener listener)
Set the specified
SpenRecognitionBase.ResultListener instance to receive recognition result events.Register the listener first before calling request(List). |
public void request(List<SpenObjectBase> input) throws Exception
SpenRecognitionBase.ResultListener instance to receive
the results.input - Object with the input data for the recognition engineIllegalStateException - Thrown if the recognition engine is not loaded.IllegalArgumentException - Thrown when the input passed is invalid.InvocationTargetException - Thrown if the recognition engine returns an error.ExceptionsetResultListener(ResultListener)public void setResultListener(SpenRecognitionBase.ResultListener listener) throws Exception
SpenRecognitionBase.ResultListener instance to receive recognition result events.request(List).listener - The SpenRecognitionBase.ResultListener instance to receive recognition result events.InvocationTargetException - Thrown if the recognition engine returns an error.Exceptionrequest(List),
SpenRecognitionBase.ResultListener