Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
150 changes: 123 additions & 27 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
Expand Up @@ -6,7 +6,8 @@
"faceListId": "sample_face_list",
"body": {
"name": "sample_list",
"userData": "User-provided data attached to the face list"
"userData": "User-provided data attached to the face list.",
"recognitionModel": "recognition_01"
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"largeFaceListId": "sample_face_list",
"body": {
"name": "large-face-list-name",
"userData": "User-provided data attached to the large face list."
"userData": "User-provided data attached to the large face list.",
"recognitionModel": "recognition_01"
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"largePersonGroupId": "abc",
"body": {
"name": "large-person-group-name",
"userData": "User-provided data attached to the large person group."
"userData": "User-provided data attached to the large person group.",
"recognitionModel": "recognition_01"
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personGroupId": "abc",
"body": {
"name": "group1",
"userData": "user-provided data attached to the person group"
"userData": "user-provided data attached to the person group.",
"recognitionModel": "recognition_01"
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
"exposure",
"noise"
],
"Image": "{Image binary in base 64 format}"
"Image": "{Image binary in base 64 format}",
"recognitionModel": "recognition_01",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": [
{
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426",
"recognitionModel": "recognition_01",
"faceRectangle": {
"width": 78,
"height": 78,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
"exposure",
"noise"
],
"ImageUrl": "{Image Url here}"
"ImageUrl": "{Image Url here}",
"recognitionModel": "recognition_01",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": [
{
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426",
"recognitionModel": "recognition_01",
"faceRectangle": {
"width": 78,
"height": 78,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"faceListId": "sample_face_list"
"faceListId": "sample_face_list",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": {
"faceListId": "sample_list",
"name": "list1",
"userData": "User-provided data attached to the face list",
"userData": "User-provided data attached to the face list.",
"recognitionModel": "recognition_01",
"persistedFaces": [
{
"persistedFaceId": "B8D802CF-DD8F-4E61-B15C-9E6C5844CCBD",
"userData": "User-provided data attached to the face"
"userData": "User-provided data attached to the face."
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largeFaceListId": "f92f6f1b-3258-4444-8fa2-c2df505cc7ac"
"largeFaceListId": "f92f6f1b-3258-4444-8fa2-c2df505cc7ac",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": {
"largeFaceListId": "f92f6f1b-3258-4444-8fa2-c2df505cc7ac",
"name": "large-face-list-name",
"userData": "User-provided data attached to the large face list."
"userData": "User-provided data attached to the large face list.",
"recognitionModel": "recognition_01"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"largePersonGroupId": "abc"
"largePersonGroupId": "abc",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": {
"largePersonGroupId": "d408cb4e-2f5f-4b4d-b99e-f0b72870e5b5",
"name": "large-person-group-name",
"userData": "User-provided data attached to the large person group."
"userData": "User-provided data attached to the large person group.",
"recognitionModel": "recognition_01"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"b64d5e15-8257-4af2-b20a-5a750f8940e7"
],
"name": "person-name",
"userData": "User-provided data attached to the person"
"userData": "User-provided data attached to the person."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
"Endpoint": "{Endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"personGroupId": "abc"
"personGroupId": "abc",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": {
"personGroupId": "sample_group",
"name": "group1",
"userData": "User-provided data attached to the person group"
"userData": "User-provided data attached to the person group.",
"recognitionModel": "recognition_01"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"b64d5e15-8257-4af2-b20a-5a750f8940e7"
],
"name": "Ryan",
"userData": "User-provided data attached to the person"
"userData": "User-provided data attached to the person."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}"
"Ocp-Apim-Subscription-Key": "{API key}",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": [
{
"faceListId": "sample_face_list",
"name": "list1",
"userData": "User-provided data attached to the face list"
"userData": "User-provided data attached to the face list.",
"recognitionModel": "recognition_01"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}"
"Ocp-Apim-Subscription-Key": "{API key}",
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": [
{
"largeFaceListId": "f92f6f1b-3258-4444-8fa2-c2df505cc7ac",
"name": "large-face-list-name1",
"userData": "User-provided data attached to the large face list."
"userData": "User-provided data attached to the large face list.",
"recognitionModel": "recognition_01"
},
{
"largeFaceListId": "c76f7f13-0ed3-4d00-8a3e-2ad3d78f6c37",
"name": "large-face-list-name2",
"userData": "User-provided data attached to the large face list."
"userData": "User-provided data attached to the large face list.",
"recognitionModel": "recognition_01"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
"name": "person-name1",
"userData": "User-provided data attached to the person",
"userData": "User-provided data attached to the person.",
"persistedFaceIds": [
"015839fb-fbd9-4f79-ace9-7675fc2f1dd9",
"fce92aed-d578-4d2e-8114-068f8af4492e",
Expand All @@ -23,7 +23,7 @@
{
"personId": "2ae4935b-9659-44c3-977f-61fac20d0538",
"name": "person-name2",
"userData": "User-provided data attached to the person",
"userData": "User-provided data attached to the person.",
"persistedFaceIds": [
"30ea1073-cc9e-4652-b1e3-d08fb7b95315",
"fbd2a038-dbff-452c-8e79-2ee81b1aa84e"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"start": "sample_group",
"top": 2
"top": 2,
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": [
{
"largePersonGroupId": "f92f6f1b-3258-4444-8fa2-c2df505cc7ac",
"name": "large-person-group-name1",
"userData": "User-provided data attached to the large person group"
"userData": "User-provided data attached to the large person group.",
"recognitionModel": "recognition_01"
},
{
"largePersonGroupId": "c76f7f13-0ed3-4d00-8a3e-2ad3d78f6c37",
"name": "large-person-group-name2",
"userData": "User-provided data attached to the large person group"
"userData": "User-provided data attached to the large person group.",
"recognitionModel": "recognition_01"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"start": "sample_group",
"top": 2
"top": 2,
"returnRecognitionModel": true
},
"responses": {
"200": {
"body": [
{
"personGroupId": "sample_group",
"name": "group1",
"userData": "User-provided data attached to the person group"
"userData": "User-provided data attached to the person group.",
"recognitionModel": "recognition_01"
},
{
"personGroupId": "sample_group2",
"name": "group2",
"userData": "User-provided data attached to the person group"
"userData": "User-provided data attached to the person group.",
"recognitionModel": "recognition_01"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"largePersonGroupId": "abc",
"body": {
"name": "group1",
"userData": "user-provided data attached to the large person group"
"userData": "user-provided data attached to the large person group."
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"personGroupId": "abc",
"body": {
"name": "group1",
"userData": "user-provided data attached to the person group"
"userData": "user-provided data attached to the person group."
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
"persistedFaceId": "62004fa7-1ac0-478e-9d5a-b38f9e7fbc68",
"body": {
"userData": "User-provided data attached to the face"
"userData": "User-provided data attached to the face."
}
},
"responses": {
Expand Down