百度云-图像技术
连接器

百度云-图像技术

连接器

需两次购买:①订购原厂商接口 ②订购易源会员包代理转发;支持图像识别的多个接口:通用物体和场景识别、图像单主体检测、动物识别、植物识别、logo识别-检索、果蔬识别、自定义菜品识别-检索、菜品识别、红酒识别、货币识别、地标识别、图像多主体检测等12个模型服务的调用。

会员资源包统一计费,无需单独购买,开通会员包后可直接调用。
车辆检测
接入点说明
传入单帧图像,检测图片中所有机动车辆,返回每辆车的类型和坐标位置,可识别小汽车、卡车、巴士、摩托车、三轮车5大类车辆,并对每类车辆分别计数,可返回含有统计值和检测框的渲染结果图,支持指定不规则区域的车辆统计。
接口地址
https://connector.showapi.com/2572-30?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST
请求参数
Header 参数
Post 表单
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://connector.showapi.com/2572-30?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%2Ftesla.jpg&area="
返回示例
JSON
{
  "showapi_res_error": "",
  "showapi_res_code": 0,
  "showapi_res_id": "6035f6428d57bad71ffbaee9",
  "showapi_res_body": {
    "ret_code": 0,
    "vehicle_info": [
      {
        "location": {
          "height": 136,
          "width": 154,
          "left": 93,
          "top": 252
        },
        "probability": 0.97649384,
        "type": "truck"
      },
      {
        "location": {
          "height": 21,
          "width": 32,
          "left": 508,
          "top": 276
        },
        "probability": 0.9635522,
        "type": "car"
      },
      {
        "location": {
          "height": 30,
          "width": 57,
          "left": 582,
          "top": 299
        },
        "probability": 0.45782405,
        "type": "truck"
      },
      {
        "location": {
          "height": 16,
          "width": 16,
          "left": 436,
          "top": 244
        },
        "probability": 0.90895236,
        "type": "car"
      },
      {
        "location": {
          "height": 31,
          "width": 56,
          "left": 583,
          "top": 300
        },
        "probability": 0.7463352,
        "type": "car"
      }
    ],
    "log_id": 1364466703739650000,
    "vehicle_num": {
      "car": 3,
      "tricycle": 0,
      "carplate": 0,
      "bus": 0,
      "motorbike": 0,
      "truck": 2
    }
  }
}
MCP 服务集成接口级

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

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

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