TextRecognitionListener Interface Reference

Public Member Functions

int didRecognizeText (RecognizedText text)
 

Public Attributes

int PICKER_STATE_PAUSED
 
int PICKER_STATE_STOPPED
 
int PICKER_STATE_ACTIVE
 

Detailed Description

Interface to be implemented for handling text recognition events.

Member Function Documentation

int didRecognizeText ( RecognizedText  text)

Invoked whenever text has been recognized in a frame.

Parameters
textThe recognized text.
Returns
The new state for the barcode picker. If you want to continue scanning, return PICKER_STATE_ACTIVE, if you want to pause scanning, use PICKER_STATE_PAUSED. If you want to complete stop the scanning, usePICKER_STATE_STOPPED.

Member Data Documentation

int PICKER_STATE_PAUSED

Put the picker into paused state.

This will keep the camera preview running but stop the recognition process.

int PICKER_STATE_STOPPED

Put the picker into stopped state.

This will stop the camera preview and stop the recognition process.

int PICKER_STATE_ACTIVE

Keep the picker in active state.

This will keep the camera preview and recognition process running.


The documentation for this interface was generated from the following file:
  • TextRecognitionListener.java