Skip to content

Commit

Permalink
Merged PR 936: Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Clarke committed Aug 7, 2019
2 parents ec582e0 + b80a18a commit 367a6d4
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions docs/source/api/index.rst
Expand Up @@ -745,7 +745,7 @@ Search

:<json string probe: Base64 encoded image.
:<json int threshold: Optional score threshold, ranges from 0 to 9999, default is 7000.
:<json int limit: Optional limit, ranges from 1 to 50, default is 10.
:<json int limit: Optional limit of total events returned, ranges from 1 to 50, default is 10.
:<json array tags: Option list of tag names to refine the search against, using OR to filter subjects.
:reqheader Host: api.id.nec.com.au
:reqheader Accept: application/json
Expand Down Expand Up @@ -777,16 +777,6 @@ Search
}
]
},
{
"id": "necidguid-ad57-465b-b538-71b6c9b02447",
"score": 8000,
"events": [
{
"id": "eventguid-37f4-4bd9-9d64-27ed466bdb78"
"score": 8000
}
]
},
{
"id": "necidguid-0d05-4052-a44f-83f6b243e70b",
"score": 7600,
Expand Down Expand Up @@ -828,7 +818,7 @@ Search
}
}

:>json array candidates: Containing **id** *(string)*: Subject id and **score** *(int)*: Match score.
:>json array candidates: Containing **id** *(string)*: Subject id, **score** *(int)*: Highest match score and **event** *(array)*: Containing **id** *(string)*: Event id and **score** *(int)*: Match score.
:>json attributes: See `Face Attributes`_.
:resheader Content-Type: application/json
:status 200: Candidates found.
Expand All @@ -839,7 +829,7 @@ Verify

.. http:post:: /v1.1/face/verify
Verify a subject against a probe.
Verify a subject, and their one or more events, against a probe.

**Example request**:

Expand Down Expand Up @@ -880,7 +870,7 @@ Verify
}

:>json string id: Subject id.
:>json int score: Match score.
:>json int score: Match score of the subject's hightest scoring event.
:resheader Content-Type: application/json
:status 200: Subject verified.
:status 404: Subject not verified.
Expand Down Expand Up @@ -1783,6 +1773,7 @@ Type Code Description
============== ==== =======================================================================================
InvalidRequest 1001 Request is invalid, possible missing parameters.
Duplicate 1002 Duplicate request, identifier in message.
Timeout 1003 Request timed out.
NoFace 2001 No face was found in the provided image.
PoorQuality 2002 The overall ``faceQualityScore`` was too low to process.
MultipleFaces 2003 Multiple faces were found in the image. Only one is permitted for this type of request.
Expand Down

0 comments on commit 367a6d4

Please sign in to comment.