UNPKG

@microblink/blinkid-in-browser-sdk

Version:

A simple ID scanning library for WebAssembly-enabled browsers.

64 lines (63 loc) 2.65 kB
/** * Copyright (c) Microblink Ltd. All rights reserved. */ /** Detailed information about the recognition process. */ export declare enum ProcessingStatus { /** The document was fully scanned and data was extracted as expected. */ Success = 0, /** The document was not found on the image. */ DetectionFailed = 1, /** Preprocessing of the input image has failed. */ ImagePreprocessingFailed = 2, /** * Stability is achieved when the same document is provided on consecutive frames, * resulting in a consistent recognition between frames prior to data extraction. * Valid only for video feed. */ StabilityTestFailed = 3, /** * The wrong side of the document is scanned. Front side scan is completed and back side is expected, but not * provided by the end-user. * * Possible also if front is expected at the start of the scanning process and back is presented first * by the end-user. */ ScanningWrongSide = 4, /** Unexpected fields are present on the document and removed from the final result. */ FieldIdentificationFailed = 5, /** Fields expected to appear on the scanned document have not been found. */ MandatoryFieldMissing = 6, /** * One of the extracted fields contains a character which does not satisfy the rule defined for that * specific field. * * This processing status can only occur if validateResultCharacters setting is set to true. */ InvalidCharactersFound = 7, /** Failed to return a requested image. */ ImageReturnFailed = 8, /** Reading or parsing of the barcode has failed. */ BarcodeRecognitionFailed = 9, /** Parsing of the MRZ has failed. */ MrzParsingFailed = 10, /** * Currently scanned document has been filtered out by its class. * Occurrence of this processing status is affected by classFilter setting. */ ClassFiltered = 11, /** Document currently not supported by the recognizer. */ UnsupportedClass = 12, /** Document class is not included in the issued license. */ UnsupportedByLicense = 13, /** * Front side recognition has completed successfully, and recognizer is waiting for the other side to be scanned. */ AwaitingOtherSide = 14, /** If front side recognition has not completed successfully, the back side is not scanned. */ NotScanned = 15, /** The barcode was not found on the image. This processing status can only occur if document has mandatory barcode. */ BarcodeDetectionFailed = 16, /** Number of possible processing statuses. */ Count = 17 }