Face-API:组中没有持久的人脸

时间:2016-10-25 09:47:08

标签: c# face-recognition microsoft-cognitive face-api

我正在使用ms github项目:面部识别门 Facial-Recognition-Door

private async Task<bool> TrainingWhitelistAsync()
    {
        bool isSuccess = true;

        // Train whitelist after add all person
        Debug.WriteLine("Start training whitelist: " + WhitelistId);
        await _faceApiClient.TrainPersonGroupAsync(WhitelistId);

        TrainingStatus status;


        while(true)
        {
            status = await _faceApiClient.GetPersonGroupTrainingStatusAsync(WhitelistId);

            // wait for training to complete
            if (status.Status != Status.Running)
            {
                Debug.WriteLine("GetPersonGroupTrainingStatusAsync stopped running:" + status.Message);
                if (status.Status == Status.Failed)
                {
                    isSuccess = false;
                }
                break;
            }

            await Task.Delay(1000);
            Debug.WriteLine("GetPersonGroupTrainingStatusAsync still running:" + status.Message);
        }

        Debug.WriteLine("GetPersonGroupTrainingStatusAsync end result: " + isSuccess);
        return isSuccess;
    }

每次我跑去的时候 status = await _faceApiClient.GetPersonGroupTrainingStatusAsync(WhitelistId);

它重新让我失败,并说GetPersonGroupTrainingStatusAsync停止运行:组f473519e-452b-4a65-8e11-85ccdb02063e中没有持久的人脸。

有什么不对或只是我使用免费密钥吗? my key screenshot

任何人都可以帮助我吗?

0 个答案:

没有答案