Azure-Samples / Azure-Samples/cognitive-services-quickstart-code
MacOS&FaceAPI:azure.cognitiveservices.vision.face.models._models_py3.APIErrorException: (InvalidRequest) Invalid request has been sent.
- 主要语言
- Jupyter Notebook
- 星标
- 389
- 派生
- 556
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 1
描述
I am trying to run the Azure Cognitive Services Face API Quickstart code using the GitHub code provided by Microsoft. However, I am running into an error while running the code. Specifically, the error occurs in the following line of code:
`detected_faces = face_client.face.detect_with_url(url=single_face_image_url, detection_model='detection_03')`
The error message that I am getting is as follows:
`azure.cognitiveservices.vision.face.models._models_py3.APIErrorException: (InvalidRequest) Invalid request has been sent.`
I have checked my API key and endpoint, and they are correct. I have also checked the request parameters and format, and they seem to be correct as well.
Can someone please help me understand what could be causing this error, and how to fix it?
贡献指南
调研方向
未指定 repository 文件或测试。首先使用报告中的 URL 和参数,在 face_client.face.detect_with_url(...) 处重现 Quickstart 请求,然后将请求和 API 响应与 Face API 文档进行比较。完成标准是确定 InvalidRequest 的原因,并在 Quickstart 中记录或应用相应的修正。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, python
- 领域
- api, cloud, computer-vision
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100