@cardscan.ai/insurance-cardscan-react
Version:
A library that makes it easy to add health insurance card scanning to any web application
26 lines (25 loc) • 737 B
TypeScript
export interface Prediction {
probability: number;
className: string;
}
export interface DetectionResults {
modelClass: string;
modelScore: number;
modelProbability: number;
allPredictions: Prediction[];
laplaceVariance: number;
laplaceMax: number;
rejected?: boolean;
rejectionReason?: string;
cardSimilarity?: number;
isSameCard?: boolean;
hasReference?: boolean;
/** Whether the image is considered sharp (true) or blurry (false) */
isSharp?: boolean;
/** Blur score from 0.0 (very sharp) to 1.0 (very blurry) */
blurScore?: number;
confidenceGap: number;
entropy: number;
isFlippedSession?: boolean;
hasFlipped?: boolean;
}