UNPKG

@cardscan.ai/insurance-cardscan-react

Version:

A library that makes it easy to add health insurance card scanning to any web application

7 lines (6 loc) 1.64 kB
import React from "react"; import { Dispatch, SetStateAction } from "react"; import { ModelPrediction } from "./types/Model"; import { CardScanApi } from "../types/types"; import { PerformanceData } from "../types/general.types"; export declare const scanHandler: (videoRefBg: React.RefObject<HTMLVideoElement>, frameDivRef: React.RefObject<HTMLDivElement>, captureCanvasRef: React.RefObject<HTMLCanvasElement>, detectionCanvasRef: React.RefObject<HTMLCanvasElement>, debugCanvasLatestRef: React.RefObject<HTMLCanvasElement>, debugCanvasBestRef: React.RefObject<HTMLCanvasElement>, scanCountRef: React.MutableRefObject<number>, performanceCountRef: React.MutableRefObject<number>, topPredictions: React.MutableRefObject<ModelPrediction[]>, getPerformanceData: () => PerformanceData, setLatestScore: Dispatch<SetStateAction<number>>, setLatestLaplacian: Dispatch<SetStateAction<number>>, setBestScore: Dispatch<SetStateAction<number>>, setBestClass: Dispatch<SetStateAction<ModelPrediction | null>>, setLastClass: Dispatch<SetStateAction<string>>, setBestLaplacian: Dispatch<SetStateAction<number>>, setModelState: Dispatch<SetStateAction<string>>, setScanDebugState: Dispatch<SetStateAction<string>>, setScanProgress: Dispatch<SetStateAction<number>>, flipHorizontal: boolean | undefined, flipVertical: boolean | undefined, scanCaptureBuffer: any, threshold: any, laplacianThreshold: any, onError: any, scanProgress: any, softMaxUploads: any, bufferSize: any, videoMetadata: any, cardScanApi: React.MutableRefObject<CardScanApi | null>, cardIdRef: any, stateMachineState: any, stateMachineSend: any, debugMenu?: boolean) => void;