Skip to content

Commit f14e049

Browse files
Merge pull request #68 from regulaforensics/5-2-release
Release 5.3
2 parents d3812d7 + a3bd8d3 commit f14e049

4 files changed

Lines changed: 57 additions & 8 deletions

File tree

common.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ components:
7373
description: "The RGB value for the background color: the silhouette of a person is cut out and the background is filled with this color."
7474
$ref: "#/components/schemas/RGB"
7575
crop:
76-
description: "Whether to return the Base64 of an aligned and cropped portrait in the crop field."
76+
description: "Whether to return the Base64 of an aligned and cropped portrait in the `crop` field."
7777
$ref: "#/components/schemas/Crop"
7878

7979
QualityRequest:
@@ -88,11 +88,11 @@ components:
8888

8989
Crop:
9090
type: object
91-
description: "Whether to return the Base64 of an aligned and cropped portrait in the crop field."
91+
description: "Whether to return the Base64 image of an aligned and cropped portrait in the `crop` field."
9292
properties:
9393
type:
9494
$ref: "#/components/schemas/FaceImageQualityAlignType"
95-
description: "The dimensions ratio to the height of the required pattern."
95+
description: "The aspect ratio according to which face alignment is performed during face detection."
9696
example: 1
9797
padColor:
9898
$ref: "#/components/schemas/RGB"
@@ -103,7 +103,7 @@ components:
103103
type: integer
104104
minItems: 2
105105
maxItems: 2
106-
description: "The resize value in case type matches this value. If it doesn't, no resize is done."
106+
description: "The resize value in case `type` matches this value. If it doesn't, no resize is performed."
107107
example: [300, 400]
108108
returnOriginalRect:
109109
type: boolean

detect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ components:
3939
image:
4040
$ref: "./common.yml#/components/schemas/ImageData"
4141
thumbnails:
42-
description: "Whether to return the cropped portrains with the detected faces."
42+
description: "Deprecated, use the `crop` field in `processParam` instead."
4343
type: boolean
4444
default: false
4545

index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 5.2.0
3+
version: 6.1.0
44
title: Regula FaceSDK Web API
55
x-logo:
66
url: 'https://static-content.regulaforensics.com/Icons/Logos/Regula-logo.svg'

matching.yml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ paths:
2525
403:
2626
$ref: "./common.yml#/components/responses/BadLicense"
2727

28+
info:
29+
title: Regula FaceSDK Web API
30+
version: 6.1.0
31+
2832
components:
2933
schemas:
3034

@@ -38,13 +42,54 @@ components:
3842
description: "Session identificator."
3943
thumbnails:
4044
type: boolean
41-
description: "Whether to return thumbnails: Base64 cropped images that contain vertically aligned faces."
45+
description: "Deprecated, use the `crop` field in `outputImageParams` instead."
4246
default: false
47+
deprecated: true
4348
images:
4449
type: array
4550
description: "The array of all images included in the comparison."
4651
items:
4752
$ref: "#/components/schemas/MatchImage"
53+
outputImageParams:
54+
type: object
55+
description: "Whether to process the uploaded image according to the indicated settings."
56+
properties:
57+
backgroundColor:
58+
type: array
59+
description: "The RGB value of a color for filling background behind a person's silhouette and for aligning the image."
60+
default: null
61+
items:
62+
type: integer
63+
crop:
64+
type: object
65+
description: "Whether to return the Base64 of an aligned and cropped portrait in the `crop` field."
66+
properties:
67+
padColor:
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+
returnOriginalRect:
74+
type: boolean
75+
description: "Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop."
76+
default: null
77+
size:
78+
type: array
79+
description: "The resize value in case `type` matches this value. If it doesn't, no resize is performed."
80+
default: null
81+
items:
82+
type: integer
83+
type:
84+
type: integer
85+
description: "The aspect ratio according to which face alignment is performed during face detection."
86+
default: null
87+
enum:
88+
- 0
89+
- 1
90+
- 2
91+
- 3
92+
- 4
4893

4994
MatchImageIndex:
5095
type: integer
@@ -142,11 +187,15 @@ components:
142187
example: [ [ x, y ] ]
143188
rotationAngle:
144189
description: "Angle of rotation of the face from the vertical axis, degrees."
145-
type: float
190+
type: number
146191
roi:
147192
$ref: "./common.yml#/components/schemas/FaceRectangular"
148193
thumbnail:
149194
$ref: "./common.yml#/components/schemas/Thumbnail"
195+
crop:
196+
type: string
197+
format: byte
198+
description: "Base64 of the cropped portrait."
150199

151200
ImageSource:
152201
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/"

0 commit comments

Comments
 (0)