vision-camera-mrz-scanner
Version:
VisionCamera Frame Processor Plugin to detect and read MRZ data from passports using MLKit Text Recognition.
24 lines • 951 B
TypeScript
import type { Dimensions, Rect } from '../types/types';
/**
* It takes a frame and a view, and returns an object with two functions: adjustPoint and adjustRect
* @param {Dimensions} frame - Dimensions - the dimensions of the video frame
* @param {Dimensions} view - Dimensions
* @returns An object with two functions.
* @resource https://github.com/bglgwyng/FrameProcessorExample/blob/e8e99d58c878d4dce9a8adf74a7447d253be93ab/adjustToView.ts#L21
*/
export declare const boundingBoxAdjustToView: (frame: Dimensions, view: Dimensions, landscape?: boolean, verticalPadding?: number, horizontalPadding?: number) => {
adjustPoint: (point: {
x: number;
y: number;
}) => {
x: number;
y: number;
};
adjustRect: (rect: Rect) => {
top: number;
left: number;
height: number;
width: number;
};
};
//# sourceMappingURL=boundingBoxAdjustToView.d.ts.map