首页 > 解决方案 > 云视觉 API 对 OCR 的 JSON 响应的付费版本中缺少“信心”字段

问题描述

来自免费版 Vision API ( https://cloud.google.com/vision/docs/drag-and-drop ) 的 JSON 响应具有名为“Confidence”的字段,它显示了模型在单词级别上的识别置信度和人物等级。在付费版本中,此字段缺失。JSON 示例如下。

拖放输出 JSON 结构:

{
    "boundingBox": {
        "vertices": [
            {
                "x": 85,
                "y": 7
            },
            {
                "x": 92,
                "y": 7
            },
            {
                "x": 92,
                "y": 26
            },
            {
                "x": 85,
                "y": 26
            }
        ]
        },
    "text": "abc xyz",
    "confidence": 0.99
}

付费版输出结构:

{
    "description": "abc xyz", 
    "boundingPoly": {
        "vertices": [ 
            {"y": 437, "x": 2108}, 
            {"y": 437, "x": 2194}, 
            {"y": 453, "x": 2194}, 
            {"y": 453, "x": 2108}]
    }
}

此功能是否处于测试阶段,任何付费用户都无法使用?我想使用人物级别模型的信心,我该如何使用?

标签: google-cloud-mlgoogle-cloud-visionvision-api

解决方案


对于 text_detection,目前没有字符级别的置信度,因为它使用与 document_text_detection 不同的模型。


推荐阅读