@ahmed_hani/dot-auto-capture-ui 7.6.1 → 8.0.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 (39) hide show
  1. package/document.mjs +865 -874
  2. package/document.umd.js +27 -27
  3. package/face.mjs +1252 -1323
  4. package/face.umd.js +27 -27
  5. package/magnifeye-liveness.mjs +766 -789
  6. package/magnifeye-liveness.umd.js +45 -45
  7. package/multi-range-liveness.mjs +841 -856
  8. package/multi-range-liveness.umd.js +24 -24
  9. package/package.json +7 -4
  10. package/palm.mjs +873 -891
  11. package/palm.umd.js +27 -27
  12. package/smile-liveness.mjs +1143 -1187
  13. package/smile-liveness.umd.js +37 -37
  14. package/ui/src/types/common.d.ts +3 -19
  15. package/ui/src/types/configuration.d.ts +60 -0
  16. package/ui/src/types/document.d.ts +8 -7
  17. package/ui/src/types/eye-gaze.d.ts +9 -8
  18. package/ui/src/types/face.d.ts +8 -20
  19. package/ui/src/types/magnifeye.d.ts +7 -7
  20. package/ui/src/types/multi-range.d.ts +8 -8
  21. package/ui/src/types/palm.d.ts +8 -7
  22. package/ui/src/types/smile.d.ts +8 -15
  23. package/ui-common/src/types/common.d.ts +21 -35
  24. package/ui-common/src/types/document.d.ts +1 -9
  25. package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
  26. package/ui-common/src/types/events/common.d.ts +0 -13
  27. package/ui-common/src/types/events/document.d.ts +3 -7
  28. package/ui-common/src/types/events/face.d.ts +9 -2
  29. package/ui-common/src/types/events/index.d.ts +1 -0
  30. package/ui-common/src/types/events/palm.d.ts +3 -2
  31. package/ui-common/src/types/events/smile.d.ts +10 -5
  32. package/ui-common/src/types/eye-gaze.d.ts +6 -6
  33. package/ui-common/src/types/face.d.ts +1 -20
  34. package/ui-common/src/types/magnifeye.d.ts +6 -6
  35. package/ui-common/src/types/modality/detection/document.d.ts +9 -0
  36. package/ui-common/src/types/modality/detection/face.d.ts +20 -0
  37. package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
  38. package/ui-common/src/types/palm.d.ts +1 -20
  39. package/ui-common/src/types/smile.d.ts +23 -16
@@ -23,12 +23,12 @@ export declare const EyeGazePhaseValues: {
23
23
  };
24
24
  export type EyeGazePhase = ObjectValues<typeof EyeGazePhaseValues>;
25
25
  export declare const EyeGazeStateValues: {
26
- readonly DONE: "DONE";
27
- readonly LOADING: "LOADING";
28
- readonly ERROR: "ERROR";
29
- readonly WAITING: "WAITING";
30
- readonly RUNNING: "RUNNING";
31
- readonly COMPLETE: "COMPLETE";
26
+ readonly DONE: "done";
27
+ readonly LOADING: "loading";
28
+ readonly ERROR: "error";
29
+ readonly WAITING: "waiting";
30
+ readonly RUNNING: "running";
31
+ readonly COMPLETE: "complete";
32
32
  };
33
33
  export type EyeGazeState = ObjectValues<typeof EyeGazeStateValues>;
34
34
  export declare const Corner: {
@@ -1,4 +1,4 @@
1
- import type { ImageParameters, ObjectValues, Point } from './common';
1
+ import type { ObjectValues } from './common';
2
2
  export declare const FaceInstructionCodeValues: {
3
3
  readonly CANDIDATE_SELECTION: "candidate_selection";
4
4
  readonly FACE_TOO_CLOSE: "face_too_close";
@@ -31,22 +31,3 @@ export declare const FaceCheckToInstructionCodeMap: {
31
31
  isMouthScoreNotTooLow: "mouth_score_too_low";
32
32
  };
33
33
  export type FaceInstructionCode = ObjectValues<typeof FaceInstructionCodeValues>;
34
- export type DetectedFacePart = {
35
- center: Point;
36
- confidence: number;
37
- size: number;
38
- status: number;
39
- };
40
- export type DetectedFace = FaceImageParameters & DetectedFaceCorners & {
41
- confidence: number;
42
- faceSize: number;
43
- leftEye: DetectedFacePart;
44
- mouth: DetectedFacePart;
45
- rightEye: DetectedFacePart;
46
- };
47
- export type DetectedFaceCorners = {
48
- bottomRight: Point;
49
- faceCenter: Point;
50
- topLeft: Point;
51
- };
52
- export type FaceImageParameters = ImageParameters;
@@ -23,11 +23,11 @@ export declare enum MagnifEyePhase {
23
23
  MIDDLE = "MIDDLE"
24
24
  }
25
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
- readonly COMPLETE: "COMPLETE";
26
+ readonly DONE: "done";
27
+ readonly LOADING: "loading";
28
+ readonly ERROR: "error";
29
+ readonly WAITING: "waiting";
30
+ readonly RUNNING: "running";
31
+ readonly COMPLETE: "complete";
32
32
  };
33
33
  export type MagnifEyeState = ObjectValues<typeof MagnifEyeStateValues>;
@@ -0,0 +1,9 @@
1
+ import type { DetectedCorners, ImageParameters } from '../../common';
2
+ export type DetectedDocumentCorners = DetectedCorners;
3
+ export type DocumentImageParameters = ImageParameters & {
4
+ hotspots: number;
5
+ };
6
+ export type DetectedDocument = DocumentImageParameters & DetectedDocumentCorners & {
7
+ confidence: number;
8
+ smallestEdge: number;
9
+ };
@@ -0,0 +1,20 @@
1
+ import type { ImageParameters, Point } from '../../common';
2
+ export type DetectedFace = FaceImageParameters & DetectedFaceCorners & {
3
+ confidence: number;
4
+ faceSize: number;
5
+ leftEye: DetectedFacePart;
6
+ mouth: DetectedFacePart;
7
+ rightEye: DetectedFacePart;
8
+ };
9
+ export type DetectedFacePart = {
10
+ center: Point;
11
+ confidence: number;
12
+ size: number;
13
+ status: number;
14
+ };
15
+ export type DetectedFaceCorners = {
16
+ bottomRight: Point;
17
+ faceCenter: Point;
18
+ topLeft: Point;
19
+ };
20
+ export type FaceImageParameters = ImageParameters;
@@ -0,0 +1,20 @@
1
+ import type { DetectedCorners, ImageParameters, ObjectValues } from '../../common';
2
+ export type DetectedPalmCorners = DetectedCorners;
3
+ export type PalmImageParameters = ImageParameters;
4
+ export type DetectedPalm = PalmQualityAttributes & PalmImageParameters & DetectedPalmCorners & {
5
+ confidence: number;
6
+ smallestEdge: number;
7
+ };
8
+ export type PalmQualityAttributes = {
9
+ handOrientation: ObjectValues<typeof PalmHandOrientation>;
10
+ handPosition: ObjectValues<typeof PalmHandPosition>;
11
+ templateExtractionQuality: number;
12
+ };
13
+ export declare const PalmHandPosition: {
14
+ readonly LEFT: "Left";
15
+ readonly RIGHT: "Right";
16
+ };
17
+ export declare const PalmHandOrientation: {
18
+ readonly PALMAR: "Palmar";
19
+ readonly DORSAL: "Dorsal";
20
+ };
@@ -1,4 +1,4 @@
1
- import type { DetectedCorners, ImageParameters, ObjectValues } from './common';
1
+ import type { ObjectValues } from './common';
2
2
  export declare const PalmInstructionCodeValues: {
3
3
  readonly CANDIDATE_SELECTION: "candidate_selection";
4
4
  readonly PALM_CENTERING: "palm_centering";
@@ -11,14 +11,6 @@ export declare const PalmInstructionCodeValues: {
11
11
  readonly DEVICE_PITCHED: "device_pitched";
12
12
  readonly TEMPLATE_EXTRACTION_QUALITY_TOO_LOW: "template_extraction_quality_too_low";
13
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
14
  export declare const PalmCheckToInstructionCodeMap: {
23
15
  isPresent: "palm_not_present";
24
16
  isNotPitched: "device_pitched";
@@ -31,14 +23,3 @@ export declare const PalmCheckToInstructionCodeMap: {
31
23
  isTemplateExtractionQualityHighEnough: "template_extraction_quality_too_low";
32
24
  };
33
25
  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
- };
@@ -1,8 +1,5 @@
1
- import type { ObjectValues } from './common';
1
+ import { type ObjectValues } from './common';
2
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
3
  readonly CANDIDATE_SELECTION: "candidate_selection";
7
4
  readonly FACE_TOO_CLOSE: "face_too_close";
8
5
  readonly FACE_TOO_FAR: "face_too_far";
@@ -17,21 +14,31 @@ export declare const SmileInstructionCodeValues: {
17
14
  readonly MOUTH_NOT_PRESENT: "mouth_not_present";
18
15
  readonly MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high";
19
16
  readonly MOUTH_SCORE_TOO_LOW: "mouth_score_too_low";
17
+ readonly SMILE: "smile";
18
+ readonly SMILE_CANDIDATE_SELECTION: "smile_candidate_selection";
19
+ readonly KEEP_NEUTRAL_EXPRESSION: "keep_neutral_expression";
20
20
  };
21
21
  export type SmileInstructionCode = ObjectValues<typeof SmileInstructionCodeValues>;
22
22
  export type CustomizableSmileInstructionCode = Exclude<SmileInstructionCode, 'mouth_score_too_low' | 'mouth_score_too_high'>;
23
- export declare const SmilePhaseValues: {
23
+ export type SmileEscalatedInstructionCodes = typeof SmileInstructionCodeValues.SMILE | typeof SmileInstructionCodeValues.KEEP_NEUTRAL_EXPRESSION;
24
+ export declare const SmileCheckToInstructionCodeMap: {
25
+ isPresent: "face_not_present";
26
+ isNotPitched: "device_pitched";
27
+ isNotSmall: "face_too_far";
28
+ isNotLarge: "face_too_close";
29
+ isNotOutOfBounds: "face_centering";
30
+ isNotDim: "brightness_too_low";
31
+ isNotBright: "brightness_too_high";
32
+ isSharp: "sharpness_too_low";
33
+ isLeftEyePresent: "left_eye_not_present";
34
+ isRightEyePresent: "right_eye_not_present";
35
+ isMouthPresent: "mouth_not_present";
36
+ isMouthStatusNotTooHigh: "mouth_score_too_high";
37
+ isMouthStatusNotTooLow: "mouth_score_too_low";
38
+ };
39
+ export declare const SmileLivenessPhaseValues: {
24
40
  readonly NEUTRAL: "NEUTRAL";
25
41
  readonly SMILE: "SMILE";
42
+ readonly SMILE_MANUAL: "SMILE_MANUAL";
26
43
  };
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
- readonly COMPLETE: "COMPLETE";
35
- };
36
- export type SmileState = ObjectValues<typeof SmileStateValues>;
37
- export type SmileEscalatedInstructionCodes = typeof SmileInstructionCodeValues.SMILE | typeof SmileInstructionCodeValues.KEEP_NEUTRAL_EXPRESSION;
44
+ export type SmileLivenessPhase = ObjectValues<typeof SmileLivenessPhaseValues>;