Exemple #1
0
        public FaceRecognizer(string subscriptionKey, AzureRegions region, string personGroupId)
        {
            this.faceAPI             = new FaceAPI(new ApiKeyServiceClientCredentials(subscriptionKey));
            this.faceAPI.AzureRegion = region;

            this.personGroupId = personGroupId;
        }
Exemple #2
0
 public FaceLogic(IFaceAPI faceAPI,
                  IResponseHelper responseHelper)
 {
     _faceAPI        = faceAPI;
     _responseHelper = responseHelper;
 }
 new void Awake()
 {
     base.Awake();
     _faceAPI           = CognitiveServicesServiceFactory.Instance.GetFaceAPI(APIKey);
     _faceAPI.OnDetect += _faceAPI_OnDetect;
 }