Package io.scanbot.sdk.genericdocument
Class GenericDocumentRecognitionResult
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class GenericDocumentRecognitionResult implements Parcelable
Container for results of GenericDocumentRecognizer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
GenericDocumentRecognitionResult.RecognitionStatus
Enumerated result status of the recognition
-
Field Summary
Fields Modifier and Type Field Description private final GenericDocumentRecognitionResult.RecognitionStatus
status
private final Bitmap
croppedImage
private final GenericDocument
document
-
Constructor Summary
Constructors Constructor Description GenericDocumentRecognitionResult(GenericDocumentRecognitionResult.RecognitionStatus status, Bitmap croppedImage, GenericDocument document)
-
Method Summary
Modifier and Type Method Description final GenericDocumentRecognitionResult.RecognitionStatus
getStatus()
Recognition status final Bitmap
getCroppedImage()
Contains cropped document image if it was detected (that is when status equals RecognitionStatus.Success or RecognitionStatus. final GenericDocument
getDocument()
Contains a document which might be wrapped into one of io.scanbot.genericdocument.entity modelsFor the convenience it is possible to get strongly typed wrapper around GenericDocument To do so, use the io.scanbot.genericdocument.entity.GenericDocumentLibrary wrapperFromGenericDocument method -
-
Constructor Detail
-
GenericDocumentRecognitionResult
GenericDocumentRecognitionResult(GenericDocumentRecognitionResult.RecognitionStatus status, Bitmap croppedImage, GenericDocument document)
-
-
Method Detail
-
getStatus
final GenericDocumentRecognitionResult.RecognitionStatus getStatus()
Recognition status
-
getCroppedImage
final Bitmap getCroppedImage()
Contains cropped document image if it was detected (that is when status equals RecognitionStatus.Success or RecognitionStatus.SuccessFound)
-
getDocument
final GenericDocument getDocument()
Contains a document which might be wrapped into one of io.scanbot.genericdocument.entity models
For the convenience it is possible to get strongly typed wrapper around GenericDocument To do so, use the io.scanbot.genericdocument.entity.GenericDocumentLibrary wrapperFromGenericDocument method
-
-
-
-