You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common.yml
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -394,7 +394,7 @@ components:
394
394
$ref: "#/components/schemas/FaceSDKResultCode"
395
395
396
396
ImageData:
397
-
description: "Base64encoded image."
397
+
description: "Base64-encoded image."
398
398
type: string
399
399
format: byte
400
400
@@ -449,7 +449,17 @@ components:
449
449
450
450
FaceSDKResultCode:
451
451
type: integer
452
-
description: "The result code, see enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/"
452
+
description: "The result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/).
453
+
454
+
Some of the values:
455
+
456
+
- `0`—everything is OK
457
+
458
+
- `1`—image is empty, try again with another image
459
+
460
+
- `2`—face is not detected
461
+
462
+
- `6`—data cannot be decoded as an image"
453
463
enum:
454
464
- 0
455
465
- 1
@@ -490,6 +500,8 @@ components:
490
500
- 250
491
501
- 251
492
502
- 252
503
+
- 253
504
+
- 254
493
505
x-enum-varnames:
494
506
- FACER_OK
495
507
- FR_IMAGE_EMPTY
@@ -530,11 +542,12 @@ components:
530
542
- FACER_TIMEOUT_LIVENESS_TRANSACTION
531
543
- FACER_FAILED_LIVENESS_TRANSACTION
532
544
- FACER_ABORTED_LIVENESS_TRANSACTION
545
+
- FACER_GENERAL_ERROR
546
+
- FACER_PASSIVE_LIVENESS_FAIL
533
547
534
548
Thumbnail:
535
-
description: "Base64 of the cropped portrait."
536
-
type: string
537
-
format: byte
549
+
description: "See `crop` instead."
550
+
deprecated: true
538
551
539
552
FaceRectangular:
540
553
description: "The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle."
<a href="https://regulaforensics.com/products/face-recognition-sdk/ " target="_blank">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side.
Copy file name to clipboardExpand all lines: match_and_search.yml
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,8 @@ paths:
6
6
post:
7
7
tags:
8
8
- matching
9
-
summary: 'Match and Search in one request'
9
+
summary: 'match and search (1:1 + 1:N)'
10
+
description: "To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. If only one person is identified, matching is not performed and only search is carried out."
10
11
operationId: match_and_search
11
12
requestBody:
12
13
required: true
@@ -31,10 +32,10 @@ components:
31
32
properties:
32
33
tag:
33
34
type: string
34
-
description: "Session identificator."
35
+
description: "Session identificator, should be unique for each session."
description: "To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It's possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field.
11
+
12
+
Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected).
13
+
14
+
So, if there are two images each of which has two faces in them, the parameters will be the following:
15
+
16
+
- First face in the first image: `faceIndex: 0`, `imageIndex: 0`
17
+
18
+
- Second face in the first image: `faceIndex: 1`, `imageIndex: 0`
19
+
20
+
- First face of the second image: `faceIndex: 0`, `imageIndex: 1`
21
+
22
+
- Second face in the second image: `faceIndex: 1`, `imageIndex: 1`"
11
23
operationId: match
12
24
requestBody:
13
25
required: true
@@ -39,15 +51,13 @@ components:
39
51
properties:
40
52
tag:
41
53
type: string
42
-
description: "Session identificator."
54
+
description: "Session identificator, should be unique for each session."
43
55
thumbnails:
44
-
type: boolean
45
-
description: "Deprecated, use the `crop` field in `outputImageParams` instead."
description: "The array of all images included in the comparison."
60
+
description: "All images included in the comparison."
51
61
items:
52
62
$ref: "#/components/schemas/MatchImage"
53
63
outputImageParams:
@@ -62,7 +72,7 @@ components:
62
72
type: integer
63
73
crop:
64
74
type: object
65
-
description: "Whether to return the Base64 of an aligned and cropped portrait in the `crop` field."
75
+
description: "If set, a Base64-encoded aligned and cropped by the indicated settings portrait is returned in the `crop` field."
66
76
properties:
67
77
padColor:
68
78
type: array
@@ -72,7 +82,7 @@ components:
72
82
type: integer
73
83
returnOriginalRect:
74
84
type: boolean
75
-
description: "Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop."
85
+
description: "Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop. Can be used only if the face in the original image is not tilted."
76
86
default: null
77
87
size:
78
88
type: array
@@ -82,7 +92,7 @@ components:
82
92
type: integer
83
93
type:
84
94
type: integer
85
-
description: "The aspect ratio according to which face alignment is performed during face detection."
95
+
description: "The aspect ratio according to which face alignment is performed. See the [FaceImageQualityAlignType enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-align-type/). To get a thumbnail with dimensions 3x4, set `0`."
86
96
default: null
87
97
enum:
88
98
- 0
@@ -93,7 +103,7 @@ components:
93
103
94
104
MatchImageIndex:
95
105
type: integer
96
-
description: "The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated."
106
+
description: "The image index number. Can be given; if not given, the index numbers are set automatically starting from `0`. All index numbers must be whole and unique—not repeated."
97
107
98
108
MatchFaceIndex:
99
109
type: number
@@ -120,12 +130,12 @@ components:
120
130
properties:
121
131
detections:
122
132
type: array
123
-
description: "The array of detected faces."
133
+
description: "The detection results."
124
134
items:
125
135
$ref: "#/components/schemas/MatchImageDetection"
126
136
results:
127
137
type: array
128
-
description: "The array of matching results."
138
+
description: "The comparison results."
129
139
items:
130
140
$ref: "#/components/schemas/MatchImageResult"
131
141
metadata:
@@ -166,7 +176,7 @@ components:
166
176
properties:
167
177
faces:
168
178
type: array
169
-
description: "The array of detected faces."
179
+
description: "Detected faces."
170
180
items:
171
181
$ref: "#/components/schemas/DetectionFace"
172
182
imageIndex:
@@ -199,10 +209,10 @@ components:
199
209
crop:
200
210
type: string
201
211
format: byte
202
-
description: "Base64 of the cropped portrait."
212
+
description: "Base64-encoded aligned and cropped portrait."
203
213
204
214
ImageSource:
205
-
description: "The type of the image, defines the way the comparison is performed. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/image-source/"
215
+
description: "The type of the image, defines the way the comparison is performed, see the [ImageSource enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/image-source/)."
206
216
type: integer
207
217
enum:
208
218
- 1
@@ -211,15 +221,16 @@ components:
211
221
- 4
212
222
- 5
213
223
- 6
224
+
- 7
214
225
x-enum-varnames:
215
226
- DOCUMENT_PRINTED
216
227
- DOCUMENT_RFID
217
228
- LIVE
218
229
- DOCUMENT_WITH_LIVE
219
230
- EXTERNAL
220
231
- GHOST
221
-
232
+
- BARCODE
222
233
detectAll:
223
234
type: boolean
224
-
description: "Whether to detect all faces in the image. If set to false, only the most central face is detected."
235
+
description: "Whether to detect all faces in the image. If set to `false`, only the most central face is detected."
0 commit comments