Class GenericDocumentScanningSession
-
- All Implemented Interfaces:
public final class GenericDocumentScanningSessionProvides a wrapper for observing an document scanning result
-
-
Field Summary
Fields Modifier and Type Field Description public final static DoubleZERO_CONFIDENCE_VALUEpublic final static DoubleMODERATE_CONFIDENCE_VALUEpublic final static DoubleHIGH_CONFIDENCE_VALUE
-
Constructor Summary
Constructors Constructor Description GenericDocumentScanningSession(GenericDocumentRecognizer genericDocumentRecognizer)
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class><DocumentRecognitionState>observeDocumentRecognitionResults()Observes newly processed document final UnitpushNewDocumentRecognitionResult(GenericDocumentRecognitionResult result)Notifies about the event of document scanning final <Error class: unknown class><Boolean>observeScanReadyState()Observes the state of document scanning final <Error class: unknown class><Boolean>observeScanningPausedState()Observes the paused state of the session final UnitpushScanReadyState(Boolean ready)Notifies about the event of scanning state final UnitpushScanningPausedState(Boolean opened)Notifies about the event of pausing the session final Unitclear()Clears the queue in the recognizer and current document state final Set<GenericDocument>getAllDocuments()Provides access to the current state -
-
Constructor Detail
-
GenericDocumentScanningSession
GenericDocumentScanningSession(GenericDocumentRecognizer genericDocumentRecognizer)
-
-
Method Detail
-
observeDocumentRecognitionResults
final <Error class: unknown class><DocumentRecognitionState> observeDocumentRecognitionResults()
Observes newly processed document
-
pushNewDocumentRecognitionResult
final Unit pushNewDocumentRecognitionResult(GenericDocumentRecognitionResult result)
Notifies about the event of document scanning
-
observeScanReadyState
final <Error class: unknown class><Boolean> observeScanReadyState()
Observes the state of document scanning
-
observeScanningPausedState
final <Error class: unknown class><Boolean> observeScanningPausedState()
Observes the paused state of the session
-
pushScanReadyState
final Unit pushScanReadyState(Boolean ready)
Notifies about the event of scanning state
-
pushScanningPausedState
final Unit pushScanningPausedState(Boolean opened)
Notifies about the event of pausing the session
-
getAllDocuments
final Set<GenericDocument> getAllDocuments()
Provides access to the current state
-
-
-
-