UNPKG

@innovatrics/dot-document-auto-capture

Version:
30 lines (29 loc) 1.24 kB
import type { DetectedCorners, ImageParameters, ObjectValues } from './common'; export declare const PalmInstructionCodeValues: { readonly CANDIDATE_SELECTION: "candidate_selection"; readonly PALM_CENTERING: "palm_centering"; readonly PALM_NOT_PRESENT: "palm_not_present"; readonly PALM_TOO_FAR: "palm_too_far"; readonly PALM_TOO_CLOSE: "palm_too_close"; readonly SHARPNESS_TOO_LOW: "sharpness_too_low"; readonly BRIGHTNESS_TOO_LOW: "brightness_too_low"; readonly BRIGHTNESS_TOO_HIGH: "brightness_too_high"; readonly DEVICE_PITCHED: "device_pitched"; }; export declare const PalmCheckToInstructionCodeMap: { isPresent: "palm_not_present"; isNotPitched: "device_pitched"; isNotSmall: "palm_too_far"; isNotOutOfBounds: "palm_centering"; isNotDim: "brightness_too_low"; isNotBright: "brightness_too_high"; isSharp: "sharpness_too_low"; isNotLarge: "palm_too_close"; }; export type PalmInstructionCode = ObjectValues<typeof PalmInstructionCodeValues>; export type DetectedPalmCorners = DetectedCorners; export type PalmImageParameters = ImageParameters; export type DetectedPalm = PalmImageParameters & DetectedPalmCorners & { confidence: number; smallestEdge: number; };