gpt4 book ai didi

api - 微软计算机视觉API手写

转载 作者:行者123 更新时间:2023-12-02 08:06:09 28 4
gpt4 key购买 nike

我正在尝试使用 Microsoft 的计算机视觉 API 服务来检测手写并将其转换为机器可读的文本。但是,当我在提供 API key 后在他们的网站上测试此服务时,它只返回 header 202 Accepted,而不返回任何结果。如果我将参数手写切换为 false,它会返回 header 200,但结果不可读。

这是我测试他们的服务的地方: https://westus.dev.cognitive.microsoft.com/docs/services/56f91f2d778daf23d8ec6739/operations/587f2c6a154055056008f200/console

只需添加您的 API key ,将手写体更改为 true 并包含任何有手写体的图片。

最佳答案

只需遵循 202 响应中返回的 Operation-Location header 即可。

例如

$ curl https://westus.api.cognitive.microsoft.com/vision/v1.0/textOperations/2bd07b09-f7da-4028-aad1-afd239303722 \
-H "Ocp-Apim-Subscription-Key: COMPUTER_VISION_API_KEY"
{
"status": "Succeeded",
"recognitionResult": {
"lines": [
{
"boundingBox": [
0,
316,
276,
321,
275,
368,
0,
363
],
"text": "unlikely on my terms.",
...
"text": "writer My real dream is to live and work",
...
"text": "to be a freelance illustrator or a freelance",
...

输入图像:

handwriting sample

来自https://learn.microsoft.com/en-us/azure/cognitive-services/computer-vision/faq :

Question: How long does the handwriting recognition operation take?

Answer: The amount of time that it takes depends on the length of the text. For longer texts, it can take up to several seconds. Therefore, after the Recognize Handwritten Text operation completes, you may need to wait before you can retrieve the results using the Get Handwritten Text Operation Result operation.

关于api - 微软计算机视觉API手写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43579154/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com