/// <summary>
        /// Checks to see if a whitelisted visitor is in passed through image. Returns list of whitelisted visitors. If no authorized users are detected, returns an empty list.
        /// </summary>
        public async static Task <List <string> > IsFaceInWhitelist(StorageFile image)
        {
            FaceApiRecognizer sdkController = FaceApiRecognizer.Instance;
            List <string>     matchedImages = await sdkController.FaceRecognizeAsync(image);

            return(matchedImages);
        }
示例#2
0
        /// <summary>
        /// Checks to see if a whitelisted visitor is in passed through image. Returns list of whitelisted visitors. If no authorized users are detected, returns an empty list.
        /// </summary>
        public async static Task <Dictionary <HSFace, HSPerson> > IsFaceInWhitelist(StorageFile image)
        {
            FaceApiRecognizer sdkController = FaceApiRecognizer.Instance;

            return(await sdkController.FaceRecognizeAsync(image));

            /* List<string> matchedImages = new List<string>();
             * matchedImages = await sdkController.FaceRecognizeAsync(image);
             *
             * return matchedImages;*/
        }