summaryrefslogtreecommitdiff
path: root/data/zh_cn/objectdet
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/objectdet
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/zh_cn/objectdet')
-rw-r--r--data/zh_cn/objectdet/2019-12-30/api-docs.php2296
1 files changed, 742 insertions, 1554 deletions
diff --git a/data/zh_cn/objectdet/2019-12-30/api-docs.php b/data/zh_cn/objectdet/2019-12-30/api-docs.php
index 38b768b..744d592 100644
--- a/data/zh_cn/objectdet/2019-12-30/api-docs.php
+++ b/data/zh_cn/objectdet/2019-12-30/api-docs.php
@@ -1,214 +1,46 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'objectdet',
- 'version' => '2019-12-30',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'objectdet', 'version' => '2019-12-30'],
'directories' => [
[
- 'id' => 114562,
- 'title' => '车辆检测',
+ 'children' => ['DetectVehicleICongestion'],
'type' => 'directory',
- 'children' => [
- 'DetectVehicleICongestion',
- 'DetectVehicleIllegalParking',
- ],
+ 'title' => '车辆检测',
+ 'id' => 357266,
],
[
- 'id' => 114557,
- 'title' => '通用检测',
+ 'children' => ['DetectMainBody', 'DetectWhiteBaseImage', 'DetectObject', 'DetectIPCObject', 'DetectVideoIPCObject'],
'type' => 'directory',
- 'children' => [
- 'DetectMainBody',
- 'DetectWhiteBaseImage',
- 'DetectObject',
- 'DetectIPCObject',
- 'DetectVideoIPCObject',
- 'DetectWorkwear',
- 'DetectKitchenAnimals',
- ],
+ 'title' => '通用检测',
+ 'id' => 357258,
],
[
- 'id' => 114576,
- 'title' => '通用接口',
+ 'children' => ['GetAsyncJobResult'],
'type' => 'directory',
- 'children' => [
- 'GetAsyncJobResult',
- ],
+ 'title' => '通用接口',
+ 'id' => 357269,
],
],
'components' => [
- 'schemas' => [
- 'DetectObjectElement' => [
- 'title' => '检测到的目标',
- 'type' => 'object',
- 'properties' => [
- 'Type' => [
- 'title' => '目标类型:PERSON, VEHICLE, PET',
- 'type' => 'string',
- 'example' => 'VEHICLE',
- ],
- 'X' => [
- 'title' => '左上角x坐标(像素)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- ],
- 'Y' => [
- 'title' => '左上角y坐标(像素)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'Width' => [
- 'title' => '目标宽度(像素)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'Height' => [
- 'title' => '目标高度(像素)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '200',
- ],
- 'Score' => [
- 'title' => '目标置信度,范围为[0.0, 1.0]',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.68225745',
- ],
- ],
- ],
- 'DetectObjectFrame' => [
- 'title' => 'A short description of struct',
- 'type' => 'object',
- 'properties' => [
- 'Time' => [
- 'title' => '时间',
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'Elements' => [
- 'title' => '结果集',
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/DetectObjectElement',
- ],
- ],
- ],
- ],
- ],
+ 'schemas' => [],
],
'apis' => [
- 'DetectVehicleICongestion' => [
- 'summary' => '本文为您介绍目标检测(objectdet)类目下的车辆拥堵检测DetectVehicleICongestion的语法及示例。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DetectIPCObject' => [
+ 'summary' => '本文为您介绍目标检测(objectdet)类目下的IPC图像目标检测DetectIPCObject的语法及示例。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- ],
+ 'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
- 'schema' => [
- 'title' => 'A short description of struct',
- 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVehicleICongestion/DetectVehicleICongestion1.jpg',
- 'maxItems' => 1,
- 'minItems' => 20,
- 'isFileTransferUrl' => true,
- ],
- ],
- [
- 'name' => 'RoadRegions',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'description' => '多个区域。格式为[RoadRegion\\_1, RoadRegion\\_2, ..., RoadRegion\\_N]。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'RoadRegion' => [
- 'description' => '任意四边形的四个顶点的坐标X和Y,格式为`[x1,y1,x2,y2,x3,y3,x4,y4]`。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Point' => [
- 'description' => '四边形的顶点坐标。',
- 'type' => 'object',
- 'properties' => [
- 'X' => [
- 'description' => '坐标点的X值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '400',
- ],
- 'Y' => [
- 'description' => '坐标点的Y值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '400',
- ],
- ],
- 'required' => true,
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
- ],
- [
- 'name' => 'PreRegionIntersectFeatures',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'description' => '前一帧画面与各个指定区域相交集的车辆检测框对应的车辆特征。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Features' => [
- 'description' => '特征为Base64编码的字符串。',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Base64编码的字符串。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'AEAMQQAAAA****ABhC',
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'schema' => ['title' => '图片URL地址', 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', 'type' => 'string', 'required' => true, 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/objectdet/detect-ipc-xxxx.jpg', 'isFileTransferUrl' => true],
],
],
'responses' => [
@@ -218,141 +50,36 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4FC381BB-04F2-50F4-B54B-593042BCF3C6',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '7AE23740-A3E5-5607-8E10-895DCBD4C260'],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
- 'description' => '车辆检测框的集合。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Boxes' => [
- 'description' => '检测框坐标,格式为`[left, top, right, bottom]`。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Left' => [
- 'description' => '矩形区域的左上角横轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '341',
- ],
- 'Top' => [
- 'description' => '矩形区域的左上角纵轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '434',
- ],
- 'Right' => [
- 'description' => '矩形区域的右下角横轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '589',
- ],
- 'Bottom' => [
- 'description' => '矩形区域的右下角纵轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '576',
- ],
- ],
- ],
- ],
- 'Score' => [
- 'description' => '检测框的置信度,范围为`[0,1]`。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.962890625',
- ],
- 'TypeName' => [
- 'description' => '检测框对应的物体。取值仅为`vehicle`。',
- 'type' => 'string',
- 'example' => 'vehicle',
- ],
- 'Id' => [
- 'description' => '检测框ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'RegionIntersectFeatures' => [
- 'description' => '与各个指定区域相交集的车辆检测框对应的车辆特征。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Features' => [
- 'description' => '特征为Base64编码的字符串。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。',
- 'type' => 'array',
- 'items' => [
- 'description' => '此Base64编码用于匹配两帧之间的车辆是否为同一车辆。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。',
- 'type' => 'string',
- 'example' => 'AEAMQQAAAA****ABhC',
- ],
- ],
- ],
- ],
- ],
- 'RegionIntersectMatched' => [
- 'description' => '判断当前帧的RegionIntersectFeatures与PreRegionIntersectFeatures中哪一个特征是匹配的。',
- 'type' => 'array',
- 'items' => [
- 'description' => '1',
- 'type' => 'object',
- 'properties' => [
- 'Ids' => [
- 'description' => '输出匹配的特征IDx。',
- 'type' => 'array',
- 'items' => [
- 'description' => '当两帧之间的两个车辆是匹配时,说明该车辆在两帧之间的时间内存在滞留或拥堵现象。'."\n"
- ."\n"
- .' > **-1**代表没有匹配的特征,如果匹配将显示对应检测框ID。例如,车辆检测框ID为`[1,2,3]`,RegionIntersectMatched显示为`[-1,-1,-1]`,则表示三个区域均没有匹配,RegionIntersectMatched显示为`[-1,2,3]`,则表示区域1未匹配,区域2和3匹配。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[-1,-1,-1]',
- ],
- ],
- ],
- ],
- ],
- 'RegionIntersects' => [
- 'description' => '与各个指定区域相交集的车辆检测框对应的车辆特征。'."\n"
- ."\n"
- .'例如,返回结果为[ {"Ids":[1,3]}, {"Ids":[2,4]} ],其中{"Ids":[1,3]}是与区域1相交集的车辆检测框的ID, {"Ids":[2,4]}是与区域2相交集的车辆检测框的ID。当车辆出现在给定区域内,说明存在车辆占道的情况。'."\n"
- ."\n"
- .'除了**RegionIntersects**里包含的ID的检测框外,其它的检测框为区域外的检测框。',
+ 'description' => '检测到的目标集合,如果没有目标则为空。',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
- 'Ids' => [
- 'description' => '与各个指定区域相交集的车辆检测框的多个ID。',
+ 'Type' => ['description' => '检测框对应的物体名称,取值如下:'."\n"
+ ."\n"
+ .'- PERSON:人物'."\n"
+ .'- VEHICLE:车辆'."\n"
+ .'- CAT:猫'."\n"
+ .'- DOG:狗', 'type' => 'string', 'example' => 'DOG'],
+ 'Score' => ['description' => '检测框的置信度,取值范围\\[0.0,1.0]。', 'type' => 'number', 'format' => 'float', 'example' => '0.7138671875'],
+ 'Box' => [
+ 'description' => '检测框坐标。',
'type' => 'array',
- 'items' => [
- 'description' => '与各个指定区域相交集的车辆检测框的多个ID。'."\n"
- ."\n"
- .'例如,{"Ids":[1,3]}是与相应区域相交集的车辆检测框的IDs。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[1,2,3]',
- ],
+ 'items' => ['description' => '检测框坐标,单位像素,格式为\\[left, top, right, bottom]。', 'type' => 'integer', 'format' => 'int64', 'example' => '[10,150,1587,1193]'],
],
+ 'TargetRate' => ['description' => '目标检测框的面积大小和图像大小的比例。取值范围\\[0.0,1.0],1.0表示全屏。', 'type' => 'number', 'format' => 'float', 'example' => '0.8566723958333333'],
],
],
],
+ 'Width' => ['description' => '图像的宽度,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '1600'],
+ 'Height' => ['description' => '图像的高度,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '1200'],
],
],
],
@@ -361,59 +88,52 @@
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
+ ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
+ ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
+ ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4FC381BB-04F2-50F4-B54B-593042BCF3C6\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Boxes\\": [\\n {\\n \\"Left\\": 341,\\n \\"Top\\": 434,\\n \\"Right\\": 589,\\n \\"Bottom\\": 576\\n }\\n ],\\n \\"Score\\": 0.962890625,\\n \\"TypeName\\": \\"vehicle\\",\\n \\"Id\\": 1\\n }\\n ],\\n \\"RegionIntersectFeatures\\": [\\n {\\n \\"Features\\": [\\n \\"AEAMQQAAAA****ABhC\\"\\n ]\\n }\\n ],\\n \\"RegionIntersectMatched\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ],\\n \\"RegionIntersects\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectVehicleICongestionResponse>\\n <RequestId>4FC381BB-04F2-50F4-B54B-593042BCF3C6</RequestId>\\n <Data>\\n <RegionIntersectFeatures>\\n <Features>AOAQQQBA****FRD</Features>\\n <Features>AEAMQQAA****KRC</Features>\\n <Features>AEAMQQAA****BhC</Features>\\n </RegionIntersectFeatures>\\n <RegionIntersects>\\n <Ids>1</Ids>\\n <Ids>2</Ids>\\n <Ids>3</Ids>\\n </RegionIntersects>\\n <Elements>\\n <Score>0.962890625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>0</Id>\\n <Boxes>\\n <Left>341</Left>\\n <Top>434</Top>\\n <Right>589</Right>\\n <Bottom>576</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.9619140625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>1</Id>\\n <Boxes>\\n <Left>304</Left>\\n <Top>228</Top>\\n <Right>525</Right>\\n <Bottom>440</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.83203125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>2</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>24</Top>\\n <Right>68</Right>\\n <Bottom>106</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.53125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>3</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>0</Top>\\n <Right>58</Right>\\n <Bottom>38</Bottom>\\n </Boxes>\\n </Elements>\\n <RegionIntersectMatched>\\n <Ids>-1</Ids>\\n <Ids>-1</Ids>\\n <Ids>-1</Ids>\\n </RegionIntersectMatched>\\n </Data>\\n</DetectVehicleICongestionResponse>","errorExample":""}]',
- 'title' => '车辆拥堵检测',
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7AE23740-A3E5-5607-8E10-895DCBD4C260\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"DOG\\",\\n \\"Score\\": 0.7138671875,\\n \\"Box\\": [\\n 0\\n ],\\n \\"TargetRate\\": 0.8566723958333333\\n }\\n ],\\n \\"Width\\": 1600,\\n \\"Height\\": 1200\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectIPCObjectResponse>\\n <RequestId>7AE23740-A3E5-5607-8E10-895DCBD4C260</RequestId>\\n <Data>\\n <Height>1200</Height>\\n <Elements>\\n <TargetRate>0.21299583333333333</TargetRate>\\n <Type>CAT</Type>\\n <Score>0.85107421875</Score>\\n <Box>7</Box>\\n <Box>665</Box>\\n <Box>783</Box>\\n <Box>1192</Box>\\n </Elements>\\n <Elements>\\n <TargetRate>0.8566723958333333</TargetRate>\\n <Type>DOG</Type>\\n <Score>0.7138671875</Score>\\n <Box>10</Box>\\n <Box>150</Box>\\n <Box>1587</Box>\\n <Box>1193</Box>\\n </Elements>\\n <Width>1600</Width>\\n </Data>\\n</DetectIPCObjectResponse>","errorExample":""}]',
+ 'title' => 'IPC图像目标检测',
'description' => '## 功能描述'."\n"
- .'车辆拥堵检测能力根据图片中的车辆,判断是否发生拥堵。'."\n"
+ .'IPC图像目标检测能力可以检测到输入图像中的目标物体,例如人、车辆、宠物等。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
- .'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectVehicleICongestion)对该能力进行更直观试用以及在线购买。'."\n"
+ .'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectIPCObject)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 应用场景'."\n"
."\n"
- .'- 停车场拥堵检测:通过停车场摄像头间隔时间内捕捉的两张图像,检测车辆以及相对位置,判断是否发生拥堵。'."\n"
- .'- 道路拥堵检测:通过道路监控间隔时间内捕捉的前后图像,检测车辆以及相对位置,判断是否发生拥堵。'."\n"
+ .'- 智能看家:家中有人或宠物移动时可生成高精度视频,实现检测提醒功能。且可以关注宠物在家中的活动状况。'."\n"
+ .'- 智能看店:可对门店起到安防作用,尤其是在夜间,可及时知道有人进店。'."\n"
+ .'- 智能看厂:安全是厂区非常重要的事情,对于人员在岗以及人员入侵可以起到良好的监管作用。'."\n"
."\n"
.'## 特色优势'."\n"
- .'检测数据量少:无需较大数据量的视频,仅通过检测两张图片,即可判断是否发生拥堵。'."\n"
+ ."\n"
+ .'- 适用场景多:适应多种广泛的日常场景的目标检测,室内、室外、家居、店铺、商场、白天、夜间等。'."\n"
+ .'- 检测范围广:可检测的目标大小范围广,适用于大目标检测,也适用于较远摄像头下的小目标检测。'."\n"
+ .'- 检测效率高:高并发处理,处理时间短。'."\n"
."\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
- .'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectVehicleICongestion?lang=JAVA&sdkStyle=dara&params=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectVehicleICongestion%2FDetectVehicleICongestion1.jpg%22%2C%22%20RoadRegion%22%3A%22%5B100%2C125%2C830%2C125%2C100%2C425%2C830%2C425%5D%22%2C%22RoadRegions%22%3A%5B%7B%22RoadRegion%22%3A%5B%7B%22Point%22%3A%7B%22X%22%3A100%2C%22Y%22%3A125%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A830%2C%22Y%22%3A125%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A100%2C%22Y%22%3A425%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A830%2C%22Y%22%3A425%7D%7D%5D%7D%5D%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
- ."\n"
+ .'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectIPCObject?lang=JAVA&sdkStyle=old&params=%7B%22ImageURL%22%3A%22https%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectIPCObject%2FDetectIPCObject1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
.'5. 开发接入步骤:'."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
- .'6. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
+ .'6. 示例代码:该能力常用语言的示例代码,请参见[IPC图像目标检测示例代码](~~604396~~)。'."\n"
+ ."\n"
+ .'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
@@ -422,280 +142,29 @@
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPEG、JPG、PNG、BMP。'."\n"
- .'- 图像大小:不超过500 KB。'."\n"
- .'- 图像分辨率:大于20×20像素,小于800×800像素,长宽比小于等于2。'."\n"
- .'- URL地址中不能包含中文字符。',
- 'responseParamsDescription' => '## SDK参考'."\n"
- .'阿里云视觉AI目标检测类目下的车辆拥堵检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。',
- 'extraInfo' => '## 错误码'."\n"
- .'关于车辆拥堵检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
- ."\n"
- .'## 安全声明'."\n"
- .'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
- .'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
- ],
- 'DetectVehicleIllegalParking' => [
- 'summary' => '本文为您介绍目标检测(objectdet)类目下的车辆违停检测DetectVehicleIllegalParking的语法及示例。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- ],
- 'parameters' => [
- [
- 'name' => 'ImageURL',
- 'in' => 'formData',
- 'schema' => [
- 'title' => 'A short description of struct',
- 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVehicleIllegalParking/DetectVehicleIllegalParking2.jpg',
- 'maxItems' => 1,
- 'minItems' => 20,
- 'isFileTransferUrl' => true,
- ],
- ],
- [
- 'name' => 'RoadRegions',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'description' => '多个区域。格式为[RoadRegion\\_1, RoadRegion\\_2, ..., RoadRegion\\_N]。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'RoadRegion' => [
- 'description' => '任意四边形的四个顶点的坐标X和Y,格式为`[x1,y1,x2,y2,x3,y3,x4,y4]`。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Point' => [
- 'description' => '四边形的顶点坐标。',
- 'type' => 'object',
- 'properties' => [
- 'X' => [
- 'description' => '坐标点的X值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '400',
- ],
- 'Y' => [
- 'description' => '坐标点的Y值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '400',
- ],
- ],
- 'required' => true,
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'DB882EDD-991A-5A0C-A19B-CC7C4BA65E35',
- ],
- 'Data' => [
- 'description' => '返回的结果数据内容。',
- 'type' => 'object',
- 'properties' => [
- 'Elements' => [
- 'description' => '车辆检测框的集合。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Boxes' => [
- 'description' => '检测框坐标,格式为`[left, top, right, bottom]`。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Left' => [
- 'description' => '矩形区域的左上角横轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '413',
- ],
- 'Top' => [
- 'description' => '矩形区域的左上角纵轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '138',
- ],
- 'Right' => [
- 'description' => '矩形区域的右下角横轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '499',
- ],
- 'Bottom' => [
- 'description' => '矩形区域的右下角纵轴坐标。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '268',
- ],
- ],
- ],
- ],
- 'Score' => [
- 'description' => '检测框的置信度,范围为`[0,1]`。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.9599609375',
- ],
- 'TypeName' => [
- 'description' => '检测框对应的物体。取值仅为`vehicle`。',
- 'type' => 'string',
- 'example' => 'vehicle',
- ],
- 'Id' => [
- 'description' => '检测框ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'RegionIntersects' => [
- 'description' => '与各个给定区域相交集的车辆检测框对应的车辆特征。'."\n"
- ."\n"
- .'例如,返回结果为[ {"Ids":[1,3]}, {"Ids":[2,4]} ],其中{"Ids":[1,3]}是与区域1相交集的车辆检测框的ID, {"Ids":[2,4]}是与区域2相交集的车辆检测框的ID。当车辆出现在给定区域内,说明存在车辆占道的情况。'."\n"
- ."\n"
- .'除了**RegionIntersects**里包含的ID的检测框外,其它的检测框为区域外的检测框。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Ids' => [
- 'description' => '与各个指定区域相交集的车辆检测框的多个ID。',
- 'type' => 'array',
- 'items' => [
- 'description' => '与各个指定区域相交集的车辆检测框的多个ID。'."\n"
- ."\n"
- .'例如,{"Ids":[1,3]}是与相应区域相交集的车辆检测框的IDs。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[1,2,3]',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
- ],
- 403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
- ],
- 408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
- ],
- 503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
- ],
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"DB882EDD-991A-5A0C-A19B-CC7C4BA65E35\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Boxes\\": [\\n {\\n \\"Left\\": 413,\\n \\"Top\\": 138,\\n \\"Right\\": 499,\\n \\"Bottom\\": 268\\n }\\n ],\\n \\"Score\\": 0.9599609375,\\n \\"TypeName\\": \\"vehicle\\",\\n \\"Id\\": 1\\n }\\n ],\\n \\"RegionIntersects\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectVehicleIllegalParkingResponse>\\n <RequestId>DB882EDD-991A-5A0C-A19B-CC7C4BA65E35</RequestId>\\n <Data>\\n <RegionIntersects>\\n <Ids>1</Ids>\\n <Ids>2</Ids>\\n <Ids>3</Ids>\\n <Ids>4</Ids>\\n <Ids>5</Ids>\\n <Ids>6</Ids>\\n <Ids>7</Ids>\\n <Ids>8</Ids>\\n <Ids>10</Ids>\\n <Ids>11</Ids>\\n </RegionIntersects>\\n <Elements>\\n <Score>0.9599609375</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>0</Id>\\n <Boxes>\\n <Left>413</Left>\\n <Top>138</Top>\\n <Right>499</Right>\\n <Bottom>268</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.95751953125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>1</Id>\\n <Boxes>\\n <Left>146</Left>\\n <Top>121</Top>\\n <Right>371</Right>\\n <Bottom>284</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.93310546875</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>2</Id>\\n <Boxes>\\n <Left>54</Left>\\n <Top>92</Top>\\n <Right>164</Right>\\n <Bottom>213</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.9326171875</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>3</Id>\\n <Boxes>\\n <Left>94</Left>\\n <Top>141</Top>\\n <Right>171</Right>\\n <Bottom>232</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.9150390625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>4</Id>\\n <Boxes>\\n <Left>303</Left>\\n <Top>114</Top>\\n <Right>430</Right>\\n <Bottom>195</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.82080078125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>5</Id>\\n <Boxes>\\n <Left>14</Left>\\n <Top>134</Top>\\n <Right>32</Right>\\n <Bottom>154</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.767578125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>6</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>132</Top>\\n <Right>17</Right>\\n <Bottom>151</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.767578125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>7</Id>\\n <Boxes>\\n <Left>37</Left>\\n <Top>133</Top>\\n <Right>56</Right>\\n <Bottom>162</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.765625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>8</Id>\\n <Boxes>\\n <Left>27</Left>\\n <Top>131</Top>\\n <Right>55</Right>\\n <Bottom>158</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.75341796875</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>9</Id>\\n <Boxes>\\n <Left>408</Left>\\n <Top>14</Top>\\n <Right>499</Right>\\n <Bottom>143</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.517578125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>10</Id>\\n <Boxes>\\n <Left>164</Left>\\n <Top>130</Top>\\n <Right>183</Right>\\n <Bottom>144</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.355712890625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>11</Id>\\n <Boxes>\\n <Left>1</Left>\\n <Top>133</Top>\\n <Right>31</Right>\\n <Bottom>153</Bottom>\\n </Boxes>\\n </Elements>\\n </Data>\\n</DetectVehicleIllegalParkingResponse>","errorExample":""}]',
- 'title' => '检测车辆非法停车',
- 'description' => '## 服务说明'."\n"
- .'由于产品业务调整,车辆违停检测服务于 即日起停止新用户开通调用,历史开通过该服务的老用户可继续调用,2026年04月20日后该服务将下架,不再支持新老用户调用,请尽早寻找替代方案。如果对车辆违停检测 API 服务使用有疑问,可通过搜索钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
- ."\n"
- .'## 功能描述'."\n"
- .'车辆违停检测能力可通过检测图片中目标区域内是否有车辆停放。'."\n"
- ."\n"
- .'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
- .'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
- ."\n"
- .'## 应用场景'."\n"
+ .'- 图像大小:不超过2 MB。'."\n"
+ .'- 图像分辨率:大于20×20像素,小于1024×1024像素。并非越高清准确度越高,推荐值:最大边为640像素。'."\n"
+ .'- URL地址中不能包含中文字符。'."\n"
."\n"
- .'- 消防通道占用:通过检测消防通道区域是否有车辆,可以判断是否有车辆占用了消防通道。'."\n"
- .'- 出入口违停:检测停车场、商场、小区、园区出入口指定区域是否有车辆违停。'."\n"
+ .'## 计费说明'."\n"
+ .'关于IPC图像目标检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
- .'## 特色优势'."\n"
+ .'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectIPCObject)。',
+ 'responseParamsDescription' => '## SDK参考'."\n"
+ .'阿里云视觉AI目标检测类目下的IPC图像目标检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
- .'- 方便改造部署:仅需提供图像即可检测判断。'."\n"
- .'- 支持多种角度:支持通过多种角度检测是否存在车辆违停。'."\n"
- ."\n\n"
- .'## 输入限制'."\n"
+ .'## 示例代码'."\n"
+ .'该能力常用语言的示例代码,请参见[IPC图像目标检测示例代码](~~604396~~)。',
+ 'extraInfo' => '## 错误码'."\n"
+ .'关于IPC图像目标检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n"
- .'- 图像格式:JPEG、JPG、PNG、BMP。'."\n"
- .'- 图像大小:建议不超过3M。'."\n"
- .'- 图像分辨率:大于20×20像素,建议小于3000×3000像素。'."\n"
- .'- URL地址中不能包含中文字符。'."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
- .'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
- ."\n"
- .'## 计费说明'."\n"
- .'关于车辆违停检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
- ."\n"
- .'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectVehicleIllegalParking)。',
- 'responseParamsDescription' => '## SDK参考'."\n"
- .'阿里云视觉AI目标检测类目下的车辆违停检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。',
+ .'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
],
'DetectMainBody' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -708,13 +177,7 @@
[
'name' => 'ImageURL',
'in' => 'query',
- 'schema' => [
- 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectMainBody/DetectMainBody1.jpg',
- 'isFileTransferUrl' => true,
- ],
+ 'schema' => ['description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', 'type' => 'string', 'required' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectMainBody/DetectMainBody1.jpg', 'isFileTransferUrl' => true],
],
],
'responses' => [
@@ -722,11 +185,7 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '2E59C333-5480-4231-A8AB-BEE1001EA7FE',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '2E59C333-5480-4231-A8AB-BEE1001EA7FE'],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
@@ -735,62 +194,31 @@
'description' => '图像定位信息。',
'type' => 'object',
'properties' => [
- 'Width' => [
- 'description' => '元素宽度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '583',
- ],
- 'Height' => [
- 'description' => '元素高度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '320',
- ],
- 'Y' => [
- 'description' => '元素y坐标。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '20',
- ],
- 'X' => [
- 'description' => '元素x坐标。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '28',
- ],
+ 'Width' => ['description' => '元素宽度。', 'type' => 'integer', 'format' => 'int32', 'example' => '583'],
+ 'Height' => ['description' => '元素高度。', 'type' => 'integer', 'format' => 'int32', 'example' => '320'],
+ 'Y' => ['description' => '元素y坐标。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
+ 'X' => ['description' => '元素x坐标。', 'type' => 'integer', 'format' => 'int32', 'example' => '28'],
],
],
],
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
+ ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
+ ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
+ ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2E59C333-5480-4231-A8AB-BEE1001EA7FE\\",\\n \\"Data\\": {\\n \\"Location\\": {\\n \\"Width\\": 583,\\n \\"Height\\": 320,\\n \\"Y\\": 20,\\n \\"X\\": 28\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectMainBodyResponse>\\n <RequestId>2E59C333-5480-4231-A8AB-BEE1001EA7FE</RequestId>\\n <Data>\\n <Location>\\n <X>28</X>\\n <Y>20</Y>\\n <Height>320</Height>\\n <Width>583</Width>\\n </Location>\\n </Data>\\n</DetectMainBodyResponse>","errorExample":""}]',
@@ -845,158 +273,16 @@
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
- ],
- 'DetectWhiteBaseImage' => [
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectMainBody'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
- [
- 'name' => 'ImageURL',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectWhiteBaseImage/DetectWhiteBaseImage1.jpg',
- 'isFileTransferUrl' => true,
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '7A7F9EEB-44C4-4592-9089-A6185B222B23',
- ],
- 'Data' => [
- 'description' => '返回的结果数据内容。',
- 'type' => 'object',
- 'properties' => [
- 'Elements' => [
- 'description' => '返回判断结果。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'WhiteBase' => [
- 'description' => '是否白底图。'."\n"
- ."\n"
- .'- 0:非白底'."\n"
- ."\n"
- .'- 1:白底'."\n"
- ."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
- ],
- 403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
- ],
- 408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
- ],
- 503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
- ],
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7A7F9EEB-44C4-4592-9089-A6185B222B23\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"WhiteBase\\": 0\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectWhiteBaseImageResponse>\\n <RequestId>7A7F9EEB-44C4-4592-9089-A6185B222B23</RequestId>\\n <Data>\\n <Elements>\\n <WhiteBase>0</WhiteBase>\\n </Elements>\\n </Data>\\n</DetectWhiteBaseImageResponse>","errorExample":""}]',
- 'title' => '白底图检测',
- 'summary' => '本文为您介绍目标检测(objectdet)类目下的白底图检测DetectWhiteBaseImage的语法及示例。',
- 'description' => '## 功能描述'."\n"
- .'白底图检测能力用于检测图片背景是否为白底图。'."\n"
- ."\n"
- .'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
- .'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectWhiteBaseImage)对该能力进行更直观试用以及在线购买。'."\n"
- .'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
- ."\n\n"
- .'## 接入指引'."\n"
- .'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
- .'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
- .'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
- .'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectWhiteBaseImage?lang=JAVA&sdkStyle=old&params=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectWhiteBaseImage%2FDetectWhiteBaseImage1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
- ."\n"
- .'5. 开发接入步骤:'."\n"
- .'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
- .'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
- .'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
- ."\n"
- .'6. 示例代码:该能力常用语言的示例代码,请参见[白底图检测示例代码](~~604401~~)。'."\n"
- ."\n"
- .'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
- .'- [Web前端直接调用](~~467779~~)'."\n"
- .'- [小程序场景下直接调用](~~467780~~)'."\n"
- .'- [Android端直接调用](~~467781~~)'."\n"
- .'- [iOS端直接调用](~~467782~~)'."\n"
- ."\n"
- .'## 输入限制'."\n"
- .'- 图像格式:JPG、JPEG、PNG。'."\n"
- .'- 图像大小:不超过3 MB。'."\n"
- .'- 图像分辨率:大于32×32像素,小于1280×1280像素。'."\n"
- .'- URL地址中不能包含中文字符。'."\n"
- .'## 安全声明'."\n"
- .'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
- .'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
- .'## 计费说明'."\n"
- .'关于白底图检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
- ."\n"
- .'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectWhiteBaseImage)。',
- 'requestParamsDescription' => ' ',
- 'responseParamsDescription' => '## SDK参考'."\n"
- .'阿里云视觉AI目标检测类目下的白底图检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
- ."\n"
- .'## 示例代码'."\n"
- .'该能力常用语言的示例代码,请参见[白底图检测示例代码](~~604401~~)。',
],
'DetectObject' => [
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1004,20 +290,12 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- ],
+ 'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
- 'schema' => [
- 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectObject/DetectObject1.jpg',
- 'isFileTransferUrl' => true,
- ],
+ 'schema' => ['description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', 'type' => 'string', 'required' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectObject/DetectObject1.jpg', 'isFileTransferUrl' => true],
],
],
'responses' => [
@@ -1025,11 +303,7 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '6EF97B44-2763-4EAD-8737-FB9F5EE25FE2',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6EF97B44-2763-4EAD-8737-FB9F5EE25FE2'],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
@@ -1040,71 +314,38 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Type' => [
- 'description' => '检测框对应的物体名称。具体类型如下所示。',
- 'type' => 'string',
- 'example' => 'chair',
- ],
+ 'Type' => ['description' => '检测框对应的物体名称。具体类型如下所示。', 'type' => 'string', 'example' => 'chair'],
'Boxes' => [
'type' => 'array',
- 'items' => [
- 'description' => '检测框坐标,格式为`[left, top, right, bottom]`。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '[468, 238, 531, 299]',
- ],
- ],
- 'Score' => [
- 'description' => '检测到物体的置信度,取值范围为0~1。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.266',
+ 'items' => ['description' => '检测框坐标,格式为`[left, top, right, bottom]`。', 'type' => 'integer', 'format' => 'int32', 'example' => '[468, 238, 531, 299]'],
+ 'description' => '',
],
+ 'Score' => ['description' => '检测到物体的置信度,取值范围为0~1。', 'type' => 'number', 'format' => 'float', 'example' => '0.266'],
],
+ 'description' => '',
],
],
- 'Width' => [
- 'description' => '图片的宽度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '533',
- ],
- 'Height' => [
- 'description' => '图片的高度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '300',
- ],
+ 'Width' => ['description' => '图片的宽度。', 'type' => 'integer', 'format' => 'int32', 'example' => '533'],
+ 'Height' => ['description' => '图片的高度。', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
],
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
+ ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
+ ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
+ ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6EF97B44-2763-4EAD-8737-FB9F5EE25FE2\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"chair\\",\\n \\"Boxes\\": [\\n 0\\n ],\\n \\"Score\\": 0.266\\n }\\n ],\\n \\"Width\\": 533,\\n \\"Height\\": 300\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectObjectResponse>\\n <RequestId>6EF97B44-2763-4EAD-8737-FB9F5EE25FE2</RequestId>\\n <Data>\\n <Height>300</Height>\\n <Elements>\\n <Score>0.266</Score>\\n <Type>chair</Type>\\n <Boxes>468</Boxes>\\n <Boxes>238</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>299</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.213</Score>\\n <Type>chair</Type>\\n <Boxes>452</Boxes>\\n <Boxes>168</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>233</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.308</Score>\\n <Type>picture/frame</Type>\\n <Boxes>487</Boxes>\\n <Boxes>44</Boxes>\\n <Boxes>501</Boxes>\\n <Boxes>96</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.257</Score>\\n <Type>picture/frame</Type>\\n <Boxes>477</Boxes>\\n <Boxes>67</Boxes>\\n <Boxes>484</Boxes>\\n <Boxes>98</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.201</Score>\\n <Type>picture/frame</Type>\\n <Boxes>503</Boxes>\\n <Boxes>26</Boxes>\\n <Boxes>524</Boxes>\\n <Boxes>85</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.515</Score>\\n <Type>pillow</Type>\\n <Boxes>161</Boxes>\\n <Boxes>141</Boxes>\\n <Boxes>181</Boxes>\\n <Boxes>158</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.293</Score>\\n <Type>pillow</Type>\\n <Boxes>473</Boxes>\\n <Boxes>143</Boxes>\\n <Boxes>496</Boxes>\\n <Boxes>157</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.214</Score>\\n <Type>pillow</Type>\\n <Boxes>241</Boxes>\\n <Boxes>145</Boxes>\\n <Boxes>253</Boxes>\\n <Boxes>166</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.374</Score>\\n <Type>potted plant</Type>\\n <Boxes>449</Boxes>\\n <Boxes>97</Boxes>\\n <Boxes>477</Boxes>\\n <Boxes>140</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.412</Score>\\n <Type>sofa</Type>\\n <Boxes>145</Boxes>\\n <Boxes>135</Boxes>\\n <Boxes>304</Boxes>\\n <Boxes>202</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.269</Score>\\n <Type>sofa</Type>\\n <Boxes>443</Boxes>\\n <Boxes>136</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>190</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.262</Score>\\n <Type>sofa</Type>\\n <Boxes>301</Boxes>\\n <Boxes>136</Boxes>\\n <Boxes>352</Boxes>\\n <Boxes>168</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.242</Score>\\n <Type>sofa</Type>\\n <Boxes>452</Boxes>\\n <Boxes>167</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>230</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.219</Score>\\n <Type>carpet</Type>\\n <Boxes>0</Boxes>\\n <Boxes>153</Boxes>\\n <Boxes>272</Boxes>\\n <Boxes>293</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.458</Score>\\n <Type>coffee table</Type>\\n <Boxes>171</Boxes>\\n <Boxes>172</Boxes>\\n <Boxes>214</Boxes>\\n <Boxes>214</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.358</Score>\\n <Type>coffee table</Type>\\n <Boxes>337</Boxes>\\n <Boxes>185</Boxes>\\n <Boxes>420</Boxes>\\n <Boxes>274</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.285</Score>\\n <Type>coffee table</Type>\\n <Boxes>386</Boxes>\\n <Boxes>159</Boxes>\\n <Boxes>428</Boxes>\\n <Boxes>192</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.214</Score>\\n <Type>mirror</Type>\\n <Boxes>503</Boxes>\\n <Boxes>26</Boxes>\\n <Boxes>524</Boxes>\\n <Boxes>85</Boxes>\\n </Elements>\\n <Width>533</Width>\\n </Data>\\n</DetectObjectResponse>","errorExample":""}]',
@@ -1165,36 +406,89 @@
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
- ],
- 'DetectIPCObject' => [
- 'summary' => '本文为您介绍目标检测(objectdet)类目下的IPC图像目标检测DetectIPCObject的语法及示例。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectObject'],
+ ],
],
+ ],
+ 'DetectVehicleICongestion' => [
+ 'summary' => '本文为您介绍目标检测(objectdet)类目下的车辆拥堵检测DetectVehicleICongestion的语法及示例。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- ],
+ 'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
+ 'schema' => ['title' => 'A short description of struct', 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', 'type' => 'string', 'required' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVehicleICongestion/DetectVehicleICongestion1.jpg', 'maxItems' => 1, 'minItems' => 20, 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'RoadRegions',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'title' => '图片URL地址',
- 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
+ 'description' => '多个区域。格式为[RoadRegion\\_1, RoadRegion\\_2, ..., RoadRegion\\_N]。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RoadRegion' => [
+ 'description' => '任意四边形的四个顶点的坐标X和Y,格式为`[x1,y1,x2,y2,x3,y3,x4,y4]`。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Point' => [
+ 'description' => '四边形的顶点坐标。',
+ 'type' => 'object',
+ 'properties' => [
+ 'X' => ['description' => '坐标点的X值。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '400'],
+ 'Y' => ['description' => '坐标点的Y值。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '400'],
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ 'description' => '',
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ 'description' => '',
+ ],
'required' => true,
- 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/objectdet/detect-ipc-xxxx.jpg',
- 'isFileTransferUrl' => true,
+ ],
+ ],
+ [
+ 'name' => 'PreRegionIntersectFeatures',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '前一帧画面与各个指定区域相交集的车辆检测框对应的车辆特征。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Features' => [
+ 'description' => '特征为Base64编码的字符串。',
+ 'type' => 'array',
+ 'items' => ['description' => 'Base64编码的字符串。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。', 'type' => 'string', 'required' => false, 'example' => 'AEAMQQAAAA****ABhC'],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ 'description' => '',
+ ],
+ 'required' => false,
],
],
],
@@ -1205,69 +499,90 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '7AE23740-A3E5-5607-8E10-895DCBD4C260',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4FC381BB-04F2-50F4-B54B-593042BCF3C6'],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
- 'description' => '检测到的目标集合,如果没有目标则为空。',
+ 'description' => '车辆检测框的集合。',
'type' => 'array',
'items' => [
- 'description' => '1',
'type' => 'object',
'properties' => [
- 'Type' => [
- 'description' => '检测框对应的物体名称,取值如下:'."\n"
- ."\n"
- .'- PERSON:人物'."\n"
- .'- VEHICLE:车辆'."\n"
- .'- CAT:猫'."\n"
- .'- DOG:狗',
- 'type' => 'string',
- 'example' => 'DOG',
- ],
- 'Score' => [
- 'description' => '检测框的置信度,取值范围\\[0.0,1.0]。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.7138671875',
- ],
- 'Box' => [
- 'description' => '检测框坐标。',
+ 'Boxes' => [
+ 'description' => '检测框坐标,格式为`[left, top, right, bottom]`。',
'type' => 'array',
'items' => [
- 'description' => '检测框坐标,单位像素,格式为\\[left, top, right, bottom]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[10,150,1587,1193]',
+ 'type' => 'object',
+ 'properties' => [
+ 'Left' => ['description' => '矩形区域的左上角横轴坐标。', 'type' => 'integer', 'format' => 'int64', 'example' => '341'],
+ 'Top' => ['description' => '矩形区域的左上角纵轴坐标。', 'type' => 'integer', 'format' => 'int64', 'example' => '434'],
+ 'Right' => ['description' => '矩形区域的右下角横轴坐标。', 'type' => 'integer', 'format' => 'int64', 'example' => '589'],
+ 'Bottom' => ['description' => '矩形区域的右下角纵轴坐标。', 'type' => 'integer', 'format' => 'int64', 'example' => '576'],
+ ],
+ 'description' => '',
],
],
- 'TargetRate' => [
- 'description' => '目标检测框的面积大小和图像大小的比例。取值范围\\[0.0,1.0],1.0表示全屏。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.8566723958333333',
+ 'Score' => ['description' => '检测框的置信度,范围为`[0,1]`。', 'type' => 'number', 'format' => 'float', 'example' => '0.962890625'],
+ 'TypeName' => ['description' => '检测框对应的物体。取值仅为`vehicle`。', 'type' => 'string', 'example' => 'vehicle'],
+ 'Id' => ['description' => '检测框ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'RegionIntersectFeatures' => [
+ 'description' => '与各个指定区域相交集的车辆检测框对应的车辆特征。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Features' => [
+ 'description' => '特征为Base64编码的字符串。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。',
+ 'type' => 'array',
+ 'items' => ['description' => '此Base64编码用于匹配两帧之间的车辆是否为同一车辆。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。', 'type' => 'string', 'example' => 'AEAMQQAAAA****ABhC'],
],
],
+ 'description' => '',
],
],
- 'Width' => [
- 'description' => '图像的宽度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1600',
+ 'RegionIntersectMatched' => [
+ 'description' => '判断当前帧的RegionIntersectFeatures与PreRegionIntersectFeatures中哪一个特征是匹配的。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '1',
+ 'type' => 'object',
+ 'properties' => [
+ 'Ids' => [
+ 'description' => '输出匹配的特征IDx。',
+ 'type' => 'array',
+ 'items' => ['description' => '当两帧之间的两个车辆是匹配时,说明该车辆在两帧之间的时间内存在滞留或拥堵现象。'."\n"
+ ."\n"
+ .' > **-1**代表没有匹配的特征,如果匹配将显示对应检测框ID。例如,车辆检测框ID为`[1,2,3]`,RegionIntersectMatched显示为`[-1,-1,-1]`,则表示三个区域均没有匹配,RegionIntersectMatched显示为`[-1,2,3]`,则表示区域1未匹配,区域2和3匹配。', 'type' => 'integer', 'format' => 'int64', 'example' => '[-1,-1,-1]'],
+ ],
+ ],
+ ],
],
- 'Height' => [
- 'description' => '图像的高度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1200',
+ 'RegionIntersects' => [
+ 'description' => '与各个指定区域相交集的车辆检测框对应的车辆特征。'."\n"
+ ."\n"
+ .'例如,返回结果为[ {"Ids":[1,3]}, {"Ids":[2,4]} ],其中{"Ids":[1,3]}是与区域1相交集的车辆检测框的ID, {"Ids":[2,4]}是与区域2相交集的车辆检测框的ID。当车辆出现在给定区域内,说明存在车辆占道的情况。'."\n"
+ ."\n"
+ .'除了**RegionIntersects**里包含的ID的检测框外,其它的检测框为区域外的检测框。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '1',
+ 'type' => 'object',
+ 'properties' => [
+ 'Ids' => [
+ 'description' => '与各个指定区域相交集的车辆检测框的多个ID。',
+ 'type' => 'array',
+ 'items' => ['description' => '与各个指定区域相交集的车辆检测框的多个ID。'."\n"
+ ."\n"
+ .'例如,{"Ids":[1,3]}是与相应区域相交集的车辆检测框的IDs。', 'type' => 'integer', 'format' => 'int64', 'example' => '[1,2,3]'],
+ ],
+ ],
+ ],
],
],
],
@@ -1277,64 +592,47 @@
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
+ ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
+ ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
+ ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7AE23740-A3E5-5607-8E10-895DCBD4C260\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"DOG\\",\\n \\"Score\\": 0.7138671875,\\n \\"Box\\": [\\n 0\\n ],\\n \\"TargetRate\\": 0.8566723958333333\\n }\\n ],\\n \\"Width\\": 1600,\\n \\"Height\\": 1200\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectIPCObjectResponse>\\n <RequestId>7AE23740-A3E5-5607-8E10-895DCBD4C260</RequestId>\\n <Data>\\n <Height>1200</Height>\\n <Elements>\\n <TargetRate>0.21299583333333333</TargetRate>\\n <Type>CAT</Type>\\n <Score>0.85107421875</Score>\\n <Box>7</Box>\\n <Box>665</Box>\\n <Box>783</Box>\\n <Box>1192</Box>\\n </Elements>\\n <Elements>\\n <TargetRate>0.8566723958333333</TargetRate>\\n <Type>DOG</Type>\\n <Score>0.7138671875</Score>\\n <Box>10</Box>\\n <Box>150</Box>\\n <Box>1587</Box>\\n <Box>1193</Box>\\n </Elements>\\n <Width>1600</Width>\\n </Data>\\n</DetectIPCObjectResponse>","errorExample":""}]',
- 'title' => 'IPC图像目标检测',
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4FC381BB-04F2-50F4-B54B-593042BCF3C6\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Boxes\\": [\\n {\\n \\"Left\\": 341,\\n \\"Top\\": 434,\\n \\"Right\\": 589,\\n \\"Bottom\\": 576\\n }\\n ],\\n \\"Score\\": 0.962890625,\\n \\"TypeName\\": \\"vehicle\\",\\n \\"Id\\": 1\\n }\\n ],\\n \\"RegionIntersectFeatures\\": [\\n {\\n \\"Features\\": [\\n \\"AEAMQQAAAA****ABhC\\"\\n ]\\n }\\n ],\\n \\"RegionIntersectMatched\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ],\\n \\"RegionIntersects\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectVehicleICongestionResponse>\\n <RequestId>4FC381BB-04F2-50F4-B54B-593042BCF3C6</RequestId>\\n <Data>\\n <RegionIntersectFeatures>\\n <Features>AOAQQQBA****FRD</Features>\\n <Features>AEAMQQAA****KRC</Features>\\n <Features>AEAMQQAA****BhC</Features>\\n </RegionIntersectFeatures>\\n <RegionIntersects>\\n <Ids>1</Ids>\\n <Ids>2</Ids>\\n <Ids>3</Ids>\\n </RegionIntersects>\\n <Elements>\\n <Score>0.962890625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>0</Id>\\n <Boxes>\\n <Left>341</Left>\\n <Top>434</Top>\\n <Right>589</Right>\\n <Bottom>576</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.9619140625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>1</Id>\\n <Boxes>\\n <Left>304</Left>\\n <Top>228</Top>\\n <Right>525</Right>\\n <Bottom>440</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.83203125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>2</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>24</Top>\\n <Right>68</Right>\\n <Bottom>106</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.53125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>3</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>0</Top>\\n <Right>58</Right>\\n <Bottom>38</Bottom>\\n </Boxes>\\n </Elements>\\n <RegionIntersectMatched>\\n <Ids>-1</Ids>\\n <Ids>-1</Ids>\\n <Ids>-1</Ids>\\n </RegionIntersectMatched>\\n </Data>\\n</DetectVehicleICongestionResponse>","errorExample":""}]',
+ 'title' => '车辆拥堵检测',
'description' => '## 功能描述'."\n"
- .'IPC图像目标检测能力可以检测到输入图像中的目标物体,例如人、车辆、宠物等。'."\n"
+ .'车辆拥堵检测能力根据图片中的车辆,判断是否发生拥堵。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
- .'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectIPCObject)对该能力进行更直观试用以及在线购买。'."\n"
+ .'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectVehicleICongestion)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 应用场景'."\n"
."\n"
- .'- 智能看家:家中有人或宠物移动时可生成高精度视频,实现检测提醒功能。且可以关注宠物在家中的活动状况。'."\n"
- .'- 智能看店:可对门店起到安防作用,尤其是在夜间,可及时知道有人进店。'."\n"
- .'- 智能看厂:安全是厂区非常重要的事情,对于人员在岗以及人员入侵可以起到良好的监管作用。'."\n"
+ .'- 停车场拥堵检测:通过停车场摄像头间隔时间内捕捉的两张图像,检测车辆以及相对位置,判断是否发生拥堵。'."\n"
+ .'- 道路拥堵检测:通过道路监控间隔时间内捕捉的前后图像,检测车辆以及相对位置,判断是否发生拥堵。'."\n"
."\n"
.'## 特色优势'."\n"
- ."\n"
- .'- 适用场景多:适应多种广泛的日常场景的目标检测,室内、室外、家居、店铺、商场、白天、夜间等。'."\n"
- .'- 检测范围广:可检测的目标大小范围广,适用于大目标检测,也适用于较远摄像头下的小目标检测。'."\n"
- .'- 检测效率高:高并发处理,处理时间短。'."\n"
+ .'检测数据量少:无需较大数据量的视频,仅通过检测两张图片,即可判断是否发生拥堵。'."\n"
."\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
- .'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectIPCObject?lang=JAVA&sdkStyle=old&params=%7B%22ImageURL%22%3A%22https%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectIPCObject%2FDetectIPCObject1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
+ .'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectVehicleICongestion?lang=JAVA&sdkStyle=dara&params=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectVehicleICongestion%2FDetectVehicleICongestion1.jpg%22%2C%22%20RoadRegion%22%3A%22%5B100%2C125%2C830%2C125%2C100%2C425%2C830%2C425%5D%22%2C%22RoadRegions%22%3A%5B%7B%22RoadRegion%22%3A%5B%7B%22Point%22%3A%7B%22X%22%3A100%2C%22Y%22%3A125%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A830%2C%22Y%22%3A125%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A100%2C%22Y%22%3A425%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A830%2C%22Y%22%3A425%7D%7D%5D%7D%5D%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
+ ."\n"
.'5. 开发接入步骤:'."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
- .'6. 示例代码:该能力常用语言的示例代码,请参见[IPC图像目标检测示例代码](~~604396~~)。'."\n"
- ."\n"
- .'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
+ .'6. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
@@ -1343,35 +641,32 @@
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPEG、JPG、PNG、BMP。'."\n"
- .'- 图像大小:不超过2 MB。'."\n"
- .'- 图像分辨率:大于20×20像素,小于1024×1024像素。并非越高清准确度越高,推荐值:最大边为640像素。'."\n"
- .'- URL地址中不能包含中文字符。'."\n"
- ."\n"
- .'## 计费说明'."\n"
- .'关于IPC图像目标检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
- ."\n"
- .'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectIPCObject)。',
+ .'- 图像大小:不超过500 KB。'."\n"
+ .'- 图像分辨率:大于20×20像素,小于800×800像素,长宽比小于等于2。'."\n"
+ .'- URL地址中不能包含中文字符。',
'responseParamsDescription' => '## SDK参考'."\n"
- .'阿里云视觉AI目标检测类目下的IPC图像目标检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
- ."\n"
- .'## 示例代码'."\n"
- .'该能力常用语言的示例代码,请参见[IPC图像目标检测示例代码](~~604396~~)。',
+ .'阿里云视觉AI目标检测类目下的车辆拥堵检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。',
'extraInfo' => '## 错误码'."\n"
- .'关于IPC图像目标检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
+ .'关于车辆拥堵检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
+ 'changeSet' => [
+ ['createdAt' => '2022-09-29T08:00:44.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2022-09-27T09:40:03.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
+ ['createdAt' => '2021-06-21T12:07:07.000Z', 'description' => '请求参数发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectVehicleICongestion'],
+ ],
+ ],
],
'DetectVideoIPCObject' => [
'summary' => '本文为您介绍目标检测(objectdet)类目下的IPC视频目标检测DetectVideoIPCObject的语法及示例。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1379,49 +674,25 @@
],
'operationType' => 'readAndWrite',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- ],
+ 'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'VideoURL',
'in' => 'formData',
- 'schema' => [
- 'title' => '视频文件URL地址',
- 'description' => '视频文件URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject1.mp4',
- 'isFileTransferUrl' => true,
- ],
+ 'schema' => ['title' => '视频文件URL地址', 'description' => '视频文件URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', 'type' => 'string', 'required' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject1.mp4', 'isFileTransferUrl' => true],
],
[
'name' => 'StartTimestamp',
'in' => 'formData',
- 'schema' => [
- 'title' => '视频的开始时间戳(秒),即UTC时间,默认为0',
- 'description' => '视频实际开始时间的时间戳。例如视频开始时间是2021年8月16日12:00,对应时间戳为1629086400。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'minimum' => '0',
- 'example' => '1629086400',
- ],
+ 'schema' => ['title' => '视频的开始时间戳(秒),即UTC时间,默认为0', 'description' => '视频实际开始时间的时间戳。例如视频开始时间是2021年8月16日12:00,对应时间戳为1629086400。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '0', 'example' => '1629086400'],
],
[
'name' => 'CallbackOnlyHasObject',
'in' => 'formData',
- 'schema' => [
- 'title' => '是否只有检测到物体才回调',
- 'description' => '是否回调消息过滤。'."\n"
- ."\n"
- .'- true:如果输入的视频中检测到有目标,才会执行回调,否则不执行。'."\n"
- .'- false: 无论是否检测到有目标,都执行回调。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'false',
- ],
+ 'schema' => ['title' => '是否只有检测到物体才回调', 'description' => '是否回调消息过滤。'."\n"
+ ."\n"
+ .'- true:如果输入的视频中检测到有目标,才会执行回调,否则不执行。'."\n"
+ .'- false: 无论是否检测到有目标,都执行回调。', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
],
],
'responses' => [
@@ -1431,35 +702,14 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'JobId',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917',
- ],
- 'Message' => [
- 'description' => '提交异步任务后的提示信息。',
- 'type' => 'string',
- 'example' => '该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。',
- ],
+ 'RequestId' => ['title' => 'JobId', 'description' => '请求ID。', 'type' => 'string', 'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917'],
+ 'Message' => ['description' => '提交异步任务后的提示信息。', 'type' => 'string', 'example' => '该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。'],
'Data' => [
'description' => '返回的结果数据内容。该数据需要在异步任务执行成功后,通过调用[GetAsyncJobResult](~~607824~~)接口,对其Result字段进行JSON反序列化之后得到。',
'type' => 'object',
'properties' => [
- 'Width' => [
- 'title' => '视频文件的分辨率(像素)',
- 'description' => '视频宽度分辨率,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1280',
- ],
- 'Height' => [
- 'title' => '视频文件的分辨率(像素)',
- 'description' => '视频高度分辨率,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '720',
- ],
+ 'Width' => ['title' => '视频文件的分辨率(像素)', 'description' => '视频宽度分辨率,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '1280'],
+ 'Height' => ['title' => '视频文件的分辨率(像素)', 'description' => '视频高度分辨率,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '720'],
'Frames' => [
'title' => '视频帧的集合,未检测到目标的帧不列出',
'description' => '视频帧的集合,未检测到目标的帧不列出。',
@@ -1468,13 +718,7 @@
'description' => '1',
'type' => 'object',
'properties' => [
- 'Time' => [
- 'title' => '视频帧时间,startTimestamp+视频帧的相对时间的值,单位毫秒,如果startTimestamp为空,则是相对时间',
- 'description' => '时间戳,单位秒。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '6124533574',
- ],
+ 'Time' => ['title' => '视频帧时间,startTimestamp+视频帧的相对时间的值,单位毫秒,如果startTimestamp为空,则是相对时间', 'description' => '时间戳,单位秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '6124533574'],
'Elements' => [
'description' => '检测到的目标集合,如果没有目标则为空。',
'type' => 'array',
@@ -1482,57 +726,23 @@
'description' => '1',
'type' => 'object',
'properties' => [
- 'Type' => [
- 'description' => '检测框对应的物体名称。取值如下:'."\n"
- ."\n"
- .'- PERSON:人'."\n"
- .'- VEHICLE:车辆'."\n"
- .'- PET:宠物',
- 'type' => 'string',
- 'example' => 'PERSON',
- ],
- 'X' => [
- 'description' => '左上角X轴坐标,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '289',
- ],
- 'Y' => [
- 'description' => '左上角Y轴坐标,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '271',
- ],
- 'Width' => [
- 'description' => '检测框宽度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'Height' => [
- 'description' => '检测框高度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '156',
- ],
- 'Score' => [
- 'description' => '检测框的置信度,取值范围为\\[0.0,1.0]。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.7812',
- ],
+ 'Type' => ['description' => '检测框对应的物体名称。取值如下:'."\n"
+ ."\n"
+ .'- PERSON:人'."\n"
+ .'- VEHICLE:车辆'."\n"
+ .'- PET:宠物', 'type' => 'string', 'example' => 'PERSON'],
+ 'X' => ['description' => '左上角X轴坐标,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '289'],
+ 'Y' => ['description' => '左上角Y轴坐标,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '271'],
+ 'Width' => ['description' => '检测框宽度,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'Height' => ['description' => '检测框高度,单位像素。', 'type' => 'integer', 'format' => 'int64', 'example' => '156'],
+ 'Score' => ['description' => '检测框的置信度,取值范围为\\[0.0,1.0]。', 'type' => 'number', 'format' => 'float', 'example' => '0.7812'],
],
],
],
],
],
],
- 'InputFile' => [
- 'title' => '输入文件信息',
- 'description' => '输入文件信息。',
- 'type' => 'string',
- 'example' => 'oss://viapi-test/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject4.mp4',
- ],
+ 'InputFile' => ['title' => '输入文件信息', 'description' => '输入文件信息。', 'type' => 'string', 'example' => 'oss://viapi-test/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject4.mp4'],
],
],
],
@@ -1541,28 +751,16 @@
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
+ ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
+ ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
+ ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"35B11E1B-800C-4598-B5AA-577E3BDBD917\\",\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\",\\n \\"Data\\": {\\n \\"Width\\": 1280,\\n \\"Height\\": 720,\\n \\"Frames\\": [\\n {\\n \\"Time\\": 6124533574,\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"PERSON\\",\\n \\"X\\": 289,\\n \\"Y\\": 271,\\n \\"Width\\": 100,\\n \\"Height\\": 156,\\n \\"Score\\": 0.7812\\n }\\n ]\\n }\\n ],\\n \\"InputFile\\": \\"oss://viapi-test/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject4.mp4\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectVideoIPCObjectResponse>\\n <RequestId>35B11E1B-800C-4598-B5AA-577E3BDBD917</RequestId>\\n <Message>该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。</Message>\\n</DetectVideoIPCObjectResponse>","errorExample":""}]',
@@ -1637,472 +835,136 @@
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
- ],
- 'DetectWorkwear' => [
- 'summary' => '本文为您介绍目标检测(objectdet)类目下的着装检测DetectWorkwear的语法及示例。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
- [
- 'name' => 'Clothes',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'description' => '着装参数设置',
- 'type' => 'object',
- 'properties' => [
- 'MaxNum' => [
- 'description' => '设定最多识别多少人体。最大值为5。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
- 'Threshold' => [
- 'description' => '设定阈值。取值范围0.0~1.0,数值越大,要求和样本数据相似度越高,默认0.4。',
- 'type' => 'number',
- 'format' => 'double',
- 'required' => false,
- 'example' => '0.4',
- ],
- ],
- 'required' => false,
- 'example' => 'AiStore',
- ],
- ],
- [
- 'name' => 'ImageUrl',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/zhangchaorun/tiyan/xxxx.jpg',
- 'isFileTransferUrl' => true,
- ],
- ],
- [
- 'name' => 'Labels',
- 'in' => 'formData',
- 'style' => 'repeatList',
- 'schema' => [
- 'type' => 'array',
- 'items' => [
- 'description' => '检测的属性,取值如下:'."\n"
- ."\n"
- .'- mask:口罩'."\n"
- .'- hat:帽子'."\n"
- .'- clothes:衣服'."\n"
- .'> clothes属性已废弃,检测结果将不再输出clothes(衣服)检测的结果。'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'hat',
- ],
- 'required' => false,
- 'maxItems' => 3,
- 'minItems' => 0,
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '16CA8094-D7BC-51D4-8D55-6AC59AB20E0B',
- ],
- 'Data' => [
- 'description' => '返回的结果数据内容。',
- 'type' => 'object',
- 'properties' => [
- 'Elements' => [
- 'description' => '检测结果。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Property' => [
- 'description' => '检测结果属性。仅当**Type**返回0或1时,该字段显示返回结果,否则返回为空。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '检测的属性。',
- 'type' => 'string',
- 'example' => 'hat',
- ],
- 'Probability' => [
- 'description' => '检测概率数据。',
- 'type' => 'object',
- 'properties' => [
- 'No' => [
- 'description' => '确定未戴口罩、未穿工装、未戴帽子的概率。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.00036084422',
- ],
- 'Threshold' => [
- 'description' => '系统推荐的阈值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'Unknown' => [
- 'description' => '未知概率。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.0006906331',
- ],
- 'Yes' => [
- 'description' => '确定戴口罩、穿工装、戴帽子的概率。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.9989485',
- ],
- ],
- ],
- ],
- ],
- ],
- 'Rectangles' => [
- 'description' => '检测结果位置信息。',
- 'type' => 'object',
- 'properties' => [
- 'Height' => [
- 'description' => '高度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '96',
- ],
- 'Left' => [
- 'description' => '左上角Y坐标,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1067',
- ],
- 'Top' => [
- 'description' => '左上角X坐标,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '426',
- ],
- 'Width' => [
- 'description' => '宽度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '88',
- ],
- ],
- ],
- 'Score' => [
- 'description' => '检测结果概率值。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.63913465',
- ],
- 'Type' => [
- 'description' => '检测结果类型。取值如下:'."\n"
- ."\n"
- .'- 0:人体'."\n"
- .'- 1:人头'."\n"
- .'- 2:人脸'."\n"
- .'- 3:手',
- 'type' => 'string',
- 'example' => '1',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
- ],
- 403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
- ],
- 408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
- ],
- 503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '500', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectVideoIPCObject'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"16CA8094-D7BC-51D4-8D55-6AC59AB20E0B\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Property\\": [\\n {\\n \\"Label\\": \\"hat\\",\\n \\"Probability\\": {\\n \\"No\\": 0.00036084422,\\n \\"Threshold\\": 0,\\n \\"Unknown\\": 0.0006906331,\\n \\"Yes\\": 0.9989485\\n }\\n }\\n ],\\n \\"Rectangles\\": {\\n \\"Height\\": 96,\\n \\"Left\\": 1067,\\n \\"Top\\": 426,\\n \\"Width\\": 88\\n },\\n \\"Score\\": 0.63913465,\\n \\"Type\\": \\"1\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectWorkwearResponse>\\r\\n <RequestId>16CA8094-D7BC-51D4-8D55-6AC59AB20E0B</RequestId>\\r\\n <Data>\\r\\n <Elements>\\r\\n <Property>\\r\\n <Label>hat</Label>\\r\\n <Probability>\\r\\n <No>0.00036084422</No>\\r\\n <Threshold>0</Threshold>\\r\\n <Unknown>0.0006906331</Unknown>\\r\\n <Yes>0.9989485</Yes>\\r\\n </Probability>\\r\\n </Property>\\r\\n <Rectangles>\\r\\n <Height>96</Height>\\r\\n <Left>1067</Left>\\r\\n <Top>426</Top>\\r\\n <Width>88</Width>\\r\\n </Rectangles>\\r\\n <Score>0.63913465</Score>\\r\\n <Type>1</Type>\\r\\n </Elements>\\r\\n </Data>\\r\\n</DetectWorkwearResponse>","errorExample":""}]',
- 'title' => '着装检测',
- 'description' => '## 服务说明'."\n"
- .'由于产品业务调整,着装检测服务于 即日起停止新用户开通调用,历史开通过该服务的老用户可继续调用,2026年04月20日后该服务将下架,不再支持新老用户调用,请尽早寻找替代方案。如果对着装检测 API 服务使用有疑问,可通过搜索钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
- ."\n"
- .'## 功能描述'."\n"
- .'着装检测能力基于视觉AI算法、物联网、大数据分析技术,检测指定场景范围内的人员帽子、口罩、工作服等穿戴情况,对不规范穿戴行为进行实时预警。'."\n"
- ."\n"
- .'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
- .'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
- ."\n\n"
- .'## 应用场景'."\n"
- .'工作人员规范着装识别:检测餐厅(后厨、前场)、服务大厅、工地、工厂、油田等场景下的工作人员着装(衣服、帽子、口罩等)是否合规,针对不规范行为进行实时预警,并提醒进行相应整改。'."\n"
- ."\n\n"
- .'## 特色优势'."\n"
- ."\n"
- .'- 识别准确:基于大量场景样本的基础上,对不同环境、光线、角度、目标状态等进行针对性的训练学习,算法模型识别精度高。'."\n"
- .'- 适应性强:算法模型场景适应性强,可直接用于不同空间布局的场景、各类餐厅后厨及用餐前场。'."\n"
- .'- 自研算法:通过多端多场景风险发现互通,形成检测、预警、整改、优化全链路闭环,结合数据分析、规则提取实现反哺生产,进而优化模型性能。'."\n"
- ."\n\n"
- .'## 输入限制'."\n"
- ."\n"
- .'- 图像格式:JPG、JPEG、PNG、BMP。'."\n"
- .'- 图像大小:不超过2 MB,长宽比建议为16:9。'."\n"
- .'- 图像分辨率:大于1080×720像素。'."\n"
- .'- URL地址中不能包含中文字符。'."\n"
- .'- 推荐的图像和检测目标的分辨率如下表所示。'."\n"
- .'![](https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/objectdet/cloth.png)'."\n"
- ."\n"
- .'## 安全声明'."\n"
- .'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
- .'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
- ."\n"
- .'## 计费说明'."\n"
- .'关于着装检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
- ."\n"
- .'> 下方调试接口为付费接口。',
- 'responseParamsDescription' => '## SDK参考'."\n"
- .'阿里云视觉AI目标检测类目下的着装检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
- ."\n"
- .'## 示例代码'."\n"
- .'该能力常用语言的示例代码,请参见[着装检测示例代码](~~477842~~)。',
],
- 'DetectKitchenAnimals' => [
- 'summary' => '本文为您介绍目标检测(objectdet)类目下的猫鼠识别DetectKitchenAnimals的语法及示例。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DetectWhiteBaseImage' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
- 'name' => 'ImageURLA',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '图像A的URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectKitchenAnimals/DetectKitchenAnimals-left1.png',
- 'isFileTransferUrl' => true,
- ],
- ],
- [
- 'name' => 'ImageURLB',
+ 'name' => 'ImageURL',
'in' => 'formData',
- 'schema' => [
- 'description' => '图像B的URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectKitchenAnimals/DetectKitchenAnimals-right1.png',
- 'isFileTransferUrl' => true,
- ],
+ 'schema' => ['description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', 'type' => 'string', 'required' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectWhiteBaseImage/DetectWhiteBaseImage1.jpg', 'isFileTransferUrl' => true],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'C306F16F-30E1-54F4-93DF-A52CCF6664D1',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7A7F9EEB-44C4-4592-9089-A6185B222B23'],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
- 'description' => '检测结果。',
+ 'description' => '返回判断结果。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'Type' => [
- 'description' => '检测结果类型。取值如下:'."\n"
- ."\n"
- .'- mouse:老鼠'."\n"
- .'- cat:猫',
- 'type' => 'string',
- 'example' => 'mouse',
- ],
- 'Score' => [
- 'description' => '检测结果概率值。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.75105053',
- ],
- 'Rectangles' => [
- 'description' => '检测目标位置。',
- 'type' => 'object',
- 'properties' => [
- 'Top' => [
- 'description' => '左上角X坐标,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1048',
- ],
- 'Left' => [
- 'description' => '左上角Y坐标,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '292',
- ],
- 'Height' => [
- 'description' => '高度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '64',
- ],
- 'Width' => [
- 'description' => '宽度,单位像素。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '64',
- ],
- ],
- ],
+ 'WhiteBase' => ['description' => '是否白底图。'."\n"
+ ."\n"
+ .'- 0:非白底'."\n"
+ ."\n"
+ .'- 1:白底'."\n"
+ ."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
+ 'description' => '',
],
],
],
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
+ ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
+ ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
+ ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C306F16F-30E1-54F4-93DF-A52CCF6664D1\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"mouse\\",\\n \\"Score\\": 0.75105053,\\n \\"Rectangles\\": {\\n \\"Top\\": 1048,\\n \\"Left\\": 292,\\n \\"Height\\": 64,\\n \\"Width\\": 64\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectKitchenAnimalsResponse>\\n <RequestId>C306F16F-30E1-54F4-93DF-A52CCF6664D1</RequestId>\\n <Data>\\n <Elements>\\n <Type>mouse</Type>\\n <Score>0.75105053</Score>\\n <Rectangles>\\n <Left>292</Left>\\n <Top>1048</Top>\\n <Height>64</Height>\\n <Width>64</Width>\\n </Rectangles>\\n </Elements>\\n <Elements>\\n <Type>cat</Type>\\n <Score>0.4602436</Score>\\n <Rectangles>\\n <Left>1344</Left>\\n <Top>208</Top>\\n <Height>112</Height>\\n <Width>164</Width>\\n </Rectangles>\\n </Elements>\\n </Data>\\n</DetectKitchenAnimalsResponse>","errorExample":""}]',
- 'title' => '猫鼠识别',
- 'description' => '## 服务说明'."\n"
- .'由于产品业务调整,猫鼠识别服务于 即日起停止新用户开通调用,历史开通过该服务的老用户可继续调用,2026年04月20日后该服务将下架,不再支持新老用户调用,请尽早寻找替代方案。如果对猫鼠识别 API 服务使用有疑问,可通过搜索钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
- ."\n"
- .'## 功能描述'."\n"
- .'猫鼠识别能力基于视觉AI算法、物联网和大数据分析技术,可以检测出场景中是否有猫、老鼠等动物,实现实时预警。'."\n"
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7A7F9EEB-44C4-4592-9089-A6185B222B23\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"WhiteBase\\": 0\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectWhiteBaseImageResponse>\\n <RequestId>7A7F9EEB-44C4-4592-9089-A6185B222B23</RequestId>\\n <Data>\\n <Elements>\\n <WhiteBase>0</WhiteBase>\\n </Elements>\\n </Data>\\n</DetectWhiteBaseImageResponse>","errorExample":""}]',
+ 'title' => '白底图检测',
+ 'summary' => '本文为您介绍目标检测(objectdet)类目下的白底图检测DetectWhiteBaseImage的语法及示例。',
+ 'description' => '## 功能描述'."\n"
+ .'白底图检测能力用于检测图片背景是否为白底图。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
+ .'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectWhiteBaseImage)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
+ ."\n\n"
+ .'## 接入指引'."\n"
+ .'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
+ .'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
+ .'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
+ .'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectWhiteBaseImage?lang=JAVA&sdkStyle=old&params=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectWhiteBaseImage%2FDetectWhiteBaseImage1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
."\n"
- .'## 应用场景'."\n"
- .'餐饮后厨或仓库:针对后厨操作间、食材存储仓库等场地,实时检测是否有猫、老鼠等动物,并进行实时预警,提醒工作人员进行相应处理防范。'."\n"
+ .'5. 开发接入步骤:'."\n"
+ .'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
+ .'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
+ .'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
- .'## 特色优势'."\n"
+ .'6. 示例代码:该能力常用语言的示例代码,请参见[白底图检测示例代码](~~604401~~)。'."\n"
."\n"
- .'- 识别准确:基于大量场景样本的基础上,对不同环境、光线、角度、目标状态等进行针对性的训练学习,算法模型识别精度高。'."\n"
- .'- 适应性强:算法模型场景适应性强,可直接用于不同空间布局的场景、各类餐厅后厨及用餐前场。'."\n"
- .'- 自研算法:通过多端多场景风险发现互通,形成检测、预警、整改、优化全链路闭环,结合数据分析、规则提取实现反哺生产,进而优化模型性能。'."\n"
- ."\n\n"
+ .'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
+ .'- [Web前端直接调用](~~467779~~)'."\n"
+ .'- [小程序场景下直接调用](~~467780~~)'."\n"
+ .'- [Android端直接调用](~~467781~~)'."\n"
+ .'- [iOS端直接调用](~~467782~~)'."\n"
."\n"
.'## 输入限制'."\n"
- ."\n"
- .'- 图像格式:JPG、JPEG、PNG、BMP。'."\n"
- .'- 图像大小:不超过4 MB,长宽比建议为16:9。'."\n"
- .'- 图像分辨率:大于1080×720像素。'."\n"
- .'- 输入的连续图像尺寸需要保持一致。'."\n"
- .'- 需要采集摄像头视角的图像。'."\n"
- .'- 图像URL地址中不能包含中文字符。'."\n"
- .'- 推荐的图像和检测目标的分辨率如下表所示。'."\n"
- .'![](https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/objectdet/cat_mouse.png)'."\n"
+ .'- 图像格式:JPG、JPEG、PNG。'."\n"
+ .'- 图像大小:不超过3 MB。'."\n"
+ .'- 图像分辨率:大于32×32像素,小于1280×1280像素。'."\n"
+ .'- URL地址中不能包含中文字符。'."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
.'## 计费说明'."\n"
- .'关于猫鼠识别的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
+ .'关于白底图检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
- .'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectKitchenAnimals)。',
+ .'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectWhiteBaseImage)。',
+ 'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK参考'."\n"
- .'阿里云视觉AI目标检测类目下的猫鼠识别能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
+ .'阿里云视觉AI目标检测类目下的白底图检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
- .'该能力常用语言的示例代码,请参见[猫鼠识别示例代码](~~604399~~)。',
+ .'该能力常用语言的示例代码,请参见[白底图检测示例代码](~~604401~~)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectWhiteBaseImage'],
+ ],
+ ],
],
'GetAsyncJobResult' => [
'summary' => '查询异步任务结果GetAsyncJobResult的语法及示例。',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2115,12 +977,7 @@
[
'name' => 'JobId',
'in' => 'formData',
- 'schema' => [
- 'description' => '异步接口返回的RequestId,输入后可以查询异步接口的真实请求结果。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917',
- ],
+ 'schema' => ['description' => '异步接口返回的RequestId,输入后可以查询异步接口的真实请求结果。', 'type' => 'string', 'required' => true, 'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917'],
],
],
'responses' => [
@@ -2129,47 +986,23 @@
'description' => '1',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '87FC80D2-2571-4BBD-BD61-AFF7912C556D',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '87FC80D2-2571-4BBD-BD61-AFF7912C556D'],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
- 'Status' => [
- 'description' => '异步任务状态。包括:'."\n"
- ."\n"
- .'- QUEUING:任务排队中'."\n"
- .'- PROCESSING:异步处理中'."\n"
- .'- PROCESS_SUCCESS:处理成功'."\n"
- .'- PROCESS_FAILED:处理失败'."\n"
- .'- TIMEOUT_FAILED:任务超时未处理完成'."\n"
- .'- LIMIT_RETRY_FAILED:超过最大重试次数',
- 'type' => 'string',
- 'example' => 'PROCESS_SUCCESS',
- ],
- 'ErrorMessage' => [
- 'description' => '异步任务错误码信息。',
- 'type' => 'string',
- 'example' => 'paramsIllegal',
- ],
- 'Result' => [
- 'description' => '异步任务返回的真实请求结果。',
- 'type' => 'string',
- 'example' => '{\\"inputFile\\":\\"oss://public-vigen-video/guotian.xgt/test_images/test_video\\",\\"width\\":1280,\\"height\\":720,\\"frames\\":[{\\"time\\":6124533574,\\"elements\\":[{\\"type\\":\\"PERSON\\",\\"score\\":0.7812,\\"x\\":289,\\"y\\":271,\\"width\\":100,\\"height\\":156},{\\"type\\":\\"PERSON\\",\\"score\\":0.4377,\\"x\\":917,\\"y\\":267,\\"width\\":34,\\"height\\":51}]}]}]}"}',
- ],
- 'ErrorCode' => [
- 'description' => '异步任务错误码。',
- 'type' => 'string',
- 'example' => 'InvalidParameter',
- ],
- 'JobId' => [
- 'description' => '异步任务ID。',
- 'type' => 'string',
- 'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917',
- ],
+ 'Status' => ['description' => '异步任务状态。包括:'."\n"
+ ."\n"
+ .'- QUEUING:任务排队中'."\n"
+ .'- PROCESSING:异步处理中'."\n"
+ .'- PROCESS_SUCCESS:处理成功'."\n"
+ .'- PROCESS_FAILED:处理失败'."\n"
+ .'- TIMEOUT_FAILED:任务超时未处理完成'."\n"
+ .'- LIMIT_RETRY_FAILED:超过最大重试次数', 'type' => 'string', 'example' => 'PROCESS_SUCCESS'],
+ 'ErrorMessage' => ['description' => '异步任务错误码信息。', 'type' => 'string', 'example' => 'paramsIllegal'],
+ 'Result' => ['description' => '异步任务返回的真实请求结果。', 'type' => 'string', 'example' => '{\\"inputFile\\":\\"oss://public-vigen-video/guotian.xgt/test_images/test_video\\",\\"width\\":1280,\\"height\\":720,\\"frames\\":[{\\"time\\":6124533574,\\"elements\\":[{\\"type\\":\\"PERSON\\",\\"score\\":0.7812,\\"x\\":289,\\"y\\":271,\\"width\\":100,\\"height\\":156},{\\"type\\":\\"PERSON\\",\\"score\\":0.4377,\\"x\\":917,\\"y\\":267,\\"width\\":34,\\"height\\":51}]}]}]}"}'],
+ 'ErrorCode' => ['description' => '异步任务错误码。', 'type' => 'string', 'example' => 'InvalidParameter'],
+ 'JobId' => ['description' => '异步任务ID。', 'type' => 'string', 'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917'],
],
],
],
@@ -2178,28 +1011,16 @@
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ParameterError',
- 'errorMessage' => 'The parameter is invalid. Please check again.',
- ],
+ ['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
- [
- 'errorCode' => 'AuthFailed',
- 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
- ],
+ ['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
- [
- 'errorCode' => 'Timeout',
- 'errorMessage' => 'The request has timed out.',
- ],
+ ['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
- [
- 'errorCode' => 'ServiceUnavailable',
- 'errorMessage' => 'The service is unavailable.',
- ],
+ ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"87FC80D2-2571-4BBD-BD61-AFF7912C556D\\",\\n \\"Data\\": {\\n \\"Status\\": \\"PROCESS_SUCCESS\\",\\n \\"ErrorMessage\\": \\"paramsIllegal\\",\\n \\"Result\\": \\"{\\\\\\\\\\\\\\"inputFile\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"oss://public-vigen-video/guotian.xgt/test_images/test_video\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":1280,\\\\\\\\\\\\\\"height\\\\\\\\\\\\\\":720,\\\\\\\\\\\\\\"frames\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"time\\\\\\\\\\\\\\":6124533574,\\\\\\\\\\\\\\"elements\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PERSON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\":0.7812,\\\\\\\\\\\\\\"x\\\\\\\\\\\\\\":289,\\\\\\\\\\\\\\"y\\\\\\\\\\\\\\":271,\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":100,\\\\\\\\\\\\\\"height\\\\\\\\\\\\\\":156},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PERSON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\":0.4377,\\\\\\\\\\\\\\"x\\\\\\\\\\\\\\":917,\\\\\\\\\\\\\\"y\\\\\\\\\\\\\\":267,\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":34,\\\\\\\\\\\\\\"height\\\\\\\\\\\\\\":51}]}]}]}\\\\\\"}\\",\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"JobId\\": \\"35B11E1B-800C-4598-B5AA-577E3BDBD917\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>87FC80D2-2571-4BBD-BD61-AFF7912C556D</RequestId>\\n<Data>\\n <Status>PROCESS_SUCCESS</Status>\\n <ErrorMessage>paramsIllegal</ErrorMessage>\\n <Result>{\\\\\\"inputFile\\\\\\":\\\\\\"oss://public-vigen-video/guotian.xgt/test_images/test_video\\\\\\",\\\\\\"width\\\\\\":1280,\\\\\\"height\\\\\\":720,\\\\\\"frames\\\\\\":[{\\\\\\"time\\\\\\":6124533574,\\\\\\"elements\\\\\\":[{\\\\\\"type\\\\\\":\\\\\\"PERSON\\\\\\",\\\\\\"score\\\\\\":0.7812,\\\\\\"x\\\\\\":289,\\\\\\"y\\\\\\":271,\\\\\\"width\\\\\\":100,\\\\\\"height\\\\\\":156},{\\\\\\"type\\\\\\":\\\\\\"PERSON\\\\\\",\\\\\\"score\\\\\\":0.4377,\\\\\\"x\\\\\\":917,\\\\\\"y\\\\\\":267,\\\\\\"width\\\\\\":34,\\\\\\"height\\\\\\":51}]}]}]}\\"}</Result>\\n <ErrorCode>InvalidParameter</ErrorCode>\\n <JobId>35B11E1B-800C-4598-B5AA-577E3BDBD917</JobId>\\n</Data>","errorExample":""}]',
@@ -2220,12 +1041,379 @@
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
+ 'changeSet' => [
+ ['createdAt' => '2021-04-08T02:46:22.000Z', 'description' => 'OpenAPI 下线'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:GetAsyncJobResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
],
],
'endpoints' => [
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'objectdet.cn-shanghai.aliyuncs.com', 'endpoint' => 'objectdet.cn-shanghai.aliyuncs.com', 'vpc' => 'objectdet-vpc.cn-shanghai.aliyuncs.com'],
+ ],
+ 'errorCodes' => [
+ ['code' => 'AuthFailed', 'message' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'http_code' => 403, 'description' => '授权失败,请检查RAM权限配置,操作流程可参考https://help.aliyun.com/document_detail/145025.htm。'],
+ ['code' => 'ClientError.IllegalArgument', 'message' => 'The request parameter has an error.', 'http_code' => 400, 'description' => '请求参数错误,详情查看message信息'],
+ ['code' => 'Data.Exist', 'message' => 'The data already exists.', 'http_code' => 409, 'description' => '数据已经存在'],
+ ['code' => 'EntityNotExist.Role', 'message' => '没有Ram权限,请联系主账号给你添加AliyunVIAPIFullAccess权限,操作流程可参考https://help.aliyun.com/document_detail/145025.htm', 'http_code' => 400, 'description' => '没有Ram权限,请联系主账号给你添加AliyunVIAPIFullAccess权限,操作流程可参考https://help.aliyun.com/document_detail/145025.htm'],
+ ['code' => 'IllegalUrlParameter', 'message' => 'Url不合法,请检查url能否正常打开', 'http_code' => 400, 'description' => 'Url不合法,请检查url能否正常打开 - 非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html '],
+ ['code' => 'InternalError', 'message' => 'An error occurred to the algorithm service.', 'http_code' => 500, 'description' => '算法服务报错,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。 '],
+ ['code' => 'InternalError.Algo', 'message' => 'An algorithm error occurred.', 'http_code' => 500, 'description' => '算法服务报错,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。 '],
+ ['code' => 'InternalError.Busy', 'message' => 'Server busy.', 'http_code' => 500, 'description' => '后台服务忙,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InternalError.Convert', 'message' => 'Failed to convert input parameters.', 'http_code' => 500, 'description' => '输入参数转换失败。'],
+ ['code' => 'InternalError.Decode', 'message' => 'Failed to decode the image.', 'http_code' => 500, 'description' => '图像解码失败,请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InternalError.Env', 'message' => 'Failed to initilize the environment.', 'http_code' => 500, 'description' => '初始化环境失败。请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InternalError.Mapping', 'message' => 'An algorithm error occurred.', 'http_code' => 500, 'description' => '内部算法处理错误'],
+ ['code' => 'InternalError.Model', 'message' => 'Failed to load the model.', 'http_code' => 500, 'description' => '模型加载错误,请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InternalError.Process', 'message' => 'An error occurred during inference.', 'http_code' => 500, 'description' => '推理过程异常,请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InternalError.Remote', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => '远程服务不可用,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InternalError.Server', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => '系统内部错误,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InternalError.Timeout', 'message' => 'The request has timed out.', 'http_code' => 500, 'description' => '算法服务报错,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。 '],
+ ['code' => 'InternalError.Transfer', 'message' => 'Failed to download or upload data. Procedure', 'http_code' => 500, 'description' => '下载或上传数据失败。'],
+ ['code' => 'InternalServerError', 'message' => 'A server error occurred while processing your request.', 'http_code' => 500, 'description' => '系统内部错误,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'InvalidAccessKeyId.Inactive', 'message' => 'AccessKeyId非法,请检查AccessKeyId是否被禁用,或者AccessKeyId和AccessKeySecret是否填写正确。', 'http_code' => 400, 'description' => 'AccessKeyId非法,请检查AccessKeyId是否被禁用,或者AccessKeyId和AccessKeySecret是否填写正确。请参考文档:https://help.aliyun.com/document\\_detail/175144.html,进入控制台,将对应的AccessKey启用。 '],
+ ['code' => 'InvalidAccessKeyId.NotFound', 'message' => 'AccessKeyId未找到,请检查AccessKeyId和AccessKeySecret是否填写正确。', 'http_code' => 400, 'description' => 'AccessKeyId未找到,请检查AccessKeyId和AccessKeySecret是否填写正确。请参考文档:https://help.aliyun.com/document\\_detail/175144.html,进入控制台,找到对应的AccessKeyId和AccessKeySecret。如果AccessKeySecret未保存,主账号可以通过查看Secret找回,子账号无法找回,可以新建一个AccessKey。 '],
+ ['code' => 'InvalidAccessKeySecret', 'message' => 'AccessKeyId或AccessKeySecret填写错误,请检查AccessKeyId和AccessKeySecret是否填写正确。', 'http_code' => 400, 'description' => 'AccessKeyId或AccessKeySecret填写错误,请检查AccessKeyId和AccessKeySecret是否填写正确。请参考文档:https://help.aliyun.com/document\\_detail/175144.html,进入控制台,找到对应的AccessKeyId和AccessKeySecret。如果AccessKeySecret未保存,主账号可以通过查看Secret找回,子账号无法找回,可以新建一个AccessKey。 '],
+ ['code' => 'InvalidAction.NotFound', 'message' => '能力未找到,请检查类目与能力是否匹配,检查访问域名与能力是否匹配,关于访问域名可参考:https://help.aliyun.com/document_detail/143103.htm。SDK接入请参考:https://help.aliyun.com/document_detail/145033.html,选择合适编程语言根据实例代码作相关修改进行接入。', 'http_code' => 400, 'description' => '能力未找到,请检查类目与能力是否匹配,检查访问域名与能力是否匹配,关于访问域名可参考:https://help.aliyun.com/document_detail/143103.htm。SDK接入请参考:https://help.aliyun.com/document_detail/145033.html,选择合适编程语言根据实例代码作相关修改进行接入。'],
+ ['code' => 'InvalidApi.ForbiddenInvoke', 'message' => '调用受限,请检查您调用的能力是否为受限能力,受限能力需要在控制台https://vision.console.aliyun.com/找到相应能力申请经过审批之后才能调用。如非上述情况,请检查账号是否欠费', 'http_code' => 400, 'description' => '调用受限,请检查您调用的能力是否为受限能力,受限能力需要在控制台https://vision.console.aliyun.com/找到相应能力申请经过审批之后才能调用。如非上述情况,请检查账号是否欠费'],
+ ['code' => 'InvalidApi.NotPurchase', 'message' => '产品未开通,请开通产品:https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open', 'http_code' => 400, 'description' => '产品未开通,请开通产品:https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open'],
+ ['code' => 'InvalidApi.OutOfService', 'message' => '产品未开通,请开通产品:https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open', 'http_code' => 400, 'description' => '产品未开通,请开通产品:https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open'],
+ ['code' => 'InvalidFile.Content', 'message' => 'The content format of the image or video is invalid.', 'http_code' => 400, 'description' => '请参考算法文档检查文件内容,更换包含符合算法要求的 '],
+ ['code' => 'InvalidFile.Decode', 'message' => 'Failed to decode the file.', 'http_code' => 400, 'description' => '请检查文件是否能够正常打开 '],
+ ['code' => 'InvalidFile.Download', 'message' => 'Failed to download the file.', 'http_code' => 400, 'description' => '文件无法下载,请检查链接是否可访问和本地网络情况 - 非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html。请检查OSS链接是否过期等。 '],
+ ['code' => 'InvalidFile.Region', 'message' => 'The URL format of the file is invalid.', 'http_code' => 400, 'description' => '文件链接地域不对,非上海OSS文件链接请参考:https://help.aliyun.com/document\\_detail/155645.html '],
+ ['code' => 'InvalidFile.Resolution', 'message' => 'The resolution of the image or video is invalid.', 'http_code' => 400, 'description' => '文件分辨率超出限制,请检查文件分辨率和内容,修改文件分辨率后重试 '],
+ ['code' => 'InvalidFile.Type', 'message' => 'The file type of the image or video is invalid.', 'http_code' => 400, 'description' => '文件类型错误,请检查文件类型 - 请参考算法API文档,使用算法支持的文件类型。阿里云视觉智能开放平台能够读取文件并获取真实的文件类型,不是通过文件后缀名进行类型判断,只看文件后缀名是无效的,关于更多文件类型判断和处理信息可参考:https://help.aliyun.com/document_detail/470250.html'],
+ ['code' => 'InvalidFile.Unsafe', 'message' => 'Risky file URL.', 'http_code' => 400, 'description' => '不安全的文件链接,请确保上传的图片或文件来源符合相应的法律法规。'],
+ ['code' => 'InvalidFile.URL', 'message' => 'The URL format of the file is invalid.', 'http_code' => 400, 'description' => '文件无法下载,请检查链接是否可访问和本地网络情况 - 非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html。请检查OSS链接是否过期等。 '],
+ ['code' => 'InvalidImage.Content', 'message' => '请参考算法文档检查图片内容,更换包含符合算法要求的', 'http_code' => 400, 'description' => '请参考算法文档检查图片内容,更换包含符合算法要求的'],
+ ['code' => 'InvalidImage.Decode', 'message' => 'The content format of the image or video is invalid.', 'http_code' => 400, 'description' => '请检查图片是否能够正常打开 '],
+ ['code' => 'InvalidImage.Download', 'message' => 'Failed to download the file.', 'http_code' => 400, 'description' => '图片无法下载,请检查链接是否可访问和本地网络情况 - 非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html。URL中不支持空格和中文字符,如包含请通过urlEncode编码之后再传入。请检查OSS链接是否过期等。 '],
+ ['code' => 'InvalidImage.NotFound', 'message' => 'The image file is not found in the parameter.', 'http_code' => 404, 'description' => '参数中的图片文件不存在'],
+ ['code' => 'InvalidImage.NotFoundFace', 'message' => 'No face is detected in the specified image.', 'http_code' => 404, 'description' => '图像中没找到人脸,请检查您的图像中是否包含人脸或人脸太小 '],
+ ['code' => 'InvalidImage.Region', 'message' => 'The URL format of the file is invalid.', 'http_code' => 400, 'description' => '图片链接地域不对,非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html\\\\ '],
+ ['code' => 'InvalidImage.Resolution', 'message' => 'The resolution of the image or video is invalid.', 'http_code' => 400, 'description' => '文件分辨率超出限制,请检查文件分辨率和内容,修改文件分辨率后重试 '],
+ ['code' => 'InvalidImage.Timeout', 'message' => 'Failed to download the file due to timeout.', 'http_code' => 400, 'description' => '图片下载超时,请检查链接是否可访问和本地网络情况 - 非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html。请检查OSS链接是否过期等。 '],
+ ['code' => 'InvalidImage.Type', 'message' => '图片类型错误,请检查图片类型 - 请参考算法API文档,使用算法支持的图片类型', 'http_code' => 400, 'description' => '图片类型错误,请检查图片类型 - 请参考算法API文档,使用算法支持的图片类型'],
+ ['code' => 'InvalidImage.Unsafe', 'message' => 'Risky file URL.', 'http_code' => 400, 'description' => 'URL不安全。请确保上传的图片或文件来源符合相应的法律法规。'],
+ ['code' => 'InvalidImage.URL', 'message' => 'The URL format of the file is invalid or URL access has failed.', 'http_code' => 400, 'description' => '图片链接非法,请检查图片链接是否可访问 - 非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html。对于上海oss链接请使用标准的oss域名,目前暂不支持绑定cdn域名和自定义域名。 '],
+ ['code' => 'InvalidImage.URL', 'message' => 'The URL format of the file is invalid.', 'http_code' => 400, 'description' => '图片链接非法,请检查图片链接是否可访问 - 非上海OSS图片链接请参考:https://help.aliyun.com/document\\_detail/155645.html。对于上海oss链接请使用标准的oss域名,目前暂不支持绑定cdn域名和自定义域名。 '],
+ ['code' => 'InvalidImageType', 'message' => 'Invalid image type.', 'http_code' => 400, 'description' => '无效的图片类型。请参考调用能力的文档输入文档中支持的图片类型。'],
+ ['code' => 'InvalidParameter', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => '参数错误,请根据算法API文档和报错Message检查参数值。是否参数值前后多了空格或者其他特殊字符等。 '],
+ ['code' => 'InvalidParameter.BadRequest', 'message' => 'The request parameter or the data has an error.', 'http_code' => 400, 'description' => '参数错误,请根据算法API文档和报错Message检查参数值。是否参数值前后多了空格或者其他特殊字符等。 '],
+ ['code' => 'InvalidParameter.NotFound', 'message' => 'The requested data is not found.', 'http_code' => 400, 'description' => '参数错误,请根据算法API文档和报错Message检查参数值。是否参数值前后多了空格或者其他特殊字符等。 '],
+ ['code' => 'InvalidParameter.TooLarge', 'message' => 'The file size exceeds the limit.', 'http_code' => 400, 'description' => '参数错误,文件大小超出限制,请参考算法API文档调整文件大小 '],
+ ['code' => 'InvalidParameter.Type', 'message' => 'The data format of the request parameter is invalid.', 'http_code' => 400, 'description' => '请求参数的数据格式错误'],
+ ['code' => 'InvalidParameter.Unsuitable', 'message' => 'The data is empty or not suitable for processing.', 'http_code' => 400, 'description' => '数据为空或不适合被处理。'],
+ ['code' => 'InvalidParamter.Type', 'message' => 'The data format of the request parameter is invalid.', 'http_code' => 400, 'description' => '请求参数的数据格式错误'],
+ ['code' => 'InvalidRamRole', 'message' => '没有Ram权限,请联系主账号给你添加AliyunVIAPIFullAccess权限,操作流程可参考https://help.aliyun.com/document_detail/145025.htm', 'http_code' => 400, 'description' => '没有Ram权限,请联系主账号给你添加AliyunVIAPIFullAccess权限,操作流程可参考https://help.aliyun.com/document_detail/145025.htm'],
+ ['code' => 'InvalidResult', 'message' => '参数错误,请参考文档检查参数值,检查文件内容。请检查是否图片内容不完整或者太模糊等。', 'http_code' => 400, 'description' => '参数错误,请参考文档检查参数值,检查文件内容。请检查是否图片内容不完整或者太模糊等。'],
+ ['code' => 'InvalidSide', 'message' => 'Specified parameter Side is not valid. 请参考文档填写正确的Side参数', 'http_code' => 400, 'description' => 'Specified parameter Side is not valid. 请参考文档填写正确的Side参数'],
+ ['code' => 'InvalidTimeStamp.Expired', 'message' => '时间戳过期,请更新时间戳', 'http_code' => 400, 'description' => '时间戳过期,请更新时间戳。可以参考https://help.aliyun.com/document\\_detail/144904.html文档计算请求签名。如果您的语言比较常用,推荐使用SDK进行调用,详情可参考:https://help.aliyun.com/document\\_detail/145033.html '],
+ ['code' => 'InvalidVersion', 'message' => 'Specified parameter Version is not valid', 'http_code' => 400, 'description' => '版本未找到,请检查SDK版本是否匹配,检查版本与类目和能力是否匹配,关于SDK版本可参考:https://help.aliyun.com/document_detail/145033.html'],
+ ['code' => 'MissingAccessKeyId', 'message' => 'AccessKeyId未填写,请检查AccessKeyId和AccessKeySecret是否填写正确。', 'http_code' => 400, 'description' => 'AccessKeyId未填写,请检查AccessKeyId和AccessKeySecret是否填写正确。请参考文档:https://help.aliyun.com/document\\_detail/175144.html,进入控制台,找到对应的AccessKeyId和AccessKeySecret。如果AccessKeySecret未保存,主账号可以通过查看Secret找回,子账号无法找回,可以新建一个AccessKey。 '],
+ ['code' => 'MissingFileURL', 'message' => 'FileURL is required for this operation.', 'http_code' => 400, 'description' => '缺少文件参数FileURL,该参数为文件URL地址,文件输入推荐使用华东2(上海)区域的OSS链接-非上海OSS文件链接请参考:'."\n"
+ .'https://help.aliyun.com/document_detail/155645.html'],
+ ['code' => 'MissingImageURL', 'message' => 'ImageURL is required for this operation.', 'http_code' => 400, 'description' => '缺少图像参数ImageURL,该参数为图片URL地址,文件输入推荐使用华东2(上海)区域的OSS链接-非上海OSS文件链接请参考:'."\n"
+ .'https://help.aliyun.com/document_detail/155645.html'],
+ ['code' => 'MissingLimit', 'message' => 'Limit is required for this operation', 'http_code' => 400, 'description' => '缺少Limit参数,该参数是接口必填参数。推荐使用对应类目的SDK进行调用:https://help.aliyun.com/document_detail/145033.html'],
+ ['code' => 'MissingParameter', 'message' => 'A required parameter is not specified.', 'http_code' => 400, 'description' => '参数缺失,请参考文档检查参数值。'],
+ ['code' => 'MissingTasks', 'message' => 'Tasks is required for this operation.', 'http_code' => 400, 'description' => '缺少Tasks参数,该参数是接口必填参数。推荐使用对应类目的SDK进行调用:https://help.aliyun.com/document_detail/145033.html'],
+ ['code' => 'ParameterError', 'message' => 'The parameter is invalid. Please check again.', 'http_code' => 400, 'description' => '参数错误,请检查参数值。'],
+ ['code' => 'QuotaExceeded.DbCount', 'message' => 'The number of database exceeds the limit.', 'http_code' => 400, 'description' => '数据库数量超出限制'],
+ ['code' => 'QuotaExceeded.FaceGroupCount', 'message' => 'The number of database exceeds the limit.', 'http_code' => 400, 'description' => '数据库数量超出限制'],
+ ['code' => 'QuotaExceeded.FaceImageCount', 'message' => 'The number of image or trace exceeds the limit.', 'http_code' => 400, 'description' => '人脸、Trace数量超出限制,请根据文档中的限制检查,如需调整限制,请通过钉钉群(23109592)联系我们。'],
+ ['code' => 'QuotaExceeded.ImageCount', 'message' => 'The number of image or trace exceeds the limit.', 'http_code' => 400, 'description' => '人脸、Trace数量超出限制,请根据文档中的限制检查,如需调整限制,请通过钉钉群(23109592)联系我们。'],
+ ['code' => 'Retry', 'message' => 'An error occurred due to jitter. Please try again.', 'http_code' => 449, 'description' => '由于网络抖动等偶发原因导致失败,需要重试'],
+ ['code' => 'SDK.ServerUnreachable', 'message' => 'An SDK client error occurred.', 'http_code' => 400, 'description' => 'SDK端错误'],
+ ['code' => 'ServiceUnavailable', 'message' => 'The service is unavailable.', 'http_code' => 503, 'description' => '服务不可用,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'ServiceUnavailable', 'message' => 'A network error occurred.', 'http_code' => 500, 'description' => '算法服务报错,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。 '],
+ ['code' => 'SignatureDoesNotMatch', 'message' => '签名不正确,请重新计算签名。关于签名可参考文档:https://help.aliyun.com/document_detail/144904.html', 'http_code' => 400, 'description' => '签名不正确,请重新计算签名。可以参考https://help.aliyun.com/document\\_detail/144904.html文档计算请求签名。如果您的语言比较常用,推荐使用SDK进行调用,详情可参考:https://help.aliyun.com/document\\_detail/145033.html '],
+ ['code' => 'SignatureNonceUsed', 'message' => '签名已经被使用过,请重新计算签名。关于签名可参考文档:https://help.aliyun.com/document_detail/144904.html', 'http_code' => 400, 'description' => '签名已经被使用过,请重新计算签名。可以参考https://help.aliyun.com/document\\_detail/144904.html文档计算请求签名。如果您的语言比较常用,推荐使用SDK进行调用,详情可参考:https://help.aliyun.com/document\\_detail/145033.html '],
+ ['code' => 'Throttling', 'message' => 'The request was denied due to QPS limits.', 'http_code' => 400, 'description' => '调用被限流,请稍后再调用,或者购买QPS提升调用限制。关于QPS限制提升流程和处理请参考:https://help.aliyun.com/document_detail/604963.html。如果因业务需求需要更多QPS可通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群与平台取得联系。'],
+ ['code' => 'Throttling.User', 'message' => 'The request was denied due to QPS limits.', 'http_code' => 400, 'description' => '调用被限流,请稍后再调用,或者购买QPS提升调用限制。关于QPS限制提升流程和处理请参考:https://help.aliyun.com/document_detail/604963.html。如果因业务需求需要更多QPS可通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群与平台取得联系。'],
+ ['code' => 'Timeout', 'message' => 'The request has timed out.', 'http_code' => 408, 'description' => '请求超时,请稍后重试。如重试后还报错请通过钉钉搜索群号23109592,加入阿里云视觉智能开放平台咨询群,与平台取得联系。'],
+ ['code' => 'Unauthorized', 'message' => 'RAM authentication failed.', 'http_code' => 403, 'description' => '没有Ram权限,请联系主账号给你添加AliyunVIAPIFullAccess权限,操作流程可参考https://help.aliyun.com/document\\_detail/145025.htm '],
+ ['code' => 'UnsupportedHTTPMethod', 'message' => 'The HTTP request method is not supported.', 'http_code' => 403, 'description' => 'HTTP请求方法不支持。建议查看各个产品的API调用方式文档。'],
+ ],
+ 'changeSet' => [
+ [
+ 'apis' => [
+ ['description' => '错误码发生变更', 'api' => 'DetectMainBody'],
+ ['description' => '错误码发生变更', 'api' => 'DetectTransparentImage'],
+ ['description' => '错误码发生变更', 'api' => 'GenerateVehicleRepairPlan'],
+ ],
+ 'createdAt' => '2022-11-07T01:42:01.000Z',
+ 'description' => '调整用户和API调用频率',
+ ],
+ [
+ 'apis' => [
+ ['description' => '响应参数发生变更', 'api' => 'DetectVideoIPCObject'],
+ ],
+ 'createdAt' => '2022-10-17T02:03:42.000Z',
+ 'description' => '修改异步任务Message为可见',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'DetectIPCObject'],
+ ['description' => '请求参数发生变更', 'api' => 'DetectKitchenAnimals'],
+ ['description' => '请求参数发生变更', 'api' => 'DetectVehicleICongestion'],
+ ['description' => '请求参数发生变更', 'api' => 'DetectVehicleIllegalParking'],
+ ['description' => '请求参数发生变更', 'api' => 'GetVehicleRepairPlan'],
+ ],
+ 'createdAt' => '2022-09-29T08:00:52.000Z',
+ 'description' => '多url参数支持本地文件上传',
+ ],
+ [
+ 'apis' => [
+ ['description' => '响应参数发生变更', 'api' => 'DetectKitchenAnimals'],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DetectVehicleICongestion'],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DetectVehicleIllegalParking'],
+ ['description' => '响应参数发生变更', 'api' => 'DetectVideoIPCObject'],
+ ],
+ 'createdAt' => '2022-09-27T09:40:15.000Z',
+ 'description' => '修改obj为可见',
+ ],
[
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'objectdet.cn-shanghai.aliyuncs.com',
+ 'apis' => [
+ ['description' => '错误码发生变更', 'api' => 'ClassifyVehicleInsurance'],
+ ['description' => '错误码发生变更', 'api' => 'DetectVehicle'],
+ ['description' => '错误码发生变更', 'api' => 'GetVehicleRepairPlan'],
+ ['description' => '错误码发生变更', 'api' => 'RecognizeVehicleDamage'],
+ ['description' => '错误码发生变更', 'api' => 'RecognizeVehicleDashboard'],
+ ['description' => '错误码发生变更', 'api' => 'RecognizeVehicleParts'],
+ ],
+ 'createdAt' => '2022-03-30T09:08:25.000Z',
+ 'description' => '调整用户调用频率',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'DetectWorkwear'],
+ ],
+ 'createdAt' => '2022-01-13T09:01:19.000Z',
+ 'description' => '修改参数属性',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'OpenAPI 下线', 'api' => 'DetectKitchenAnimals'],
+ ['description' => 'OpenAPI 下线', 'api' => 'DetectWorkwear'],
+ ],
+ 'createdAt' => '2021-10-29T08:17:36.000Z',
+ 'description' => '新增猫鼠检测、着装检测pop',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'DetectVehicleICongestion'],
+ ['description' => '请求参数发生变更', 'api' => 'DetectVehicleIllegalParking'],
+ ],
+ 'createdAt' => '2021-06-21T12:08:40.000Z',
+ 'description' => '新增可选入参 streamArn ',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'OpenAPI 下线', 'api' => 'DetectVideoFrame'],
+ ],
+ 'createdAt' => '2021-05-27T08:51:58.000Z',
+ 'description' => '新增API: 视频帧回调API,用来检测视频流中的目标等',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'DetectVideoIPCObject'],
+ ],
+ 'createdAt' => '2021-04-25T07:55:19.000Z',
+ 'description' => '新增参数CallbackOnlyHasObject',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'DetectVideoIPCObject'],
+ ],
+ 'createdAt' => '2021-04-15T02:17:20.000Z',
+ 'description' => '新增入参StartTimestamp',
+ ],
+ [
+ 'apis' => [
+ ['description' => '响应参数发生变更', 'api' => 'DetectVideoIPCObject'],
+ ],
+ 'createdAt' => '2021-04-08T11:34:47.000Z',
+ 'description' => '新增输出字段inputFile',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'OpenAPI 下线', 'api' => 'DetectVideoIPCObject'],
+ ['description' => 'OpenAPI 下线', 'api' => 'GetAsyncJobResult'],
+ ],
+ 'createdAt' => '2021-04-08T05:59:01.000Z',
+ 'description' => '新增API: DetectIPCObject',
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectMainBody'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectVehicleICongestion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectVehicleIllegalParking'],
+ ['threshold' => '2000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectIPCObject'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectWorkwear'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectKitchenAnimals'],
+ ['threshold' => '500', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectVideoIPCObject'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectWhiteBaseImage'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectObject'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'VisualIntelligenceAPI',
+ 'productName' => '视觉智能开放平台',
+ 'ramCodes' => ['viapi-imageseg', 'viapi-imageaudit', 'viapi-ocr', 'viapi-objectdet', 'viapi-imageenhan', 'viapi-videorecog', 'viapi-imageprocess', 'viapi', 'viapi-ekyc', 'viapi-imgsearch', 'viapi-goodstech', 'viapi-facebody', 'viapi-threedvision', 'viapi-videoenhan', 'viapi-imagerecog', 'viapi-videoseg', 'viapi-regen', 'viapi-aigen'],
+ 'ramLevel' => '服务级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'DetectKitchenAnimals',
+ 'description' => '猫鼠识别',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectKitchenAnimals',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectIPCObject',
+ 'description' => 'IPC图像目标检测',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectIPCObject',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectWorkwear',
+ 'description' => '着装检测',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectWorkwear',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectVehicleICongestion',
+ 'description' => '车辆拥堵检测',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectVehicleICongestion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAsyncJobResult',
+ 'description' => '查询异步任务结果',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:GetAsyncJobResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectVehicleIllegalParking',
+ 'description' => '车辆违停检测',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectVehicleIllegalParking',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectWhiteBaseImage',
+ 'description' => '白底图检测',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectWhiteBaseImage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectObject',
+ 'description' => '物体检测',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectObject',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectVideoIPCObject',
+ 'description' => 'IPC视频目标检测',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectVideoIPCObject',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectMainBody',
+ 'description' => '主体检测',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'viapi-objectdet:DetectMainBody',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'resourceTypes' => [],
],
];