@regulaforensics/facesdk-webclient 3.1.2 → 4.1.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.
- package/dist/cjs-es5/api/group-api.js +695 -0
- package/dist/cjs-es5/api/matching-api.js +101 -127
- package/dist/cjs-es5/api/person-api.js +952 -0
- package/dist/cjs-es5/api/search-api.js +200 -0
- package/dist/cjs-es5/api.js +4 -1
- package/dist/cjs-es5/base.js +1 -1
- package/dist/cjs-es5/common.js +235 -0
- package/dist/cjs-es5/configuration.js +16 -1
- package/dist/cjs-es5/ext/face-sdk.js +7 -1
- package/dist/cjs-es5/ext/group-api.js +47 -0
- package/dist/cjs-es5/ext/index.js +1 -2
- package/dist/cjs-es5/ext/matching-api.js +3 -7
- package/dist/cjs-es5/ext/person-api.js +61 -0
- package/dist/cjs-es5/ext/search-api.js +33 -0
- package/dist/cjs-es5/index.js +1 -2
- package/dist/cjs-es5/models/crop.js +16 -0
- package/dist/cjs-es5/models/detection-quality.js +16 -0
- package/dist/cjs-es5/models/face-align-type-quality.js +29 -0
- package/dist/cjs-es5/models/face-image-quality-groups.js +31 -0
- package/dist/cjs-es5/models/face-quality-config-name.js +66 -0
- package/dist/cjs-es5/models/face-quality-scenarios.js +31 -0
- package/dist/cjs-es5/models/face-quality-status.js +27 -0
- package/dist/cjs-es5/models/face-recognition-result-code.js +1 -6
- package/dist/cjs-es5/models/face-sdkresult-code.js +34 -35
- package/dist/cjs-es5/models/group-all-of.js +16 -0
- package/dist/cjs-es5/models/group-page-all-of.js +16 -0
- package/dist/cjs-es5/models/group-page.js +16 -0
- package/dist/cjs-es5/models/group-to-create.js +16 -0
- package/dist/cjs-es5/models/group.js +16 -0
- package/dist/cjs-es5/models/image-fields-image.js +16 -0
- package/dist/cjs-es5/models/image-fields.js +16 -0
- package/dist/cjs-es5/models/image-page-all-of.js +16 -0
- package/dist/cjs-es5/models/image-page.js +16 -0
- package/dist/cjs-es5/models/image-source.js +9 -10
- package/dist/cjs-es5/models/image.js +16 -0
- package/dist/cjs-es5/models/index.js +55 -16
- package/dist/cjs-es5/models/operation-log.js +16 -0
- package/dist/cjs-es5/models/output-image-params.js +16 -0
- package/dist/cjs-es5/models/page.js +16 -0
- package/dist/cjs-es5/models/person-all-of.js +16 -0
- package/dist/cjs-es5/models/person-fields.js +16 -0
- package/dist/cjs-es5/models/person.js +16 -0
- package/dist/cjs-es5/models/persons-page-all-of.js +16 -0
- package/dist/cjs-es5/models/persons-page.js +16 -0
- package/dist/cjs-es5/models/process-param.js +16 -0
- package/dist/cjs-es5/models/quality-config.js +16 -0
- package/dist/cjs-es5/models/quality-detail.js +16 -0
- package/dist/cjs-es5/models/quality-details-groups.js +16 -0
- package/dist/cjs-es5/models/quality-request.js +16 -0
- package/dist/cjs-es5/models/recognize-image-all-of.js +16 -0
- package/dist/cjs-es5/models/recognize-image.js +16 -0
- package/dist/cjs-es5/models/search-person-all-of.js +16 -0
- package/dist/cjs-es5/models/search-person.js +16 -0
- package/dist/cjs-es5/models/search-request-all-of.js +16 -0
- package/dist/cjs-es5/models/search-request.js +16 -0
- package/dist/cjs-es5/models/search-result-all-of.js +16 -0
- package/dist/cjs-es5/models/search-result.js +16 -0
- package/dist/cjs-es5/models/update-group.js +16 -0
- package/dist/esm-es5/api/group-api.js +692 -0
- package/dist/esm-es5/api/matching-api.js +100 -126
- package/dist/esm-es5/api/person-api.js +949 -0
- package/dist/esm-es5/api/search-api.js +197 -0
- package/dist/esm-es5/api.js +4 -1
- package/dist/esm-es5/base.js +1 -1
- package/dist/esm-es5/common.js +232 -0
- package/dist/esm-es5/configuration.js +16 -1
- package/dist/esm-es5/ext/face-sdk.js +7 -1
- package/dist/esm-es5/ext/group-api.js +44 -0
- package/dist/esm-es5/ext/index.js +1 -2
- package/dist/esm-es5/ext/matching-api.js +3 -7
- package/dist/esm-es5/ext/person-api.js +58 -0
- package/dist/esm-es5/ext/search-api.js +30 -0
- package/dist/esm-es5/index.js +1 -2
- package/dist/esm-es5/models/crop.js +14 -0
- package/dist/esm-es5/models/detection-quality.js +14 -0
- package/dist/esm-es5/models/face-align-type-quality.js +26 -0
- package/dist/esm-es5/models/face-image-quality-groups.js +28 -0
- package/dist/esm-es5/models/face-quality-config-name.js +63 -0
- package/dist/esm-es5/models/face-quality-scenarios.js +28 -0
- package/dist/esm-es5/models/face-quality-status.js +24 -0
- package/dist/esm-es5/models/face-recognition-result-code.js +1 -3
- package/dist/esm-es5/models/face-sdkresult-code.js +34 -35
- package/dist/esm-es5/models/group-all-of.js +14 -0
- package/dist/esm-es5/models/group-page-all-of.js +14 -0
- package/dist/esm-es5/models/group-page.js +14 -0
- package/dist/esm-es5/models/group-to-create.js +14 -0
- package/dist/esm-es5/models/group.js +14 -0
- package/dist/esm-es5/models/image-fields-image.js +14 -0
- package/dist/esm-es5/models/image-fields.js +14 -0
- package/dist/esm-es5/models/image-page-all-of.js +14 -0
- package/dist/esm-es5/models/image-page.js +14 -0
- package/dist/esm-es5/models/image-source.js +9 -10
- package/dist/esm-es5/models/image.js +14 -0
- package/dist/esm-es5/models/index.js +55 -16
- package/dist/esm-es5/models/operation-log.js +14 -0
- package/dist/esm-es5/models/output-image-params.js +14 -0
- package/dist/esm-es5/models/page.js +14 -0
- package/dist/esm-es5/models/person-all-of.js +14 -0
- package/dist/esm-es5/models/person-fields.js +14 -0
- package/dist/esm-es5/models/person.js +14 -0
- package/dist/esm-es5/models/persons-page-all-of.js +14 -0
- package/dist/esm-es5/models/persons-page.js +14 -0
- package/dist/esm-es5/models/process-param.js +14 -0
- package/dist/esm-es5/models/quality-config.js +14 -0
- package/dist/esm-es5/models/quality-detail.js +14 -0
- package/dist/esm-es5/models/quality-details-groups.js +14 -0
- package/dist/esm-es5/models/quality-request.js +14 -0
- package/dist/esm-es5/models/recognize-image-all-of.js +14 -0
- package/dist/esm-es5/models/recognize-image.js +14 -0
- package/dist/esm-es5/models/search-person-all-of.js +14 -0
- package/dist/esm-es5/models/search-person.js +14 -0
- package/dist/esm-es5/models/search-request-all-of.js +14 -0
- package/dist/esm-es5/models/search-request.js +14 -0
- package/dist/esm-es5/models/search-result-all-of.js +14 -0
- package/dist/esm-es5/models/search-result.js +14 -0
- package/dist/esm-es5/models/update-group.js +14 -0
- package/package.json +1 -1
- package/src/api/group-api.ts +592 -0
- package/src/api/matching-api.ts +150 -170
- package/src/api/person-api.ts +831 -0
- package/src/api/search-api.ts +133 -0
- package/src/api.ts +3 -0
- package/src/base.ts +2 -2
- package/src/common.ts +138 -0
- package/src/configuration.ts +25 -0
- package/src/ext/face-sdk.ts +10 -0
- package/src/ext/group-api.ts +34 -0
- package/src/ext/index.ts +0 -1
- package/src/ext/matching-api.ts +5 -9
- package/src/ext/person-api.ts +51 -0
- package/src/ext/search-api.ts +14 -0
- package/src/index.ts +0 -1
- package/src/models/crop.ts +49 -0
- package/src/models/detect-request.ts +15 -9
- package/src/models/detect-response-all-of.ts +1 -2
- package/src/models/detect-response.ts +0 -1
- package/src/models/detect-result.ts +16 -4
- package/src/models/detection-face.ts +6 -7
- package/src/models/detection-quality.ts +57 -0
- package/src/models/detection.ts +20 -7
- package/src/models/face-align-type-quality.ts +34 -0
- package/src/models/face-image-quality-groups.ts +36 -0
- package/src/models/face-quality-config-name.ts +71 -0
- package/src/models/face-quality-scenarios.ts +36 -0
- package/src/models/face-quality-status.ts +32 -0
- package/src/models/face-recognition-result-code.ts +0 -4
- package/src/models/face-sdkresult-code.ts +36 -33
- package/src/models/face-sdkresult.ts +1 -2
- package/src/models/group-all-of.ts +36 -0
- package/src/models/group-page-all-of.ts +31 -0
- package/src/models/group-page.ts +26 -0
- package/src/models/group-to-create.ts +36 -0
- package/src/models/group.ts +25 -0
- package/src/models/image-fields-image.ts +37 -0
- package/src/models/image-fields.ts +31 -0
- package/src/models/image-page-all-of.ts +31 -0
- package/src/models/image-page.ts +26 -0
- package/src/models/image-source.ts +11 -8
- package/src/models/image.ts +54 -0
- package/src/models/index.ts +54 -15
- package/src/models/match-image-detection.ts +4 -5
- package/src/models/match-image-result.ts +10 -11
- package/src/models/match-image.ts +4 -5
- package/src/models/match-request.ts +3 -4
- package/src/models/match-response-all-of.ts +2 -3
- package/src/models/match-response.ts +0 -1
- package/src/models/operation-log.ts +42 -0
- package/src/models/output-image-params.ts +37 -0
- package/src/models/page.ts +36 -0
- package/src/models/person-all-of.ts +42 -0
- package/src/models/person-fields.ts +36 -0
- package/src/models/person.ts +26 -0
- package/src/models/persons-page-all-of.ts +31 -0
- package/src/models/persons-page.ts +26 -0
- package/src/models/process-param.ts +51 -0
- package/src/models/quality-config.ts +37 -0
- package/src/models/quality-detail.ts +57 -0
- package/src/models/quality-details-groups.ts +50 -0
- package/src/models/quality-request.ts +37 -0
- package/src/models/recognize-image-all-of.ts +30 -0
- package/src/models/recognize-image.ts +25 -0
- package/src/models/search-person-all-of.ts +31 -0
- package/src/models/search-person.ts +26 -0
- package/src/models/search-request-all-of.ts +42 -0
- package/src/models/search-request.ts +26 -0
- package/src/models/search-result-all-of.ts +30 -0
- package/src/models/search-result.ts +26 -0
- package/src/models/update-group.ts +36 -0
- package/update-models.sh +1 -1
|
@@ -25,25 +25,24 @@ export interface DetectionFace {
|
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof DetectionFace
|
|
27
27
|
*/
|
|
28
|
-
faceIndex?: number;
|
|
28
|
+
'faceIndex'?: number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
|
|
31
31
|
* @type {Array<Array<number>>}
|
|
32
32
|
* @memberof DetectionFace
|
|
33
33
|
*/
|
|
34
|
-
landmarks?: Array<Array<number>>;
|
|
34
|
+
'landmarks'?: Array<Array<number>>;
|
|
35
35
|
/**
|
|
36
36
|
* Rectangular area of the detected face. First element - X-axis coordinate. Second element - Y-axis coordinate. (X, Y) - left top point. Third element - rectangular width. Fourth element - rectangular height.
|
|
37
37
|
* @type {Array<number>}
|
|
38
38
|
* @memberof DetectionFace
|
|
39
39
|
*/
|
|
40
|
-
roi?: Array<number>;
|
|
40
|
+
'roi'?: Array<number>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Base64 of the cropped portrait.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof DetectionFace
|
|
45
45
|
*/
|
|
46
|
-
thumbnail?: string;
|
|
46
|
+
'thumbnail'?: string;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { FaceQualityConfigName } from './face-quality-config-name';
|
|
17
|
+
import { QualityDetail } from './quality-detail';
|
|
18
|
+
import { QualityDetailsGroups } from './quality-details-groups';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Field for checking the portrait quality. If it is not mentioned, no quality check is performed.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface DetectionQuality
|
|
24
|
+
*/
|
|
25
|
+
export interface DetectionQuality {
|
|
26
|
+
/**
|
|
27
|
+
* The array of all the non-compliant assessment characteristics.
|
|
28
|
+
* @type {Array<FaceQualityConfigName>}
|
|
29
|
+
* @memberof DetectionQuality
|
|
30
|
+
*/
|
|
31
|
+
'nonCompliant'?: Array<FaceQualityConfigName>;
|
|
32
|
+
/**
|
|
33
|
+
* The array of the assessment results for each group of characteristics.
|
|
34
|
+
* @type {Array<QualityDetailsGroups>}
|
|
35
|
+
* @memberof DetectionQuality
|
|
36
|
+
*/
|
|
37
|
+
'detailsGroups'?: Array<QualityDetailsGroups>;
|
|
38
|
+
/**
|
|
39
|
+
* The array of the assessment characteristics that were set in the request.
|
|
40
|
+
* @type {Array<QualityDetail>}
|
|
41
|
+
* @memberof DetectionQuality
|
|
42
|
+
*/
|
|
43
|
+
'details'?: Array<QualityDetail>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the estimated portrait quality assessment result, a number from 0 to 1, where 1 is for absolute compliance.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof DetectionQuality
|
|
48
|
+
*/
|
|
49
|
+
'score'?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof DetectionQuality
|
|
54
|
+
*/
|
|
55
|
+
'timer'?: number;
|
|
56
|
+
}
|
|
57
|
+
|
package/src/models/detection.ts
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { DetectionQuality } from './detection-quality';
|
|
17
|
+
import { ImageData } from './image-data';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
@@ -20,30 +22,41 @@
|
|
|
20
22
|
* @interface Detection
|
|
21
23
|
*/
|
|
22
24
|
export interface Detection {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ImageData}
|
|
28
|
+
* @memberof Detection
|
|
29
|
+
*/
|
|
30
|
+
'crop'?: ImageData;
|
|
23
31
|
/**
|
|
24
32
|
*
|
|
25
33
|
* @type {{ [key: string]: object; }}
|
|
26
34
|
* @memberof Detection
|
|
27
35
|
*/
|
|
28
|
-
attributes?: { [key: string]: object; };
|
|
36
|
+
'attributes'?: { [key: string]: object; };
|
|
29
37
|
/**
|
|
30
|
-
*
|
|
38
|
+
* Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
|
|
31
39
|
* @type {Array<Array<number>>}
|
|
32
40
|
* @memberof Detection
|
|
33
41
|
*/
|
|
34
|
-
landmarks: Array<Array<number>>;
|
|
42
|
+
'landmarks': Array<Array<number>>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {DetectionQuality}
|
|
46
|
+
* @memberof Detection
|
|
47
|
+
*/
|
|
48
|
+
'quality'?: DetectionQuality;
|
|
35
49
|
/**
|
|
36
50
|
* Rectangular area of the detected face. First element - X-axis coordinate. Second element - Y-axis coordinate. (X, Y) - left top point. Third element - rectangular width. Fourth element - rectangular height.
|
|
37
51
|
* @type {Array<number>}
|
|
38
52
|
* @memberof Detection
|
|
39
53
|
*/
|
|
40
|
-
roi: Array<number>;
|
|
54
|
+
'roi': Array<number>;
|
|
41
55
|
/**
|
|
42
|
-
*
|
|
56
|
+
* Base64 of the cropped portrait.
|
|
43
57
|
* @type {string}
|
|
44
58
|
* @memberof Detection
|
|
45
59
|
*/
|
|
46
|
-
thumbnail?: string;
|
|
60
|
+
'thumbnail'?: string;
|
|
47
61
|
}
|
|
48
62
|
|
|
49
|
-
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The aspect ratio according to which alignment is performed.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const FaceAlignTypeQuality = {
|
|
24
|
+
ALIGN_3x4: 0,
|
|
25
|
+
ALIGN_4x5: 1,
|
|
26
|
+
ALIGN_2x3: 2,
|
|
27
|
+
ALIGN_1x1: 3,
|
|
28
|
+
ALIGN_7x9: 4
|
|
29
|
+
} as const;
|
|
30
|
+
|
|
31
|
+
export type FaceAlignTypeQuality = typeof FaceAlignTypeQuality[keyof typeof FaceAlignTypeQuality];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const FaceImageQualityGroups = {
|
|
24
|
+
IMAGE_CHARACTERISTICS: 1,
|
|
25
|
+
HEAD_SIZE_AND_POSITIONS: 2,
|
|
26
|
+
FACE_QUALITY: 3,
|
|
27
|
+
EYES_CHARACTERISTICS: 4,
|
|
28
|
+
SHADOWS_AND_LIGHTNING: 5,
|
|
29
|
+
POSE_AND_EXPRESSION: 6,
|
|
30
|
+
HEAD_OCCLUSION: 8
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
export type FaceImageQualityGroups = typeof FaceImageQualityGroups[keyof typeof FaceImageQualityGroups];
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const FaceQualityConfigName = {
|
|
24
|
+
IMAGE_WIDTH: 'ImageWidth',
|
|
25
|
+
IMAGE_HEIGHT: 'ImageHeight',
|
|
26
|
+
IMAGE_WIDTH_TO_HEIGHT: 'ImageWidthToHeight',
|
|
27
|
+
IMAGE_CHANNELS_NUMBER: 'ImageChannelsNumber',
|
|
28
|
+
FACE_MID_POINT_HORIZONTAL_POSITION: 'FaceMidPointHorizontalPosition',
|
|
29
|
+
FACE_MID_POINT_VERTICAL_POSITION: 'FaceMidPointVerticalPosition',
|
|
30
|
+
HEAD_WIDTH_RATIO: 'HeadWidthRatio',
|
|
31
|
+
HEAD_HEIGHT_RATIO: 'HeadHeightRatio',
|
|
32
|
+
EYES_DISTANCE: 'EyesDistance',
|
|
33
|
+
YAW: 'Yaw',
|
|
34
|
+
PITCH: 'Pitch',
|
|
35
|
+
ROLL: 'Roll',
|
|
36
|
+
BLUR_LEVEL: 'BlurLevel',
|
|
37
|
+
NOISE_LEVEL: 'NoiseLevel',
|
|
38
|
+
EYE_RIGHT_CLOSED: 'EyeRightClosed',
|
|
39
|
+
EYE_LEFT_CLOSED: 'EyeLeftClosed',
|
|
40
|
+
EYE_RIGHT_OCCLUDED: 'EyeRightOccluded',
|
|
41
|
+
EYE_LEFT_OCCLUDED: 'EyeLeftOccluded',
|
|
42
|
+
EYES_RED: 'EyesRed',
|
|
43
|
+
EYE_RIGHT_COVERED_WITH_HAIR: 'EyeRightCoveredWithHair',
|
|
44
|
+
EYE_LEFT_COVERED_WITH_HAIR: 'EyeLeftCoveredWithHair',
|
|
45
|
+
OFF_GAZE: 'OffGaze',
|
|
46
|
+
FACE_DYNAMIC_RANGE: 'FaceDynamicRange',
|
|
47
|
+
UNNATURAL_SKIN_TONE: 'UnnaturalSkinTone',
|
|
48
|
+
TOO_DARK: 'TooDark',
|
|
49
|
+
TOO_LIGHT: 'TooLight',
|
|
50
|
+
FACE_GLARE: 'FaceGlare',
|
|
51
|
+
SHADOWS_ON_FACE: 'ShadowsOnFace',
|
|
52
|
+
DARK_GLASSES: 'DarkGlasses',
|
|
53
|
+
REFLECTION_ON_GLASSES: 'ReflectionOnGlasses',
|
|
54
|
+
FRAMES_TOO_HEAVY: 'FramesTooHeavy',
|
|
55
|
+
FACE_OCCLUDED: 'FaceOccluded',
|
|
56
|
+
HEAD_COVERING: 'HeadCovering',
|
|
57
|
+
BACKGROUND_UNIFORMITY: 'BackgroundUniformity',
|
|
58
|
+
SHADOWS_ON_BACKGROUND: 'ShadowsOnBackground',
|
|
59
|
+
OTHER_FACES: 'OtherFaces',
|
|
60
|
+
SHOULDERS_POSE: 'ShouldersPose',
|
|
61
|
+
EXPRESSION_LEVEL: 'ExpressionLevel',
|
|
62
|
+
MOUTH_OPEN: 'MouthOpen',
|
|
63
|
+
CONTACT_LENSES: 'ContactLenses',
|
|
64
|
+
FOREHEAD_COVERING: 'ForeheadCovering',
|
|
65
|
+
SMILE: 'Smile'
|
|
66
|
+
} as const;
|
|
67
|
+
|
|
68
|
+
export type FaceQualityConfigName = typeof FaceQualityConfigName[keyof typeof FaceQualityConfigName];
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const FaceQualityScenarios = {
|
|
24
|
+
QUALITY_FULL: 'QualityFull',
|
|
25
|
+
QUALITY_ICAO: 'QualityICAO',
|
|
26
|
+
QUALITY_VISA_SCHENGEN: 'QualityVisaSchengen',
|
|
27
|
+
QUALITY_VISA_USA: 'QualityVisaUSA',
|
|
28
|
+
CROP_CENTRAL_FACE: 'CropCentralFace',
|
|
29
|
+
CROP_ALL_FACES: 'CropAllFaces',
|
|
30
|
+
THUMBNAIL: 'Thumbnail'
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
export type FaceQualityScenarios = typeof FaceQualityScenarios[keyof typeof FaceQualityScenarios];
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const FaceQualityStatus = {
|
|
24
|
+
QUALITY_STATUS_FALSE: 0,
|
|
25
|
+
QUALITY_STATUS_TRUE: 1,
|
|
26
|
+
QUALITY_STATUS_UNDETERMINED: 2
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type FaceQualityStatus = typeof FaceQualityStatus[keyof typeof FaceQualityStatus];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -19,39 +19,42 @@
|
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
22
|
+
|
|
23
|
+
export const FaceSDKResultCode = {
|
|
24
|
+
FACER_OK: 0,
|
|
25
|
+
FACER_NO_LICENSE: 200,
|
|
26
|
+
FACER_IS_NOT_INITIALIZED: 201,
|
|
27
|
+
FACER_COMMAND_IS_NOT_SUPPORTED: 202,
|
|
28
|
+
FACER_COMMAND_PARAMS_READ_ERROR: 203,
|
|
29
|
+
FACER_SEARCHER_INDEX_FILE_NOT_EXIST: 204,
|
|
30
|
+
FACER_SEARCHER_INDEX_FILE_READ_ERROR: 205,
|
|
31
|
+
FACER_SEARCHER_INDEX_FILE_DECRYPTION_ERROR: 206,
|
|
32
|
+
FACER_SEARCHER_INDEX_LOAD_ERROR: 207,
|
|
33
|
+
FACER_SEARCHER_WRONG_DESCRIPTOR_VERSION: 208,
|
|
34
|
+
FACER_SEARCHER_INDEX_FILE_ENCRYPTION_ERROR: 209,
|
|
35
|
+
FACER_SEARCHER_INDEX_FILE_SAVE_ERROR: 210,
|
|
36
|
+
FACER_SEARCHER_IMAGE_DECODE_ERROR: 211,
|
|
37
|
+
FACER_SEARCHER_ID_EXISTS_IN_INDEX: 212,
|
|
38
|
+
FACER_SEARCHER_ID_NOT_IN_INDEX: 213,
|
|
39
|
+
FACER_SEARCHER_NO_FACES: 214,
|
|
40
|
+
FACER_SEARCHER_DESCRIPTOR_EXTRACTOR_ERROR: 215,
|
|
41
|
+
FACER_SEARCHER_METADATA_READ_ERROR: 216,
|
|
42
|
+
FACER_SEARCHER_NO_SEARCH_LICENSE: 217,
|
|
43
|
+
FACER_SEARCHER_DESCRIPTOR_DECODE_ERROR: 218,
|
|
44
|
+
FACER_SEARCHER_DESCRIPTOR_WRONG_SIZE: 219,
|
|
45
|
+
FACER_SEARCHER_ZIP_IMAGE_READ_ERROR: 220,
|
|
46
|
+
FACER_SEARCHER_ZIP_META_READ_ERROR: 221,
|
|
47
|
+
FACER_SEARCHER_SIMILAR_PHOTOS_EXIST: 222,
|
|
48
|
+
FACER_SEARCHER_PERSON_ZIP_READ_ERROR: 223,
|
|
49
|
+
FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST: 224,
|
|
50
|
+
FACER_SEARCHER_WRONG_ID: 225,
|
|
51
|
+
FACER_SEARCHER_ID_EXISTS_IN_DELETED: 226,
|
|
52
|
+
FACER_VIDEO_DECODE_ERROR: 227,
|
|
53
|
+
FACER_NOT_ENOUGH_FRAMES: 228,
|
|
54
|
+
FACER_OUTPUT_IS_NOT_DEFINED: 229
|
|
55
|
+
} as const;
|
|
56
|
+
|
|
57
|
+
export type FaceSDKResultCode = typeof FaceSDKResultCode[keyof typeof FaceSDKResultCode];
|
|
55
58
|
|
|
56
59
|
|
|
57
60
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Additional group data in the response, includes id and created_at.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface GroupAllOf
|
|
21
|
+
*/
|
|
22
|
+
export interface GroupAllOf {
|
|
23
|
+
/**
|
|
24
|
+
* Group ID.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof GroupAllOf
|
|
27
|
+
*/
|
|
28
|
+
'id'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Group creation date.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GroupAllOf
|
|
33
|
+
*/
|
|
34
|
+
'created_at'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Group } from './group';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GroupPageAllOf
|
|
22
|
+
*/
|
|
23
|
+
export interface GroupPageAllOf {
|
|
24
|
+
/**
|
|
25
|
+
* The array of Groups that are found during the search.
|
|
26
|
+
* @type {Array<Group>}
|
|
27
|
+
* @memberof GroupPageAllOf
|
|
28
|
+
*/
|
|
29
|
+
'items'?: Array<Group>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Group } from './group';
|
|
17
|
+
import { GroupPageAllOf } from './group-page-all-of';
|
|
18
|
+
import { Page } from './page';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type GroupPage
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export type GroupPage = GroupPageAllOf & Page;
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Request body of the group to create data, includes name and metadata.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface GroupToCreate
|
|
21
|
+
*/
|
|
22
|
+
export interface GroupToCreate {
|
|
23
|
+
/**
|
|
24
|
+
* Group to create name.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GroupToCreate
|
|
27
|
+
*/
|
|
28
|
+
'name'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* A free-form object containing group\'s extended attributes.
|
|
31
|
+
* @type {{ [key: string]: object; }}
|
|
32
|
+
* @memberof GroupToCreate
|
|
33
|
+
*/
|
|
34
|
+
'metadata'?: { [key: string]: object; };
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { GroupAllOf } from './group-all-of';
|
|
17
|
+
import { GroupToCreate } from './group-to-create';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @type Group
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export type Group = GroupAllOf & GroupToCreate;
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { ImageData } from './image-data';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The uploaded image.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ImageFieldsImage
|
|
22
|
+
*/
|
|
23
|
+
export interface ImageFieldsImage {
|
|
24
|
+
/**
|
|
25
|
+
* The original media type of the uploaded image.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ImageFieldsImage
|
|
28
|
+
*/
|
|
29
|
+
'content_type'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ImageData}
|
|
33
|
+
* @memberof ImageFieldsImage
|
|
34
|
+
*/
|
|
35
|
+
'content'?: ImageData;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { ImageFieldsImage } from './image-fields-image';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Image in the request data, includes image and content_type.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ImageFields
|
|
22
|
+
*/
|
|
23
|
+
export interface ImageFields {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ImageFieldsImage}
|
|
27
|
+
* @memberof ImageFields
|
|
28
|
+
*/
|
|
29
|
+
'image'?: ImageFieldsImage;
|
|
30
|
+
}
|
|
31
|
+
|