@ahmed_hani/dot-auto-capture-ui 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/LICENSE.txt +117 -0
  2. package/README.md +162 -0
  3. package/document.mjs +3900 -0
  4. package/document.umd.js +246 -0
  5. package/face.mjs +2939 -0
  6. package/face.umd.js +246 -0
  7. package/magnifeye-liveness.mjs +3024 -0
  8. package/magnifeye-liveness.umd.js +338 -0
  9. package/package.json +102 -0
  10. package/palm.mjs +2837 -0
  11. package/palm.umd.js +246 -0
  12. package/smile-liveness.mjs +3060 -0
  13. package/smile-liveness.umd.js +310 -0
  14. package/tsconfig.production.json +22 -0
  15. package/ui/src/types/common.d.ts +53 -0
  16. package/ui/src/types/document.d.ts +38 -0
  17. package/ui/src/types/eye-gaze.d.ts +37 -0
  18. package/ui/src/types/face.d.ts +45 -0
  19. package/ui/src/types/magnifeye.d.ts +32 -0
  20. package/ui/src/types/palm.d.ts +27 -0
  21. package/ui/src/types/smile.d.ts +32 -0
  22. package/ui-common/src/error/auto-capture-error.d.ts +7 -0
  23. package/ui-common/src/error/index.d.ts +1 -0
  24. package/ui-common/src/types/common.d.ts +88 -0
  25. package/ui-common/src/types/document.d.ts +30 -0
  26. package/ui-common/src/types/events/common.d.ts +74 -0
  27. package/ui-common/src/types/events/document.d.ts +23 -0
  28. package/ui-common/src/types/events/eye-gaze.d.ts +4 -0
  29. package/ui-common/src/types/events/face.d.ts +21 -0
  30. package/ui-common/src/types/events/index.d.ts +8 -0
  31. package/ui-common/src/types/events/liveness.d.ts +13 -0
  32. package/ui-common/src/types/events/magnifeye.d.ts +5 -0
  33. package/ui-common/src/types/events/palm.d.ts +16 -0
  34. package/ui-common/src/types/events/smile.d.ts +8 -0
  35. package/ui-common/src/types/eye-gaze.d.ts +39 -0
  36. package/ui-common/src/types/face.d.ts +52 -0
  37. package/ui-common/src/types/index.d.ts +8 -0
  38. package/ui-common/src/types/magnifeye.d.ts +32 -0
  39. package/ui-common/src/types/palm.d.ts +44 -0
  40. package/ui-common/src/types/smile.d.ts +36 -0
@@ -0,0 +1,32 @@
1
+ import type { ObjectValues } from './common';
2
+ export declare const MagnifEyeInstructionCodeValues: {
3
+ readonly FIT_YOUR_EYE: "fit_your_eye";
4
+ readonly CANDIDATE_SELECTION: "candidate_selection";
5
+ readonly FACE_TOO_CLOSE: "face_too_close";
6
+ readonly FACE_TOO_FAR: "face_too_far";
7
+ readonly FACE_CENTERING: "face_centering";
8
+ readonly FACE_NOT_PRESENT: "face_not_present";
9
+ readonly SHARPNESS_TOO_LOW: "sharpness_too_low";
10
+ readonly BRIGHTNESS_TOO_LOW: "brightness_too_low";
11
+ readonly BRIGHTNESS_TOO_HIGH: "brightness_too_high";
12
+ readonly DEVICE_PITCHED: "device_pitched";
13
+ readonly LEFT_EYE_NOT_PRESENT: "left_eye_not_present";
14
+ readonly RIGHT_EYE_NOT_PRESENT: "right_eye_not_present";
15
+ readonly MOUTH_NOT_PRESENT: "mouth_not_present";
16
+ readonly MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high";
17
+ readonly MOUTH_SCORE_TOO_LOW: "mouth_score_too_low";
18
+ };
19
+ export type MagnifEyeInstructionCode = ObjectValues<typeof MagnifEyeInstructionCodeValues>;
20
+ export declare enum MagnifEyePhase {
21
+ CLOSEUP = "CLOSEUP",
22
+ DISTANT = "DISTANT",
23
+ MIDDLE = "MIDDLE"
24
+ }
25
+ export declare const MagnifEyeStateValues: {
26
+ readonly DONE: "DONE";
27
+ readonly LOADING: "LOADING";
28
+ readonly ERROR: "ERROR";
29
+ readonly WAITING: "WAITING";
30
+ readonly RUNNING: "RUNNING";
31
+ };
32
+ export type MagnifEyeState = ObjectValues<typeof MagnifEyeStateValues>;
@@ -0,0 +1,44 @@
1
+ import type { DetectedCorners, ImageParameters, ObjectValues } from './common';
2
+ export declare const PalmInstructionCodeValues: {
3
+ readonly CANDIDATE_SELECTION: "candidate_selection";
4
+ readonly PALM_CENTERING: "palm_centering";
5
+ readonly PALM_NOT_PRESENT: "palm_not_present";
6
+ readonly PALM_TOO_FAR: "palm_too_far";
7
+ readonly PALM_TOO_CLOSE: "palm_too_close";
8
+ readonly SHARPNESS_TOO_LOW: "sharpness_too_low";
9
+ readonly BRIGHTNESS_TOO_LOW: "brightness_too_low";
10
+ readonly BRIGHTNESS_TOO_HIGH: "brightness_too_high";
11
+ readonly DEVICE_PITCHED: "device_pitched";
12
+ readonly TEMPLATE_EXTRACTION_QUALITY_TOO_LOW: "template_extraction_quality_too_low";
13
+ };
14
+ export declare const PalmHandPosition: {
15
+ readonly LEFT: "Left";
16
+ readonly RIGHT: "Right";
17
+ };
18
+ export declare const PalmHandOrientation: {
19
+ readonly PALMAR: "Palmar";
20
+ readonly DORSAL: "Dorsal";
21
+ };
22
+ export declare const PalmCheckToInstructionCodeMap: {
23
+ isPresent: "palm_not_present";
24
+ isNotPitched: "device_pitched";
25
+ isNotSmall: "palm_too_far";
26
+ isNotOutOfBounds: "palm_centering";
27
+ isNotDim: "brightness_too_low";
28
+ isNotBright: "brightness_too_high";
29
+ isSharp: "sharpness_too_low";
30
+ isNotLarge: "palm_too_close";
31
+ isTemplateExtractionQualityHighEnough: "template_extraction_quality_too_low";
32
+ };
33
+ export type PalmInstructionCode = ObjectValues<typeof PalmInstructionCodeValues>;
34
+ export type DetectedPalmCorners = DetectedCorners;
35
+ export type PalmImageParameters = ImageParameters;
36
+ export type PalmQualityAttributes = {
37
+ handOrientation: ObjectValues<typeof PalmHandOrientation>;
38
+ handPosition: ObjectValues<typeof PalmHandPosition>;
39
+ quality: number;
40
+ };
41
+ export type DetectedPalm = PalmQualityAttributes & PalmImageParameters & DetectedPalmCorners & {
42
+ confidence: number;
43
+ smallestEdge: number;
44
+ };
@@ -0,0 +1,36 @@
1
+ import type { ObjectValues } from './common';
2
+ export declare const SmileInstructionCodeValues: {
3
+ readonly SMILE: "smile";
4
+ readonly SMILE_CANDIDATE_SELECTION: "smile_candidate_selection";
5
+ readonly KEEP_NEUTRAL_EXPRESSION: "keep_neutral_expression";
6
+ readonly CANDIDATE_SELECTION: "candidate_selection";
7
+ readonly FACE_TOO_CLOSE: "face_too_close";
8
+ readonly FACE_TOO_FAR: "face_too_far";
9
+ readonly FACE_CENTERING: "face_centering";
10
+ readonly FACE_NOT_PRESENT: "face_not_present";
11
+ readonly SHARPNESS_TOO_LOW: "sharpness_too_low";
12
+ readonly BRIGHTNESS_TOO_LOW: "brightness_too_low";
13
+ readonly BRIGHTNESS_TOO_HIGH: "brightness_too_high";
14
+ readonly DEVICE_PITCHED: "device_pitched";
15
+ readonly LEFT_EYE_NOT_PRESENT: "left_eye_not_present";
16
+ readonly RIGHT_EYE_NOT_PRESENT: "right_eye_not_present";
17
+ readonly MOUTH_NOT_PRESENT: "mouth_not_present";
18
+ readonly MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high";
19
+ readonly MOUTH_SCORE_TOO_LOW: "mouth_score_too_low";
20
+ };
21
+ export type SmileInstructionCode = ObjectValues<typeof SmileInstructionCodeValues>;
22
+ export type CustomizableSmileInstructionCode = Exclude<SmileInstructionCode, 'mouth_score_too_low' | 'mouth_score_too_high'>;
23
+ export declare const SmilePhaseValues: {
24
+ readonly NEUTRAL: "NEUTRAL";
25
+ readonly SMILE: "SMILE";
26
+ };
27
+ export type SmilePhase = ObjectValues<typeof SmilePhaseValues>;
28
+ export declare const SmileStateValues: {
29
+ readonly DONE: "DONE";
30
+ readonly LOADING: "LOADING";
31
+ readonly ERROR: "ERROR";
32
+ readonly WAITING: "WAITING";
33
+ readonly RUNNING: "RUNNING";
34
+ };
35
+ export type SmileState = ObjectValues<typeof SmileStateValues>;
36
+ export type SmileEscalatedInstructionCodes = typeof SmileInstructionCodeValues.SMILE | typeof SmileInstructionCodeValues.KEEP_NEUTRAL_EXPRESSION;