UNPKG

@microblink/blinkid-in-browser-sdk

Version:

A simple ID scanning library for WebAssembly-enabled browsers.

84 lines (68 loc) 1.99 kB
/** * Copyright (c) Microblink Ltd. All rights reserved. */ export interface ImageAnalysisResult { /** * Whether the image is blurred. */ readonly blurred: boolean; /** * Orientation of the card detected on the scanned image. */ readonly cardOrientation: CardOrientation; /** * The color status determined from scanned image. */ readonly documentImageColorStatus: DocumentImageColorStatus; /** * The Moire pattern detection status determined from the scanned image. */ readonly documentImageMoireStatus: ImageAnalysisDetectionStatus; /** * Face detection status determined from the scanned image. */ readonly faceDetectionStatus: ImageAnalysisDetectionStatus; /** * Mrz detection status determined from the scanned image. */ readonly mrzDetectionStatus: ImageAnalysisDetectionStatus; /** * Barcode detection status determined from the scanned image. */ readonly barcodeDetectionStatus: ImageAnalysisDetectionStatus; } /** * DocumentImageColorStatus enum defines possible color statuses determined from scanned image. */ export enum DocumentImageColorStatus { /** Determining image color status was not performed */ NotAvailable = 0, /** Black-and-white image scanned */ BlackAndWhite, /** Color image scanned */ Color } /** * ImageAnalysisDetectionStatus enum defines possible states of specific image object detection. */ export enum ImageAnalysisDetectionStatus { /** Detection was not performed */ NotAvailable = 0, /** Object not detected on input image */ NotDetected, /** Object detected on input image */ Detected } /** * CardOrientation enum defines possible states of card orientation. */ export enum CardOrientation { /** Card is horizontally placed inside the camera frame */ Horizontal = 0, /** Card is vertically placed inside the camera frame */ Vertical }