@@ -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+
2832components :
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