Skip to content

Commit

Permalink
Merge pull request #39 from regulaforensics/fix_match_and_response
Browse files Browse the repository at this point in the history
[HotFix] Match and Search request specifications
  • Loading branch information
dangost committed Dec 2, 2022
2 parents b5f1243 + d54da0f commit 5892849
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions match_and_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ components:
- $ref: './common.yml#/components/schemas/FaceSDKResult'
- type: object
properties:
results:
type: array
items:
$ref: './matching.yml#/components/schemas/MatchImageResult'
elapsedTime:
type: float
example: 1.317137987
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes."
detections:
type: array
items:
Expand All @@ -53,30 +64,11 @@ components:
faces:
type: array
items:
allOf:
- $ref: './matching.yml#/components/schemas/DetectionFace'
- type: object
properties:
persons:
type: array
items:
$ref: '#/components/schemas/PersonWithImages'
rotationAngle:
type: float
example: 2.1272900104522705
$ref: '#/components/schemas/FacesResponse'
imageIndex:
$ref: './matching.yml#/components/schemas/MatchImageIndex'
status:
$ref: './common.yml#/components/schemas/FaceSDKResultCode'
results:
$ref: './matching.yml#/components/schemas/MatchImageResult'
elapsedTime:
type: float
example: 1.317137987
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes."
PersonWithImages:
allOf:
- type: object
Expand All @@ -86,3 +78,16 @@ components:
items:
$ref: './search.yml#/definitions/RecognizeImage'
- $ref: './identification.yml#/components/schemas/Person'

FacesResponse:
allOf:
- $ref: './matching.yml#/components/schemas/DetectionFace'
- type: object
properties:
persons:
type: array
items:
$ref: '#/components/schemas/PersonWithImages'
rotationAngle:
type: float
example: 2.1272900104522705

0 comments on commit 5892849

Please sign in to comment.