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
+19-14Lines changed: 19 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ components:
50
50
$ref: "#/components/schemas/FaceQualityScenarios"
51
51
onlyCentralFace:
52
52
type: boolean
53
-
description: "Whether to process only the central face on the image (true) or all the faces (false)."
53
+
description: "Whether to process only the central face in the image. If set to `false`, all the faces are processed."
54
54
example: false
55
55
outputImageParams:
56
56
$ref: "#/components/schemas/OutputImageParams"
@@ -65,18 +65,17 @@ components:
65
65
66
66
OutputImageParams:
67
67
type: object
68
-
description: "Whether to process the uploaded image according to the indicated settings."
68
+
description: "Allows to process the uploaded image according to the indicated settings."
69
69
properties:
70
70
backgroundColor:
71
71
description: "The RGB value for the background color: the silhouette of a person is cut out and the background is filled with this color."
72
72
$ref: "#/components/schemas/RGB"
73
73
crop:
74
-
description: "Whether to return the Base64 of an aligned and cropped portrait in the `crop` field."
75
74
$ref: "#/components/schemas/Crop"
76
75
77
76
QualityRequest:
78
77
type: object
79
-
description: "Whether to perform the portrait quality check."
78
+
description: "If set, the face image quality check is performed according to the set scenario or characteristics."
80
79
properties:
81
80
backgroundMatchColor:
82
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."
@@ -86,15 +85,15 @@ components:
86
85
87
86
Crop:
88
87
type: object
89
-
description: "Whether to return the Base64 image of an aligned and cropped portrait in the `crop` field."
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."
description: "The aspect ratio according to which face alignment is performed during face detection."
92
+
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/). <br><br>To get a thumbnail with dimensions 3x4, set `0`."
94
93
example: 1
95
94
padColor:
96
95
$ref: "#/components/schemas/RGB"
97
-
description: "The RGB value for the color that will complement the image if this is needed for alignment."
96
+
description: "The RGB value of a color for filling background behind a person's silhouette and for aligning the image."
98
97
size:
99
98
type: array
100
99
items:
@@ -110,6 +109,7 @@ components:
110
109
111
110
QualityConfigList:
112
111
type: array
112
+
description: "The list of quality check characteristics."
113
113
items:
114
114
$ref: "#/components/schemas/QualityConfig"
115
115
@@ -128,13 +128,12 @@ components:
128
128
format: float
129
129
minItems: 2
130
130
maxItems: 2
131
-
description: "The range of applicable values for this characteristic.
132
-
If the returned in the Response value fits this range,
133
-
the value is identified as compliant with the requirements."
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."
134
132
example: [x, y]
135
133
136
134
AttributeConfigList:
137
135
type: array
136
+
description: "The list of attributes for evaluation."
138
137
items:
139
138
$ref: "#/components/schemas/AttributeConfig"
140
139
@@ -218,7 +217,13 @@ components:
218
217
219
218
FaceQualityScenarios:
220
219
type: string
221
-
description: "Face detection scenario."
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/)."
222
227
enum:
223
228
- "OldMode"
224
229
- "QualityFull"
@@ -285,7 +290,7 @@ components:
285
290
286
291
FaceQualityConfigName:
287
292
type: string
288
-
description: "All image characteristics that can be assessed during face image quality assessment."
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/)."
289
294
enum:
290
295
- "ImageWidth"
291
296
- "ImageHeight"
@@ -433,7 +438,7 @@ components:
433
438
434
439
FaceImageQualityAlignType:
435
440
type: integer
436
-
description: "The aspect ratio according to which face alignment is performed during face detection."
441
+
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 aspect ratio 3:4, set `0`."
437
442
enum:
438
443
- 0
439
444
- 1
@@ -550,7 +555,7 @@ components:
550
555
551
556
FaceAttribute:
552
557
type: string
553
-
description: "Face attributes."
558
+
description: "The name of the attribute. For definitions, see the [FaceAttribute enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-attribute/)."
Copy file name to clipboardExpand all lines: detect.yml
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,22 @@ paths:
6
6
post:
7
7
tags:
8
8
- matching
9
-
description: "Detect face, evaluate attributes, assess the portrait quality"
9
+
summary: "detect and check quality"
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
+
12
+
13
+
The Face Detection feature lets you:
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.
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.
18
+
19
+
20
+
You can perform Face Detection in two ways:
21
+
22
+
- By adding parameters manually. In this case, the configuration is not saved and can not be automatically repeated.
23
+
24
+
- By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones."
Copy file name to clipboardExpand all lines: matching.yml
+1-39Lines changed: 1 addition & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -61,45 +61,7 @@ components:
61
61
items:
62
62
$ref: "#/components/schemas/MatchImage"
63
63
outputImageParams:
64
-
type: object
65
-
description: "Whether to process the uploaded image according to the indicated settings."
66
-
properties:
67
-
backgroundColor:
68
-
type: array
69
-
description: "The RGB value of a color for filling background behind a person's silhouette and for aligning the image."
70
-
default: null
71
-
items:
72
-
type: integer
73
-
crop:
74
-
type: object
75
-
description: "If set, a Base64-encoded aligned and cropped by the indicated settings portrait is returned in the `crop` field."
76
-
properties:
77
-
padColor:
78
-
type: array
79
-
description: "The RGB value of a color for filling background behind a person's silhouette and for aligning the image."
80
-
default: null
81
-
items:
82
-
type: integer
83
-
returnOriginalRect:
84
-
type: boolean
85
-
description: "Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop."
86
-
default: null
87
-
size:
88
-
type: array
89
-
description: "The resize value in case `type` matches this value. If it doesn't, no resize is performed."
90
-
default: null
91
-
items:
92
-
type: integer
93
-
type:
94
-
type: integer
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 aspect ratio 3:4, set `0`."
0 commit comments