@innovatrics/dot-palm-capture
Version:
Digital onboarding palm capture
37 lines (36 loc) • 1.23 kB
TypeScript
import type { BaseCameraProps, CallbackImage, CustomElement, DetectedPalm, Resolution, ThresholdInterval } from '../../../ui-common/src/types';
export * from '../../../ui-common/src/types/common';
export * from '../../../ui-common/src/types/palm';
export * from '../../../ui-common/src/error';
declare global {
interface Window {
DOT_DEBUG_MODE?: boolean;
}
namespace JSX {
interface IntrinsicElements {
'x-dot-palm-capture': CustomElement<{
cameraOptions: PalmCameraProps;
}>;
}
}
}
export type HTMLPalmCaptureElement = HTMLElement & {
cameraOptions: PalmCameraProps;
};
export type PalmThresholds = {
brightnessHighThreshold?: number;
brightnessLowThreshold?: number;
confidenceThreshold?: number;
outOfBoundsThreshold?: number;
sharpnessThreshold?: number;
sizeIntervalThreshold?: ThresholdInterval;
};
export type PalmComponentData = {
detection: DetectedPalm;
imageResolution: Resolution;
};
export type PalmCallback = (imageData: CallbackImage<PalmComponentData>, content: Uint8Array) => void;
export type PalmCameraProps = BaseCameraProps & {
onPhotoTaken: PalmCallback;
thresholds?: PalmThresholds;
};