public FaceRecognizer(string subscriptionKey, AzureRegions region, string personGroupId) { this.faceAPI = new FaceAPI(new ApiKeyServiceClientCredentials(subscriptionKey)); this.faceAPI.AzureRegion = region; this.personGroupId = personGroupId; }
public FaceLogic(IFaceAPI faceAPI, IResponseHelper responseHelper) { _faceAPI = faceAPI; _responseHelper = responseHelper; }
new void Awake() { base.Awake(); _faceAPI = CognitiveServicesServiceFactory.Instance.GetFaceAPI(APIKey); _faceAPI.OnDetect += _faceAPI_OnDetect; }