百度云-文字识别
连接器

百度云-文字识别

连接器

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

会员资源包统一计费,无需单独购买,开通会员包后可直接调用。
公式识别
接入点说明
支持对试卷中的数学公式及题目内容进行识别,可提取公式部分进行单独识别,也可对题目和公式进行混合识别,并返回Latex格式公式内容及位置信息,便于进行后续处理。原接口订购地址:https://cloud.baidu.com/product/ocr_education
接口地址
https://connector.showapi.com/2568-33?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST
案例截图
案例
请求参数
Header 参数
Post 表单
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://connector.showapi.com/2568-33?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%2Fformula.jpg&detect_direction=&recognize_granularity=&disp_formula=true"
返回示例
JSON
{
  "showapi_res_error": "",
  "showapi_res_code": 0,
  "showapi_res_id": "6030b7728d57bad81fbd730d",
  "showapi_res_body": {
    "ret_code": 0,
    "formula_result": [
      {
        "words": "\\left( a + b \\right) \\left( a - b \\right) = a ^ { 2 } - b ^ { 2 }  ",
        "location": {
          "height": 72,
          "width": 404,
          "left": 49,
          "top": 37
        }
      },
      {
        "words": "\\left( a \\pm b \\right) ^ { 2 } = a ^ { 2 } \\pm 2 a b + b ^ { 2 }  ",
        "location": {
          "height": 74,
          "width": 384,
          "left": 48,
          "top": 166
        }
      },
      {
        "words": "\\left( a + b \\right) \\left( a ^ { 2 } - a b + b ^ { 2 } \\right) = a ^ { 3 } + b ^ { 3 }  ",
        "location": {
          "height": 76,
          "width": 535,
          "left": 50,
          "top": 296
        }
      },
      {
        "words": "\\left( a - b \\right) \\left( a ^ { 2 } + a b + b ^ { 2 } \\right) = a ^ { 3 } - b ^ { 3 }  ",
        "location": {
          "height": 75,
          "width": 532,
          "left": 51,
          "top": 427
        }
      },
      {
        "words": "a ^ { 2 } + b ^ { 2 } =  ",
        "location": {
          "height": 67,
          "width": 172,
          "left": 626,
          "top": 428
        }
      },
      {
        "words": "\\left( a + b \\right) ^ { 2 } - 2 a b  ",
        "location": {
          "height": 71,
          "width": 246,
          "left": 7,
          "top": 518
        }
      },
      {
        "words": "\\left( a - b \\right) ^ { 2 } = \\left( a + b \\right) ^ { 2 } - 4 a b  ",
        "location": {
          "height": 74,
          "width": 427,
          "left": 297,
          "top": 516
        }
      }
    ],
    "formula_result_num": 7,
    "words_result": [
      {
        "words": "① \\left( a + b \\right) \\left( a - b \\right) = a ^ { 2 } - b ^ { 2 }  ;",
        "location": {
          "height": 62,
          "width": 478,
          "left": 0,
          "top": 43
        }
      },
      {
        "words": "② \\left( a \\pm b \\right) ^ { 2 } = a ^ { 2 } \\pm 2 a b + b ^ { 2 }  ;",
        "location": {
          "height": 63,
          "width": 455,
          "left": 0,
          "top": 172
        }
      },
      {
        "words": "③ \\left( a + b \\right) \\left( a ^ { 2 } - a b + b ^ { 2 } \\right) = a ^ { 3 } + b ^ { 3 }  ;",
        "location": {
          "height": 68,
          "width": 612,
          "left": 0,
          "top": 300
        }
      },
      {
        "words": "④ \\left( a - b \\right) \\left( a ^ { 2 } + a b + b ^ { 2 } \\right) = a ^ { 3 } - b ^ { 3 }  ; a ^ { 2 } + b ^ { 2 } = ",
        "location": {
          "height": 73,
          "width": 798,
          "left": 0,
          "top": 427
        }
      },
      {
        "words": "\\left( a + b \\right) ^ { 2 } - 2 a b  ; \\left( a - b \\right) ^ { 2 } = \\left( a + b \\right) ^ { 2 } - 4 a b ",
        "location": {
          "height": 62,
          "width": 717,
          "left": 7,
          "top": 523
        }
      }
    ],
    "words_result_num": 5,
    "log_id": 587011153140088400
  }
}
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 直接消费。