Created
July 22, 2016 04:33
-
-
Save a9595776/7b8a20886534f9cf596464f7b67d6219 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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