Пример #1
0
 /// <summary>
 /// Accepts the name of a visitor. Removes them from whitelist.
 /// </summary>
 public async static void RemoveUserFromWhitelist(string name)
 {
     // Acquires instance of Oxford SDK controller
     FaceApiRecognizer sdkController = FaceApiRecognizer.Instance;
     // Asynchronously remove user from whitelist
     await sdkController.RemovePersonFromWhitelistAsync(name);
 }
Пример #2
0
 /// <summary>
 /// Accepts the name of a visitor. Removes them from whitelist.
 /// </summary>
 public async static void RemoveUserFromWhitelist(string name)
 {
     try
     {
         // Acquires instance of Oxford SDK controller
         FaceApiRecognizer sdkController = FaceApiRecognizer.Instance;
         // Asynchronously remove user from whitelist
         await sdkController.RemovePersonFromWhitelistAsync(name);
     }
     catch (Exception)
     {
         Debug.WriteLine("Fail to deleted user");
     }
 }