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
description: "Whether to process only the central face in the image. If set to `false`, all the faces are processed."
54
-
example: false
54
+
example: true
55
55
outputImageParams:
56
56
$ref: "#/components/schemas/OutputImageParams"
57
57
quality:
58
58
$ref: "#/components/schemas/QualityRequest"
59
59
attributes:
60
-
description: "If set, the selected attributes, such as age or emotions, are evaluated."
60
+
description: "If set, the selected attributes, such as age or emotions, are evaluated. To check all the available attributes, you can set the `AttributesAll` scenario in `processParam.scenario`."
61
61
type: object
62
62
properties:
63
63
config:
@@ -75,7 +75,7 @@ components:
75
75
76
76
QualityRequest:
77
77
type: object
78
-
description: "If set, the face image quality check is performed according to the set scenario or characteristics."
78
+
description: "If set, the face image quality check is performed according to the given list of [characteristics](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/) in `quality.config`."
79
79
properties:
80
80
backgroundMatchColor:
81
81
description: "The RGB value for the background color: the silhouette of a person is cut out and the background is filled with this color."
@@ -85,7 +85,7 @@ components:
85
85
86
86
Crop:
87
87
type: object
88
-
description: "Whether to return a Base64-encoded image of an aligned and cropped portrait in the `crop` field. Alignment is performed according to `type`; if a head on the original image is tilted, for the returned portrait it is aligned in a straight vertical line. If there are more than one face in the photo, all the faces are detected and processed, and separate portraits for each face are returned. So, if there are five people in the photo, you'll get five processed portraits. Each portrait can be downloaded."
88
+
description: "Whether to return a Base64-encoded image of each aligned and cropped portrait in the `crop` field. Faces are aligned to a straight vertical line based on the value in the `crop.type` field, correcting any tilt present in the original image. If the image contains multiple faces, the system will detect and process each face separately, returning individual portraits. For example, if there are five people in the photo, five processed portraits will be returned. Each portrait is available for download."
description: "The resize value in case `type` matches this value. If it doesn't, no resize is performed."
104
104
example: [300, 400]
105
-
returnOriginalRect:
106
-
type: boolean
107
-
description: "Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop."
108
-
example: true
109
105
110
106
QualityConfigList:
111
107
type: array
@@ -128,7 +124,7 @@ components:
128
124
format: float
129
125
minItems: 2
130
126
maxItems: 2
131
-
description: "The range of applicable values for this characteristic. If the returned in the response value fits this range, the characteristic is identified as compliant with the requirements."
127
+
description: "The range of applicable values for this characteristic. If the returned in the response value fits this range, the characteristic is identified as compliant with the requirements. For recommended ranges, see [Face Image Quality Assessment](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/)."
132
128
example: [x, y]
133
129
134
130
AttributeConfigList:
@@ -177,7 +173,7 @@ components:
177
173
example: "Roll"
178
174
range:
179
175
type: array
180
-
description: "The range of set values for this characteristic."
176
+
description: "The range of set values for this characteristic, see the [Recommended range column](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/)."
181
177
items:
182
178
type: number
183
179
format: float
@@ -191,7 +187,7 @@ components:
191
187
value:
192
188
type: number
193
189
format: float
194
-
description: "The assessed value for the characteristic, returned in the set units."
190
+
description: "The result value for the characteristic, returned in set units."
195
191
example: 0.0
196
192
197
193
RGB:
@@ -205,7 +201,7 @@ components:
205
201
206
202
FaceImageQualityStatus:
207
203
type: integer
208
-
description: "The processing status returned for each assessed quality characteristic."
204
+
description: "The processing status returned for each quality characteristic, see the [FaceImageQualityStatus enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-status/)."
209
205
enum:
210
206
- 0
211
207
- 1
@@ -217,13 +213,8 @@ components:
217
213
218
214
FaceQualityScenarios:
219
215
type: string
220
-
description: "Face detection scenario. If applied and the scenario is found, the parameters are set automatically and any other parameters mentioned in the request are ignored.
221
-
222
-
223
-
If not set, left empty, or the name is not found, the processing is performed according to the set parameters.
224
-
225
-
226
-
You can find detailed descriptions of available scenarios on the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/)."
216
+
description: "Face detection scenario. If set and the scenario is found, it automatically applies the relevant parameters, overriding any other parameters specified in the request. If the scenario is not set, is empty, or the name is not recognized, processing will follow the parameters directly set in the request. For detailed descriptions of available scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/)."
217
+
example: "QualityICAO"
227
218
enum:
228
219
- "OldMode"
229
220
- "QualityFull"
@@ -233,6 +224,7 @@ components:
233
224
- "CropCentralFace"
234
225
- "CropAllFaces"
235
226
- "Thumbnail"
227
+
- "AttributesAll"
236
228
- ""
237
229
x-enum-varnames:
238
230
- OLD_MODE
@@ -243,11 +235,12 @@ components:
243
235
- CROP_CENTRAL_FACE
244
236
- CROP_ALL_FACES
245
237
- THUMBNAIL
238
+
- ATTRIBUTES_ALL
246
239
- EMPTY
247
240
248
241
FaceImageQualityGroups:
249
242
type: integer
250
-
description: "Face image quality group types for face image quality assessment."
243
+
description: "The group ID of the characteristic, see the [FaceImageQualityGroups enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-groups/) for details."
251
244
enum:
252
245
- 1
253
246
- 2
@@ -268,7 +261,7 @@ components:
268
261
- BACKGROUND
269
262
FaceImageQualityGroupsStrings:
270
263
type: string
271
-
description: "Face image quality group types for faceimagequality assessment."
264
+
description: "Face image quality assessment group name, see [FaceImageQualityGroups](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-groups/)."
272
265
enum:
273
266
- "ImageCharacteristics"
274
267
- "HeadSizeAndPosition"
@@ -290,7 +283,7 @@ components:
290
283
291
284
FaceQualityConfigName:
292
285
type: string
293
-
description: "The name of the quality check characteristic. For definitions, see the [FaceQualityConfigName enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-quality-config-name/)."
286
+
description: "The name of the characteristic. For definitions, see the [FaceQualityConfigName enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-quality-config-name/)."
Copy file name to clipboardExpand all lines: detect.yml
+52-25Lines changed: 52 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,18 @@ paths:
10
10
description: "Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people.
11
11
12
12
13
-
The Face Detection feature lets you:
13
+
The Face Detection feature lets you additionally:
14
14
15
-
- **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field.
15
+
- **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/).
16
16
17
-
- **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field.
17
+
- **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/).
18
18
19
19
20
20
You can perform Face Detection in two ways:
21
21
22
-
- By adding parameters manually. In this case, the configuration is not saved and can not be automatically repeated.
22
+
- By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request.
23
23
24
-
- By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones."
24
+
- By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/)."
description: "The face detection scenario that was set in the `processParam.scenario` field of the request."
82
+
type: string
83
+
elapsedTime:
87
84
type: number
88
85
format: float
89
-
description: "The total timetaken for the detection."
86
+
description: "Server processing time, ms. Does not include the time taken to receive the request or deliver the response."
90
87
example: 0.84793560000000001
91
88
89
+
DetectAttributesDetails:
90
+
type: object
91
+
properties:
92
+
name:
93
+
type: string
94
+
description: "The name of the attribute."
95
+
value:
96
+
type: array
97
+
description: "The estimated value for the attribute, see the [Returned values column](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/)."
98
+
items:
99
+
type: integer
100
+
101
+
DetectDetailsMeta:
102
+
type: object
103
+
properties:
104
+
confidence:
105
+
type: number
106
+
description: "The confidence in the estimated value, `1.0` is for 100% confidence."
107
+
format: float
108
+
value:
109
+
type: string
110
+
description: "The estimated value for the attribute, see the [Returned values column](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/)."
description: "The evaluated attributes, see the [Attributes List](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/) for details."
103
126
properties:
104
127
details:
105
128
type: array
129
+
description: "Attributes assessment details. Returns `DetectDetailsMeta` or `DetectAttributesDetails`."
description: "The elapsed time for attribute detection."
138
+
description: "Server processing time for attribute detection, ms."
112
139
landmarks:
113
-
description: "Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips."
140
+
description: "Absolute coordinates (X,Y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips."
114
141
type: array
115
142
items:
116
143
description: "Cartesian points. First element - X-axis coordinate. Second element - Y-axis coordinate."
@@ -121,35 +148,35 @@ components:
121
148
example: [ [ x, y ] ]
122
149
quality:
123
150
type: object
124
-
description: "Field for checking the portrait quality. If it is not mentioned, no quality check is performed."
151
+
description: "The portrait quality assessment results, see [Face Image Quality Characteristics](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). If not set in request, no quality check is performed."
125
152
properties:
126
153
nonCompliant:
127
154
type: array
128
-
description: "The array of all the non-compliant assessment characteristics."
description: "The array of the assessment results for each group of characteristics."
160
+
description: "Assessment results for each [group of characteristics](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-groups/)."
0 commit comments