你能告诉我为什么在 Android 中显示消息“Resource not found”Microsoft Cognitive Face API?

问题描述

我遇到了问题,我只是下载此代码 https://github.com/microsoft/Cognitive-Face-Android 并执行此页面的所有步骤。但是我的应用在检测和其他功能显示消息“找不到资源”。

enter image description here

enter image description here

enter image description here

在我的 azure 门户中,我创建了 Subscription、Group、Face API,我收到了这张图片中的 key 和 Endpoint。

enter image description here

在我的 Android Studio 中,我将 key 和 endpoint 放在这个 string.xml 中

enter image description here

在我的 gradle 应用中。

为什么这个应用程序显示消息“找不到资源”?

但我住在东南亚。

谢谢

解决方法

你需要有方法的端点,例如,

如果需要检测人脸,需要在uri中添加“/detect”

https://tana29testface1.cognitiveservices.azure.com/face/v1.0/detect