From 38f7c12f5126fff5cd0f57264655e0a435594a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Sat, 4 Feb 2017 13:19:09 +0100 Subject: [PATCH] Update microsoft_face.markdown (#1960) Curl needs `--data-binary` to reliably upload binary data. --- source/_components/microsoft_face.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_components/microsoft_face.markdown b/source/_components/microsoft_face.markdown index 7296a6f426f..02f001252cc 100644 --- a/source/_components/microsoft_face.markdown +++ b/source/_components/microsoft_face.markdown @@ -66,12 +66,12 @@ data: camera_entity: camera.door ``` -For the local image we need `curl`. The person ID is present in group entity as attribute. +For the local image we need `curl`. The `{personId}` is present in group entity as attribute. ```bash $ curl -v -X POST "https://westus.api.cognitive.microsoft.com/face/v1.0/persongroups/{GroupName}/persons/{personId}/persistedFaces" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ - -H "Content-Type: application/octet-stream" --data "@/tmp/image.jpg" + -H "Content-Type: application/octet-stream" --data-binary "@/tmp/image.jpg" ``` After we're done with changes on a group, we need train this group to teach the AI how to handle the new data.