Skip to content

Commit

Permalink
[Cogs Face] Align with latest released version of Face API with milli…
Browse files Browse the repository at this point in the history
…on-scale features. (#3552)

* Add large person group management.

* Add large face list management.

* Nit

* Add find similar with large face list.

* Add identify with large person group.

* Add verify with large person group.

* Fix typo of training status.

* Add missing adding face to large face list & large person group.

* Add missing large face list face operations.

* Nit fix.

* Rebase and update master's endpoint changes to examples.

* Nit fix documentation.

* Nit path case refinement.

* Fix LargeFaceListFace_List to LargeFaceList_ListFaces and refine example naming.

* [Minor] Person_AddPersonFace to Person_AddFace.

* [Minor] Amend last commit of Person_AddPersonFace to Person_AddFace.
  • Loading branch information
lebronJ authored and annatisch committed Aug 1, 2018
1 parent 674c2ac commit 603513f
Show file tree
Hide file tree
Showing 47 changed files with 1,860 additions and 68 deletions.
1,352 changes: 1,289 additions & 63 deletions specification/cognitiveservices/data-plane/Face/stable/v1.0/Face.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/octet-stream",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "sample_face_list",
"userData": "{Customized user data}",
"targetFace": [
10,
10,
100,
100
],
"Image": "{Image stream in base 64 encoded format}"
},
"responses": {
"200": {
"body": {
"persistedFaceId": "B8D802CF-DD8F-4E61-B15C-9E6C5844CCBA"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "sample_face_list",
"userData": "{Customized user data}",
"targetFace": [
10,
10,
100,
100
],
"ImageUrl": "{Image url}"
},
"responses": {
"200": {
"body": {
"persistedFaceId": "B8D802CF-DD8F-4E61-B15C-9E6C5844CCBA"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/octet-stream",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"personId": "4caa25ee-3bc6-4e88-adf8-12455ce7aab0",
"userData": "{customized User data}",
"targetFace": [
10,
10,
100,
100
],
"Image": "{Image stream in base 64 encoded format}"
},
"responses": {
"200": {
"body": {
"persistedFaceId": "6e04c175-219e-42a2-9d26-0e7b790e1ef4"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"personId": "4caa25ee-3bc6-4e88-adf8-12455ce7aab0",
"userData": "{customized User data}",
"targetFace": [
10,
10,
100,
100
],
"ImageUrl": "{Image url}"
},
"responses": {
"200": {
"body": {
"persistedFaceId": "6e04c175-219e-42a2-9d26-0e7b790e1ef4"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "sample_face_list",
"body": {
"name": "large-face-list-name",
"userData": "User-provided data attached to the large face list."
}
},
"responses": {
"200": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"body": {
"name": "large-person-group-name",
"userData": "User-provided data attached to the large person group."
}
},
"responses": {
"200": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"body":{
"name": "mike",
"userData": "{additional data associated with mike}"
}
},
"responses": {
"200": {
"body": {
"personId": "4caa25ee-3bc6-4e88-adf8-12455ce7aab0"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "sample_face_list"
},
"responses": {
"200": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "sample_face_list",
"persistedFaceId":"62004fa7-1ac0-478e-9d5a-b38f9e7fbc68"
},
"responses": {
"200": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc"
},
"responses": {
"200": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1"
},
"responses": {
"200": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
"persistedFaceId":"62004fa7-1ac0-478e-9d5a-b38f9e7fbc68"
},
"responses": {
"200": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Ocp-Apim-Subscription-Key": "{API key}",
"body": {
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426",
"faceListId": "sample_list",
"largeFaceListId": "sample_list",
"maxNumOfCandidatesReturned": 1,
"mode": "matchPerson"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "f92f6f1b-3258-4444-8fa2-c2df505cc7ac"
},
"responses": {
"200": {
"body": {
"largeFaceListId": "f92f6f1b-3258-4444-8fa2-c2df505cc7ac",
"name": "large-face-list-name",
"userData": "User-provided data attached to the large face list."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "abc",
"persistedFaceId": "015839fb-fbd9-4f79-ace9-7675fc2f1dd9"
},
"responses": {
"200": {
"body": {
"persistedFaceId": "015839fb-fbd9-4f79-ace9-7675fc2f1dd9",
"userData": "User-provided data attached to the face."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "abc"
},
"responses": {
"200": {
"body": {
"status": "succeeded",
"createdDateTime": "2017-12-21T12:57:27.00Z",
"lastActionDateTime": "2017-12-21T12:57:30.00Z",
"lastSuccessfulTrainingDateTime": "2017-12-21T12:57:30.00Z",
"message": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc"
},
"responses": {
"200": {
"body": {
"largePersonGroupId": "d408cb4e-2f5f-4b4d-b99e-f0b72870e5b5",
"name": "large-person-group-name",
"userData": "User-provided data attached to the large person group."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"personId": "B8D802CF-DD8F-4E61-B15C-9E6C5844CCBA",
"persistedFaceId": "015839fb-fbd9-4f79-ace9-7675fc2f1dd9"
},
"responses": {
"200": {
"body": {
"persistedFaceId": "015839fb-fbd9-4f79-ace9-7675fc2f1dd9",
"userData": "User-provided data attached to the person face."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc",
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1"
},
"responses": {
"200": {
"body": {
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
"persistedFaceIds": [
"015839fb-fbd9-4f79-ace9-7675fc2f1dd9",
"fce92aed-d578-4d2e-8114-068f8af4492e",
"b64d5e15-8257-4af2-b20a-5a750f8940e7"
],
"name": "person-name",
"userData": "User-provided data attached to the person"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc"
},
"responses": {
"200": {
"body": {
"status": "succeeded",
"createdDateTime": "2017-12-21T12:57:27.00Z",
"lastActionDateTime": "2017-12-21T12:57:30.00Z",
"lastSuccessfulTrainingDateTime": "2017-12-21T12:57:30.00Z",
"message": null
}
}
}
}
Loading

0 comments on commit 603513f

Please sign in to comment.