-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cogs Face] Align with latest released version of Face API with milli…
…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
Showing
47 changed files
with
1,860 additions
and
68 deletions.
There are no files selected for viewing
1,352 changes: 1,289 additions & 63 deletions
1,352
specification/cognitiveservices/data-plane/Face/stable/v1.0/Face.json
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...ognitiveservices/data-plane/Face/stable/v1.0/examples/AddLargeFaceListFaceFromStream.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...n/cognitiveservices/data-plane/Face/stable/v1.0/examples/AddLargeFaceListFaceFromUrl.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ervices/data-plane/Face/stable/v1.0/examples/AddLargePersonGroupPersonFaceFromStream.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...veservices/data-plane/Face/stable/v1.0/examples/AddLargePersonGroupPersonFaceFromUrl.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
...cation/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargeFaceList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "" | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ion/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargePersonGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "" | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...gnitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargePersonGroupPerson.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
...ification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "" | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ation/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceListFace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "" | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...cation/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "" | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPerson.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...nitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPersonFace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/GetLargeFaceList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...cognitiveservices/data-plane/Face/stable/v1.0/examples/GetLargeFaceListPersistedFace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ognitiveservices/data-plane/Face/stable/v1.0/examples/GetLargeFaceListTrainingStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ification/cognitiveservices/data-plane/Face/stable/v1.0/examples/GetLargePersonGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...nitiveservices/data-plane/Face/stable/v1.0/examples/GetLargePersonGroupPersistedFace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ion/cognitiveservices/data-plane/Face/stable/v1.0/examples/GetLargePersonGroupPerson.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...itiveservices/data-plane/Face/stable/v1.0/examples/GetLargePersonGroupTrainingStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.