Skip to content

Instantly share code, notes, and snippets.

@a9595776
Created July 22, 2016 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a9595776/7b8a20886534f9cf596464f7b67d6219 to your computer and use it in GitHub Desktop.
Save a9595776/7b8a20886534f9cf596464f7b67d6219 to your computer and use it in GitHub Desktop.
faceServiceClient = new FaceServiceClient(subscriptionKey);
//取得所有Group
PersonGroup[] pg = await faceServiceClient.GetPersonGroupsAsync();
//計算所有Group人數
int totalCOunt = 0;
for(int i=0;i<pg.Length;i++)
{
ClientContract.Person[] p =await faceServiceClient.GetPersonsAsync(pg[i].PersonGroupId.ToString());
Console.WriteLine("人數="+ p.Length.ToString());
totalCOunt += p.Length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment