public Task TrainPersonGroup(string mPersonGroupId) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { faceServiceClient.TrainPersonGroup(mPersonGroupId); })); }
public Task DeletePersonFace(string mPersonGroupId, UUID mPersonId, UUID mFaceId) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { faceServiceClient.DeletePersonFace(mPersonGroupId, mPersonId, mFaceId); })); }
public Task <VerifyResult> Verify(UUID mFaceId, String mPersonGroupId, UUID mPersonId) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.Verify(mFaceId, mPersonGroupId, mPersonId); })); }
public Task CreatePersonGroup(string mPersonGroupId, string name, string userData) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { faceServiceClient.CreatePersonGroup(mPersonGroupId, name, userData); })); }
public Task <Face[]> Detect(MemoryStream stream, bool returnFaceId, bool returnLandmarks, FaceServiceClientFaceAttributeType[] attributes) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.Detect(stream, true, true, attributes); })); }
public Task <VerifyResult> Verify(UUID mFaceId0, UUID mFaceId1) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.Verify(mFaceId0, mFaceId1); })); }
public Task <IdentifyResult[]> Identity(string mPersonGroupId, UUID[] mFaceIds, int maxNumOfCandidatesReturned) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.Identity(mPersonGroupId, mFaceIds, maxNumOfCandidatesReturned); })); }
public Task <TrainingStatus> GetPersonGroupTrainingStatus(string mPersonGroupId) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.GetPersonGroupTrainingStatus(mPersonGroupId); })); }
public Task <SimilarFace[]> FindSimilar(UUID mFaceId, UUID[] mFaceIds, int mMaxNumOfCandidatesReturned, FaceServiceClientFindSimilarMatchMode mMode) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.FindSimilar(mFaceId, mFaceIds, mMaxNumOfCandidatesReturned, mMode); })); }
public Task <GroupResult> Group(UUID[] mFaceIds) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.Group(mFaceIds); })); }
public Task <AddPersistedFaceResult> AddPersonFace(string mPersonGroupId, UUID mPersonId, Stream mImageStream, string userData, FaceRectangle targetFace) { var faceServiceClient = StartupApp.GetFaceServiceClient(); return(Task.Run(() => { return faceServiceClient.AddPersonFace(mPersonGroupId, mPersonId, mImageStream, userData, targetFace); })); }
/// <summary> /// set to start app with windows /// </summary> private void Startup() { StartupApp startupApp = new StartupApp(); if (!startupApp.StartWithWindows) { startupApp.SetStartup(); } startupApp.RemoveStartWithWindows(); startupApp.CloseRegistry(); }