Beispiel #1
0
        public Task TrainPersonGroup(string mPersonGroupId)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                faceServiceClient.TrainPersonGroup(mPersonGroupId);
            }));
        }
Beispiel #2
0
        public Task DeletePersonFace(string mPersonGroupId, UUID mPersonId, UUID mFaceId)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                faceServiceClient.DeletePersonFace(mPersonGroupId, mPersonId, mFaceId);
            }));
        }
Beispiel #3
0
        public Task <VerifyResult> Verify(UUID mFaceId, String mPersonGroupId, UUID mPersonId)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                return faceServiceClient.Verify(mFaceId, mPersonGroupId, mPersonId);
            }));
        }
Beispiel #4
0
        public Task CreatePersonGroup(string mPersonGroupId, string name, string userData)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                faceServiceClient.CreatePersonGroup(mPersonGroupId, name, userData);
            }));
        }
Beispiel #5
0
        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);
            }));
        }
Beispiel #6
0
        public Task <VerifyResult> Verify(UUID mFaceId0, UUID mFaceId1)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                return faceServiceClient.Verify(mFaceId0, mFaceId1);
            }));
        }
Beispiel #7
0
        public Task <IdentifyResult[]> Identity(string mPersonGroupId, UUID[] mFaceIds, int maxNumOfCandidatesReturned)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                return faceServiceClient.Identity(mPersonGroupId, mFaceIds, maxNumOfCandidatesReturned);
            }));
        }
Beispiel #8
0
        public Task <TrainingStatus> GetPersonGroupTrainingStatus(string mPersonGroupId)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                return faceServiceClient.GetPersonGroupTrainingStatus(mPersonGroupId);
            }));
        }
Beispiel #9
0
        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);
            }));
        }
Beispiel #10
0
        public Task <GroupResult> Group(UUID[] mFaceIds)
        {
            var faceServiceClient = StartupApp.GetFaceServiceClient();

            return(Task.Run(() =>
            {
                return faceServiceClient.Group(mFaceIds);
            }));
        }
Beispiel #11
0
        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);
            }));
        }
Beispiel #12
0
        /// <summary>
        /// set to start app with windows
        /// </summary>
        private void Startup()
        {
            StartupApp startupApp = new StartupApp();

            if (!startupApp.StartWithWindows)
            {
                startupApp.SetStartup();
            }

            startupApp.RemoveStartWithWindows();

            startupApp.CloseRegistry();
        }