百度云-文字识别
连接器

百度云-文字识别

连接器

需两次购买:①订购原厂商接口 ②免费接口,注册后直接调用;覆盖多种通用场景、多种语言的高精度整图文字检测和识别服务,包括各类印刷和手写文档、网络图片、表格、数字、二维码等;可用于纸质文档电子化、办公文档/报表识别、图像内容审核、快递面单识别等场景。

免费本接口注册后默认可免费调用,为防止滥用设有使用档次限制。
了解积分与档位详情 ›

权益档次可使用平台积分兑换更高调用档位,多种积分获取方式请查看积分与档位详情。

护照识别
接入点说明
支持对中国大陆护照个人资料页所有11个字段进行结构化识别,包括国家码、护照号、姓名、姓名拼音、性别、出生地点、出生日期、签发地点、签发日期、有效期、签发机关。原接口订购地址:https://cloud.baidu.com/product/ocr_cards
接口地址
https://connector.showapi.com/2568-13?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST
案例截图
案例
请求参数
Header 参数
Post 表单
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://connector.showapi.com/2568-13?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -d "ds_id=&image=&url=https%3A%2F%2Fshowapi.oss-cn-hangzhou.aliyuncs.com%2Fmodleapi%2Flzh%2Fpassport.jpeg"
返回示例
JSON
{   "log_id": 1291777459,
    "words_result": {
        "国家码": {
            "location": {
                "left": 231,
                "top": -64,
                "width": 51,
                "height": 70
            },
            "words": "CHN"
        },
        "姓名": {
            "location": {
                "left": 234,
                "top": 26,
                "width": 29,
                "height": 16
            },
            "words": "袁运筹"
        },
        "性别": {
            "location": {
                "left": 139,
                "top": 57,
                "width": 53,
                "height": 50
            },
            "words": "男/M"
        },
        "生日": {
            "location": {
                "left": 321,
                "top": 134,
                "width": 35,
                "height": 14
            },
            "words": "24NOV1990"
        },
        "护照签发地点": {
            "location": {
                "left": 165,
                "top": 206,
                "width": 78,
                "height": 15
            },
            "words": "福建/FUJIAN"
        },
        "有效期至": {
            "location": {
                "left": 321,
                "top": 215,
                "width": 30,
                "height": 14
            },
            "words": "078月/AUG2024"
        },
        "护照号码": {
            "location": {
                "left": 326,
                "top": 33,
                "width": 12,
                "height": 14
            },
            "words": "E21202282"
        },
        "签发日期": {
            "location": {
                "left": 324,
                "top": 181,
                "width": 45,
                "height": 15
            },
            "words": "08月/AUG2014"
        },
        "姓名拼音": {
            "location": {
                "left": 142,
                "top": 18,
                "width": 112,
                "height": 54
            },
            "words": "SC"
        },
        "出生地点": {
            "location": {
                "left": 648,
                "top": 599,
                "width": 349,
                "height": 115
            },
            "words": "江苏/JIANGSU"
        }
    },
    "words_result_num": 10}
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-2568": {
      "url": "http://www.showapi.com.cn/mcp/2568/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。