{
  "openapi": "3.0.3",
  "info": {
    "title": "达摩院-目标检测",
    "description": "基于阿里云计算机视觉与深度学习技术，对通用或指定的目标进行检测、识别。可识别数十种车辆部件、位置以及名称等。广泛应用于安防、交通等行业内图像场景的目标检测与跟踪。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/2482-11": {
      "x-pointCode": 11,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "主体检测",
        "description": "对输入图片进行检测，输出主体定位信息。阿里原接口订购地址：https://vision.aliyun.com/experience/detail?tagName=objectdet&children=DetectMainBody\n\n输入限制\n图片格式：PNG（不支持8位、16位和64位的PNG）、JPG、JPEG、BMP。\n图像大小：图片大小不超过3M。\n图像分辨率：图片分辨率小于1280×1280像素。\n图片URL地址中不能包含中文字符。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "Data": {
                              "type": "object",
                              "properties": {
                                "Location": {
                                  "type": "object",
                                  "properties": {
                                    "Height": {
                                      "type": "number",
                                      "description": "元素高度。"
                                    },
                                    "Width": {
                                      "type": "number",
                                      "description": "元素宽度。"
                                    },
                                    "Y": {
                                      "type": "number",
                                      "description": "元素y坐标。"
                                    },
                                    "X": {
                                      "type": "number",
                                      "description": "元素x坐标。"
                                    }
                                  },
                                  "description": "图像定位信息。"
                                }
                              }
                            },
                            "ret_code": {
                              "type": "number"
                            },
                            "remark": {
                              "type": "string"
                            },
                            "RequestId": {
                              "type": "string"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2482_11_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "ImageURL": {
                    "type": "string",
                    "description": "输入图片URL地址。"
                  },
                  "ds_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "ImageURL",
                  "ds_id"
                ]
              }
            }
          }
        }
      }
    },
    "/2482-10": {
      "x-pointCode": 10,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "物体检测",
        "description": "可以检测输入图像中的物体。阿里原接口订购地址：https://vision.aliyun.com/experience/detail?tagName=objectdet&children=DetectObject\n\n输入限制\n图片格式：JPEG、JPG、PNG、BMP。\n图片URL地址中不能包含中文字符。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "Data": {
                              "type": "object",
                              "properties": {
                                "Elements": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "Boxes": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "description": "检测框坐标，格式为[left, top, right, bottom]。"
                                      },
                                      "Type": {
                                        "type": "string",
                                        "description": "检测框对应的物体名称。具体类型如下所示。\nhuman（人体）、sneakers（胶底运动鞋）、chair（椅子）、hat（帽子）、lamp（灯）、cabinet/shelf（橱柜/ 架子）、car（汽车）、glasses（眼镜）、picture/frame（照片/图画）、street lights（街灯）、helmet（头盔）、pillow（枕头）、glove（手套）、potted plant（盆栽植物）、flower（花）、monitor（显示屏）、plants pot/vase（花盆）、boots（靴子）、umbrella（伞）、boat（小船）、flag（旗帜）、speaker（扬声器/话筒）、trash bin/can（垃圾桶）、backpack（ 双肩背包）、sofa（沙发）、belt（腰带）、carpet（地毯）、coffee table（咖啡桌/茶几）、tie（ 领带）、bed（ 床）、traffic light（红绿灯）、necklace（项链）、mirror（镜子）、bicycle（自行车）、watch（手表）、horse（马）、traffic sign（交通标志）、stuffed animal（填充玩具动物）、motorbike/motorcycle（摩托车）、wild bird（鸟）、laptop（笔记本电脑）、cow（奶牛）、clock（时钟）、bus（公共汽车）、nightstand（床头柜）、sheep（绵羊）、traffic cone（锥形交通路标）、keyboard（键盘）、hockey stick（曲棍球球棍）、fan（电扇）、dog（狗）、blackboard/whiteboard（白板/黑板）、mouse（鼠标）、telephone（电话）、airplane（飞机）、skis（滑雪板）、soccer（英式足球）、combine with glove（棒球手套）、train（火车）、tent（帐篷）、sailboat（帆船）、kite（风筝）、computer box（计算机主机机箱）、elephant（大象）、stroller（折叠式婴儿车）、baseball bat（棒球棒）、skateboard（溜冰板）、surfboard（冲浪板）、cat（猫）、zebra（斑马）、sports car（跑车）、giraffe（长颈鹿）、radiator（散热器）、tennis racket（网球拍）、skating and skiing shoes（溜冰鞋）、baseball（棒球）、american football（美式橄榄球）、basketball（篮球）、printer（打印机）、fire hydrant（消防栓）、projector（投影仪）、fire extinguisher（灭火器）、tennis ball（网球）、frisbee（飞盘）、fire truck（消防车）、helicopter（直升飞机）、carriage（四轮马车）、bear（熊）、globe（地球仪）、volleyball（排球）。"
                                      },
                                      "Score": {
                                        "type": "number",
                                        "description": "检测到物体的置信度，取值范围为0~1。"
                                      }
                                    }
                                  },
                                  "description": "检测框数据集合。"
                                },
                                "Height": {
                                  "type": "number",
                                  "description": "图片的高度。"
                                },
                                "Width": {
                                  "type": "number",
                                  "description": "图片的宽度。"
                                }
                              }
                            },
                            "ret_code": {
                              "type": "number"
                            },
                            "remark": {
                              "type": "string"
                            },
                            "RequestId": {
                              "type": "string"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2482_10_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "ImageURL": {
                    "type": "string",
                    "description": "输入图片URL地址。"
                  },
                  "ds_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "ImageURL",
                  "ds_id"
                ]
              }
            }
          }
        }
      }
    },
    "/2482-9": {
      "x-pointCode": 9,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "白底图检测",
        "description": "用于检测图片背景是否为白底图。阿里原接口订购地址：https://vision.aliyun.com/experience/detail?tagName=objectdet&children=DetectWhiteBaseImage\n\n输入限制\n图像大小：图片大小不超过3M。\n图像分辨率：分辨率要求大于32×32像素，且小于1280×1280像素。\n图像格式：JPG、JPEG、PNG。\n图片URL地址中不能包含中文字符。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "Data": {
                              "type": "object",
                              "properties": {
                                "Elements": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "WhiteBase": {
                                        "type": "number",
                                        "description": "是否白底图。\n\n0：非白底\n1：白底"
                                      }
                                    }
                                  },
                                  "description": "返回判断结果。"
                                }
                              }
                            },
                            "ret_code": {
                              "type": "number"
                            },
                            "remark": {
                              "type": "string"
                            },
                            "RequestId": {
                              "type": "string"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2482_9_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "ImageURL": {
                    "type": "string",
                    "description": "输入图片URL地址。"
                  },
                  "ds_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "ImageURL",
                  "ds_id"
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/2482?tab=book"
  },
  "x-apiCode": "2482",
  "x-is-own": false,
  "x-is-op": true
}