Class GenericDocumentScanningSession
-
- All Implemented Interfaces:
public final class GenericDocumentScanningSession
Provides a wrapper for observing an document scanning result
-
-
Field Summary
Fields Modifier and Type Field Description public final static Double
ZERO_CONFIDENCE_VALUE
public final static Double
MODERATE_CONFIDENCE_VALUE
public final static Double
HIGH_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 Unit
pushNewDocumentRecognitionResult(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 Unit
pushScanReadyState(Boolean ready)
Notifies about the event of scanning state final Unit
pushScanningPausedState(Boolean opened)
Notifies about the event of pausing the session final Unit
clear()
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
-
-
-
-