@idscan/idvc2
Version:
component for the capturing documents
39 lines (38 loc) • 1.23 kB
TypeScript
import type { Base64Image } from '../helpers/image';
import type { ErrorCodeNames } from '../environment/langs';
type ProcessingErrorCode = ErrorCodeNames | '';
type Coordinate = {
x: number;
y: number;
};
export type MRZLocation = {
leftTop: Coordinate;
rightTop: Coordinate;
rightBottom: Coordinate;
leftBottom: Coordinate;
};
export declare const setProcessingErrorCode: (errorCode: ProcessingErrorCode) => void;
export declare const mrzProcess: (smallImage: ImageData, { side, perimeter, isHasFace }: {
side: any;
perimeter: any;
isHasFace: any;
}) => Promise<boolean>;
export declare const pdfProcess: (smallImage: any, { perimeter }: {
perimeter: any;
}) => Promise<boolean>;
/**
*
* @param {Base64Image} data - base64 image
*/
export declare const barCodeProcess: (data: Base64Image) => Promise<boolean>;
export declare const frontProcess: ({ side, perimeter, isHasFace }: {
side: any;
perimeter: any;
isHasFace: any;
}) => Promise<boolean>;
export declare const faceProcess: (smallImage: ImageData) => Promise<boolean>;
export declare const backProcess: (smallImage: ImageData, { side, perimeter }: {
side: any;
perimeter: any;
}) => Promise<boolean>;
export {};