@cardscan.ai/insurance-cardscan-react
Version:
A library that makes it easy to add health insurance card scanning to any web application
15 lines (14 loc) • 986 B
TypeScript
import { DeviceInfo, EnvironmentInfo } from "../utils/getInfoFunctions";
import { CaptureType } from "../types/general.types";
export declare const generateImageFromCanvas: (videoRefBg: React.RefObject<HTMLVideoElement>, frameDivRef: React.RefObject<HTMLDivElement>, captureCanvasRef: React.RefObject<HTMLCanvasElement>, flipHorizontal: boolean, flipVertical: boolean) => string | undefined;
export declare const generateImageMetadata: (capture: CaptureType, videoRefBg: React.RefObject<HTMLVideoElement>, frameDivRef: React.RefObject<HTMLDivElement>, captureCanvasRef: React.RefObject<HTMLCanvasElement>, threshold: number, laplacianThreshold: number, videoMetadata: {
[key: string]: any;
}, environmentInfo: EnvironmentInfo, videoElementInfo: {
width: number | string;
height: number | string;
}, guideFrameElementInfo: {
width: number | string;
height: number | string;
}, deviceInfo: DeviceInfo, modelClass: string) => {
[key: string]: any;
};