Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cogs Face] Align with latest released version of Face API with million-scale features. #3552

Merged
merged 16 commits into from
Aug 1, 2018
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,348 changes: 1,287 additions & 61 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