Skip to content
12 changes: 7 additions & 5 deletions common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ components:
$ref: "#/components/schemas/OutputImageParams"
quality:
$ref: "#/components/schemas/QualityRequest"
attributes:
attributes:
description: "Whether to evaluate attributes, such as age and emotions."
type: boolean
default: false
Expand Down Expand Up @@ -85,6 +85,7 @@ components:

Crop:
type: object
description: "Whether to return the Base64 of an aligned and cropped portrait in the crop field."
properties:
type:
$ref: "#/components/schemas/FaceImageQualityAlignType"
Expand All @@ -108,13 +109,13 @@ components:

QualityConfigList:
type: array
description: "The configuration that defines the list of returned quality check characteristics."
items:
$ref: "#/components/schemas/QualityConfig"

QualityConfig:
type: object
description: "The configuration that defines the list of returned quality check characteristics.
For every characteristic, includes name, range, unit."
description: "The configuration that defines the list of returned quality check characteristics."
properties:
name:
description: "The name of the characteristic."
Expand Down Expand Up @@ -179,6 +180,7 @@ components:

RGB:
type: array
description: "The RGB value of a color for filling background behind a person's silhouette and for aligning the image."
items:
type: integer
minItems: 3
Expand All @@ -199,7 +201,7 @@ components:

FaceQualityScenarios:
type: string
description: "Face detection scenarios."
description: "Face detection scenario."
enum:
- "OldMode"
- "QualityFull"
Expand Down Expand Up @@ -479,4 +481,4 @@ components:
type: array
items:
type: number
example: [x, y, width, height]
example: [x, y, width, height]
8 changes: 2 additions & 6 deletions detect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
post:
tags:
- matching
summary: "Detect facial coordinates"
- face detection
summary: "Find a face in the image, evaluate attributes, and assess the portrait quality"
operationId: detect
requestBody:
required: true
Expand Down Expand Up @@ -42,10 +42,6 @@ components:
description: "Whether to return the cropped portrains with the detected faces."
type: boolean
default: false
attributes:
description: "Whether to evaluate attributes, such as age and emotions."
type: boolean
default: false

DetectResponse:
allOf:
Expand Down
14 changes: 7 additions & 7 deletions groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- group
- face identification
summary: Get groups
operationId: get_all_groups
parameters:
Expand All @@ -24,7 +24,7 @@ paths:
$ref: "./common.yml#/components/responses/BadRequest"
post:
tags:
- group
- face identification
summary: Create group
operationId: create_group
requestBody:
Expand All @@ -45,7 +45,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- group
- face identification
summary: Get group
operationId: get_group
responses:
Expand All @@ -57,7 +57,7 @@ paths:
$ref: "#/components/responses/GroupNotFound"
put:
tags:
- group
- face identification
summary: Update group
operationId: update_group
requestBody:
Expand All @@ -76,7 +76,7 @@ paths:
$ref: "#/components/responses/GroupNotFound"
delete:
tags:
- group
- face identification
summary: Delete group
operationId: delete_group
responses:
Expand All @@ -90,7 +90,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- group
- face identification
summary: Get group persons
operationId: get_all_persons_by_group_id
parameters:
Expand All @@ -113,7 +113,7 @@ paths:
$ref: "./common.yml#/components/schemas/OperationLog"
put:
tags:
- group
- face identification
summary: Add/remove persons to group
operationId: update_persons_in_group
requestBody:
Expand Down
4 changes: 2 additions & 2 deletions index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ paths:
$ref: './match_and_search.yml#/paths/~1match_and_search'
/api/detect:
$ref: './detect.yml#/paths/~1detect'
/api/search:
$ref: './search.yml#/paths/~1search'
/api/persons:
$ref: './persons.yml#/paths/~1persons'
/api/persons/{person_id}:
Expand All @@ -48,7 +50,5 @@ paths:
$ref: './groups.yml#/paths/~1groups~1{group_id}'
/api/groups/{group_id}/persons:
$ref: './groups.yml#/paths/~1groups~1{group_id}~1persons'
/api/search:
$ref: './search.yml#/paths/~1search'
/api/v2/liveness:
$ref: './liveness.yml#/paths/~1v2~1liveness'
2 changes: 1 addition & 1 deletion liveness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ paths:
- $ref: './common.yml#/components/parameters/transactionId'
get:
tags:
- liveness 2.0
- liveness assessment
summary: liveness
operationId: get_liveness_transaction_info
responses:
Expand Down
4 changes: 2 additions & 2 deletions match_and_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
post:
tags:
- matching
summary: 'Match and Search in one request'
- face comparison
summary: 'Compare faces and look up a person in a database in one request'
operationId: match_and_search
requestBody:
required: true
Expand Down
6 changes: 3 additions & 3 deletions matching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
post:
tags:
- matching
summary: "Compare provided face images in all combinations and return the similarity score for each pair."
- face comparison
summary: "Compare faces in all combinations and return similarity score for each pair"
operationId: match
requestBody:
required: true
Expand Down Expand Up @@ -168,5 +168,5 @@ components:

detectAll:
type: boolean
description: "Whether to detect all faces in the image. If set to false, only one face is detected: the most central one."
description: "Whether to detect all faces in the image. If set to false, only the most central face is detected."
default: true
20 changes: 10 additions & 10 deletions persons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- person
- face identification
summary: Get persons
operationId: get_all_persons
parameters:
Expand All @@ -25,7 +25,7 @@ paths:
$ref: "./common.yml#/components/responses/BadRequest"
post:
tags:
- person
- face identification
summary: Create person
operationId: create_person
requestBody:
Expand All @@ -45,7 +45,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- person
- face identification
summary: Get person
operationId: get_person
responses:
Expand All @@ -57,7 +57,7 @@ paths:
$ref: '#/components/responses/PersonNotFound'
put:
tags:
- person
- face identification
summary: Update person
operationId: update_person
requestBody:
Expand All @@ -76,7 +76,7 @@ paths:
$ref: '#/components/responses/PersonNotFound'
delete:
tags:
- person
- face identification
summary: Delete person
operationId: delete_person
responses:
Expand All @@ -92,7 +92,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- person
- face identification
summary: Get person images
operationId: get_all_images_by_person_id
parameters:
Expand All @@ -111,7 +111,7 @@ paths:
$ref: '#/components/responses/PersonNotFound'
post:
tags:
- person
- face identification
summary: Add person image
operationId: add_image_to_person
requestBody:
Expand All @@ -138,7 +138,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- person
- face identification
summary: Get person image by id
operationId: get_image_of_person
parameters:
Expand All @@ -159,7 +159,7 @@ paths:
format: binary
delete:
tags:
- person
- face identification
summary: Delete image of person
operationId: delete_image_of_person
parameters:
Expand All @@ -181,7 +181,7 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
get:
tags:
- person
- face identification
summary: Get person groups
operationId: get_all_groups_by_person_id
parameters:
Expand Down
4 changes: 2 additions & 2 deletions search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ paths:
- $ref: './common.yml#/components/parameters/x-request'
post:
tags:
- search
summary: Find person by image in groups.
- face identification
summary: Find person by image in groups
operationId: search
requestBody:
required: true
Expand Down