microsoft / Cognitive-Face-Windows

Windows SDK for the Microsoft Face API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/face-api
Other
177 stars 161 forks source link

Cognitive services URL should be configurable #33

Closed gzepeda closed 7 years ago

gzepeda commented 7 years ago

I was testing the WPF to see some sample code for a Xamarin App and I could not get my API key working. I noticed the different regions you could use and I saw on the Face Detection DLL (Microsoft.ProjectOxford.Face) you have the URL hardcoded on the file FaceServiceClient.cs.

I had to recreate the service on Azure and put it on westus to get the WPF app working.

It would be nice that this parameter could be configurable from the client.

huxuan commented 7 years ago

@gzepeda For SDK, there are two kinds of initialization for FaceServiceClient and the other one supports endpoint configuration. Please refer to the code here [1]. For the WPF sample, we are already working on that, please be a little bit patient. You may refer to some progress here [2].

[1] https://github.com/Microsoft/Cognitive-Face-Windows/blob/1.3.0/ClientLibrary/FaceServiceClient.cs#L176 [2] https://github.com/Microsoft/Cognitive-Common-Windows/pull/8

gzepeda commented 7 years ago

Thanks for the quick reply. I will use the other initialization method for the Xamarin App.

huxuan commented 7 years ago

Close as problem resolved.