百度云-文字识别
连接器

百度云-文字识别

连接器

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

免费接口,注册即用,无需单独购买。
通用文字识别(高精含位置信息版)
接入点说明
用户向服务请求识别某张图中的所有文字,并返回文字在图中的位置信息。原接口订购地址:https://cloud.baidu.com/product/ocr_general
接口地址
https://connector.showapi.com/2568-4?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST
案例截图
案例
请求参数
Header 参数
Post 表单
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://connector.showapi.com/2568-4?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%2F8235.jpeg&pdf_file=&pdf_file_num=&ofd_file=&ofd_file_num=&language_type=&eng_granularity=&recognize_granularity=&detect_direction=&vertexes_location=&paragraph=&probability="
返回示例
JSON
{
  "showapi_res_error": "",
  "showapi_res_code": 0,
  "showapi_res_id": "602392e58d57bad61fde4489",
  "showapi_res_body": {
    "ret_code": 0,
    "words_result": [
      {
        "words": "康傅蓝",
        "location": {
          "height": 410,
          "width": 978,
          "left": 295,
          "top": 244
        }
      },
      {
        "words": "椒",
        "location": {
          "height": 275,
          "width": 695,
          "left": 116,
          "top": 530
        }
      },
      {
        "words": " Pickled Pepper",
        "location": {
          "height": 55,
          "width": 239,
          "left": 249,
          "top": 801
        }
      },
      {
        "words": " Beef Noodle",
        "location": {
          "height": 36,
          "width": 179,
          "left": 256,
          "top": 844
        }
      },
      {
        "words": "牛肉面",
        "location": {
          "height": 209,
          "width": 557,
          "left": 520,
          "top": 810
        }
      },
      {
        "words": "清爽酸辣味",
        "location": {
          "height": 123,
          "width": 292,
          "left": 1004,
          "top": 1003
        }
      },
      {
        "words": "净含量:面饼104克(99克+5",
        "location": {
          "height": 79,
          "width": 318,
          "left": 242,
          "top": 1178
        }
      }
    ],
    "words_result_num": 7,
    "log_id": 2319478345493607400
  }
}
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 直接消费。