@cardscan.ai/insurance-cardscan-react
Version:
A library that makes it easy to add health insurance card scanning to any web application
24 lines (23 loc) • 608 B
TypeScript
import { DetectionResults } from "../scanview/types/Detector";
export type Guidance = {
message: string;
color: "notDetected" | "detected";
};
export declare class ScanGuidance {
private lastClasses;
private flipCount;
private readonly MAX_FLIPS;
record(pred: string): void;
needsRelaxation(): boolean;
reset(): void;
}
export declare class ScanGuidanceUI {
private readonly T;
private lastMsg;
private freezeUntil;
constructor(T: {
highDetail: number;
});
get(results: DetectionResults): Guidance;
private freeze;
}