summaryrefslogtreecommitdiff
path: root/data/zh_cn/ivpd
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/ivpd')
-rw-r--r--data/zh_cn/ivpd/2019-06-25/api-docs.php1094
1 files changed, 556 insertions, 538 deletions
diff --git a/data/zh_cn/ivpd/2019-06-25/api-docs.php b/data/zh_cn/ivpd/2019-06-25/api-docs.php
index 58d2aa9..5d27c31 100644
--- a/data/zh_cn/ivpd/2019-06-25/api-docs.php
+++ b/data/zh_cn/ivpd/2019-06-25/api-docs.php
@@ -1,32 +1,12 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'ivpd',
- 'version' => '2019-06-25',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'ivpd', 'version' => '2019-06-25'],
'directories' => [
[
- 'id' => 65055,
- 'title' => '视觉处理(已废弃)',
- 'type' => 'directory',
- 'children' => [
- 'ChangeImageSize',
- 'DetectImageElements',
- 'ExtendImageStyle',
- 'MakeSuperResolutionImage',
- 'RecognizeImageColor',
- 'RecognizeImageStyle',
- 'SegmentImage',
- 'RecolorImage',
- 'SegmentBody',
- ],
- ],
- [
- 'id' => 161635,
- 'title' => '已下线',
+ 'children' => ['ChangeImageSize', 'DetectImageElements', 'ExtendImageStyle', 'MakeSuperResolutionImage', 'RecognizeImageColor', 'RecognizeImageStyle', 'SegmentImage', 'RecolorImage', 'SegmentBody'],
'type' => 'directory',
- 'children' => [],
+ 'title' => '视觉处理(已废弃)',
+ 'id' => 434504,
],
],
'components' => [
@@ -34,14 +14,8 @@
],
'apis' => [
'ChangeImageSize' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -49,48 +23,22 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Width',
'in' => 'formData',
- 'schema' => [
- 'description' => '目标宽度,单位:像素,取值范围[10, 5000]',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'docRequired' => true,
- 'maximum' => '5000',
- 'minimum' => '10',
- 'example' => '1920',
- ],
+ 'schema' => ['description' => '目标宽度,单位:像素,取值范围[10, 5000]', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '5000', 'minimum' => '10', 'example' => '1920'],
],
[
'name' => 'Height',
'in' => 'formData',
- 'schema' => [
- 'description' => '目标高度,单位:像素,取值范围[10, 5000]',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'docRequired' => true,
- 'maximum' => '5000',
- 'minimum' => '10',
- 'example' => '1080',
- ],
+ 'schema' => ['description' => '目标高度,单位:像素,取值范围[10, 5000]', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '5000', 'minimum' => '10', 'example' => '1080'],
],
[
'name' => 'Url',
'in' => 'formData',
- 'schema' => [
- 'description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://a.b.cn/1.jpg',
- ],
+ 'schema' => ['description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://a.b.cn/1.jpg'],
],
],
'responses' => [
@@ -98,41 +46,24 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'string',
- 'example' => '0',
- ],
+ 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
'properties' => [
- 'Url' => [
- 'description' => '图片URL,尺寸变换后的输出图片地址,注意 <font color=red>有效期是72小时</font>。'."\n"
- ."\n\n",
- 'type' => 'string',
- 'example' => 'http://a.b.c/2.jpg',
- ],
+ 'Url' => ['description' => '图片URL,尺寸变换后的输出图片地址,注意 <font color=red>有效期是72小时</font>。'."\n"
+ ."\n\n", 'type' => 'string', 'example' => 'http://a.b.c/2.jpg'],
],
],
- 'Message' => [
- 'description' => '错误信息,code非“0”的情况下具体错误信息请查看本字段。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'RequestId' => [
- 'description' => '请求ID,阿里云系统自动生成',
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'Message' => ['description' => '错误信息,code非“0”的情况下具体错误信息请查看本字段。', 'type' => 'string', 'example' => 'success'],
+ 'RequestId' => ['description' => '请求ID,阿里云系统自动生成', 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://a.b.c/2.jpg\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://a.b.c/2.jpg\\"\\n },\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
'title' => '尺寸变换',
'summary' => '智能调节图像尺寸,支持自动裁剪、补全等多种方案。',
'description' => '示例图:'."\n"
@@ -141,16 +72,31 @@
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'DetectImageElements' => [
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeImageSize'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:ChangeImageSize',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DetectImageElements' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -158,20 +104,12 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
- 'schema' => [
- 'description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://a.b.c/1.jpg',
- ],
+ 'schema' => ['description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://a.b.c/1.jpg'],
],
],
'responses' => [
@@ -179,11 +117,7 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'string',
- 'example' => '0',
- ],
+ 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
@@ -194,64 +128,27 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Height' => [
- 'description' => '元素高度,单位:像素',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1920',
- ],
- 'Score' => [
- 'description' => '识别分值, 范围: \\[0.0, 1.0\\]',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.9556',
- ],
- 'Type' => [
- 'description' => '元素类别',
- 'type' => 'string',
- 'example' => 'character',
- ],
- 'Width' => [
- 'description' => '元素宽度,单位:像素',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1080',
- ],
- 'X' => [
- 'description' => '元素坐标x',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '211',
- ],
- 'Y' => [
- 'description' => '元素坐标y',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '65',
- ],
+ 'Height' => ['description' => '元素高度,单位:像素', 'type' => 'integer', 'format' => 'int32', 'example' => '1920'],
+ 'Score' => ['description' => '识别分值, 范围: \\[0.0, 1.0\\]', 'type' => 'number', 'format' => 'float', 'example' => '0.9556'],
+ 'Type' => ['description' => '元素类别', 'type' => 'string', 'example' => 'character'],
+ 'Width' => ['description' => '元素宽度,单位:像素', 'type' => 'integer', 'format' => 'int32', 'example' => '1080'],
+ 'X' => ['description' => '元素坐标x', 'type' => 'integer', 'format' => 'int32', 'example' => '211'],
+ 'Y' => ['description' => '元素坐标y', 'type' => 'integer', 'format' => 'int32', 'example' => '65'],
],
+ 'description' => '',
],
],
],
],
- 'Message' => [
- 'description' => '错误信息,code非“0”的情况下具体错误信息请查看本字段。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '请求ID,阿里云系统自动生成',
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'Message' => ['description' => '错误信息,code非“0”的情况下具体错误信息请查看本字段。', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '请求ID,阿里云系统自动生成', 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"character\\",\\n \\"Width\\": 1080,\\n \\"Height\\": 1920,\\n \\"Y\\": 65,\\n \\"Score\\": 0.9556,\\n \\"X\\": 211\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Height\\": 1920,\\n \\"Score\\": 0.9556,\\n \\"Type\\": \\"character\\",\\n \\"Width\\": 1080,\\n \\"X\\": 211,\\n \\"Y\\": 65\\n }\\n ]\\n },\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
'title' => '元素识别',
'summary' => '识别输入图中所包含的元素,用矩形框标注出其位置,并区分其对应的基本类型(人/物、修饰、文案)。',
'description' => '识别图像中包含的元素,用矩形框标注出其位置,并区分其对应的基本类型(人/物、修饰、文案)。输入单张图像,输出n个元素的坐标位置及对应的类型。'."\n"
@@ -262,16 +159,31 @@
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ExtendImageStyle' => [
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T11:13:58.000Z', 'description' => '错误码发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectImageElements'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:DetectImageElements',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ExtendImageStyle' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -279,31 +191,17 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'StyleUrl',
'in' => 'formData',
- 'schema' => [
- 'description' => '风格图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/extend-style-style-src.jpeg',
- ],
+ 'schema' => ['description' => '风格图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/extend-style-style-src.jpeg'],
],
[
'name' => 'MajorUrl',
'in' => 'formData',
- 'schema' => [
- 'description' => '主图图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/extend-style-major-src.jpeg',
- ],
+ 'schema' => ['description' => '主图图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/extend-style-major-src.jpeg'],
],
],
'responses' => [
@@ -311,45 +209,24 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'string',
- 'example' => '0',
- ],
+ 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。'."\n",
'type' => 'object',
'properties' => [
- 'MajorUrl' => [
- 'description' => '为保留人像不变的风格化结果,输入的majorUrl内容图中无人物, 则为空字符串',
- 'type' => 'string',
- 'example' => 'http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D',
- ],
- 'Url' => [
- 'description' => '全图进行风格化的结果',
- 'type' => 'string',
- 'example' => 'http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D',
- ],
+ 'MajorUrl' => ['description' => '为保留人像不变的风格化结果,输入的majorUrl内容图中无人物, 则为空字符串', 'type' => 'string', 'example' => 'http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D'],
+ 'Url' => ['description' => '全图进行风格化的结果', 'type' => 'string', 'example' => 'http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D'],
],
],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D\\",\\n \\"MajorUrl\\": \\"http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"MajorUrl\\": \\"http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D\\",\\n \\"Url\\": \\"http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-1930545240-f79fb/2019-8-27/invi__015668930975431000123_vq9uY7.jpg?Expires=1566896697&OSSAccessKeyId=LTAIDTT5xL3nv1sI&Signature=uRh3gwFcUmJ2XcfHWQIWIMkvl3E%3D\\"\\n },\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
'title' => '风格迁移',
'summary' => '将输入图按照指定的风格图像进行风格的迁移,使得图像的色彩、笔触等视觉风格发生转化。',
'description' => '示意图'."\n"
@@ -380,16 +257,31 @@
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'MakeSuperResolutionImage' => [
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExtendImageStyle'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:ExtendImageStyle',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'MakeSuperResolutionImage' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -397,20 +289,12 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
- 'schema' => [
- 'description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/super-resolution-src.png',
- ],
+ 'schema' => ['description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/super-resolution-src.png'],
],
],
'responses' => [
@@ -418,40 +302,23 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'string',
- 'example' => '0',
- ],
+ 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。'."\n",
'type' => 'object',
'properties' => [
- 'Url' => [
- 'description' => '清晰化后图片URL地址',
- 'type' => 'string',
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/super-resolution-result.png',
- ],
+ 'Url' => ['description' => '清晰化后图片URL地址', 'type' => 'string', 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/super-resolution-result.png'],
],
],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '请求ID,阿里云系统自动生成'."\n",
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '请求ID,阿里云系统自动生成'."\n", 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/super-resolution-result.png\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/super-resolution-result.png\\"\\n },\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
'title' => '图像超分辨/清晰化',
'summary' => '将小图放大四倍,基于推断出的细节使得结果图像不显得模糊。',
'description' => "\n"
@@ -474,16 +341,31 @@
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => '所有结果图片URL地址,注意 <font color=red>有效期是72小时</font>。',
- ],
- 'RecognizeImageColor' => [
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'MakeSuperResolutionImage'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:MakeSuperResolutionImage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RecognizeImageColor' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -491,33 +373,17 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
- 'schema' => [
- 'description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recognizer-image-color-src.png',
- ],
+ 'schema' => ['description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recognizer-image-color-src.png'],
],
[
'name' => 'ColorCount',
'in' => 'formData',
- 'schema' => [
- 'description' => '期望的色板输出数量,范围 \\[1, 7\\]',
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => false,
- 'example' => '3',
- 'pattern' => '^\\d+$',
- 'default' => '3',
- ],
+ 'schema' => ['description' => '期望的色板输出数量,范围 \\[1, 7\\]', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '3', 'pattern' => '^\\d+$', 'default' => '3'],
],
],
'responses' => [
@@ -525,11 +391,7 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '0',
- ],
+ 'Code' => ['description' => '', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
@@ -540,45 +402,24 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Color' => [
- 'description' => 'RGB颜色值(16进制),如:291A18',
- 'type' => 'string',
- 'example' => '291A18',
- ],
- 'Label' => [
- 'description' => '颜色标签,如:gray, red',
- 'type' => 'string',
- 'example' => 'gray',
- ],
- 'Percentage' => [
- 'description' => '所占比例, 取值范围 \\[0.0, 1.0\\]',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.3',
- ],
+ 'Color' => ['description' => 'RGB颜色值(16进制),如:291A18', 'type' => 'string', 'example' => '291A18'],
+ 'Label' => ['description' => '颜色标签,如:gray, red', 'type' => 'string', 'example' => 'gray'],
+ 'Percentage' => ['description' => '所占比例, 取值范围 \\[0.0, 1.0\\]', 'type' => 'number', 'format' => 'float', 'example' => '0.3'],
],
+ 'description' => '',
],
],
],
],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"ColorTemplateList\\": [\\n {\\n \\"Percentage\\": 0.3,\\n \\"Color\\": \\"291A18\\",\\n \\"Label\\": \\"gray\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"ColorTemplateList\\": [\\n {\\n \\"Color\\": \\"291A18\\",\\n \\"Label\\": \\"gray\\",\\n \\"Percentage\\": 0.3\\n }\\n ]\\n },\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
'title' => '色板识别',
'summary' => '对输入图的颜色信息进行分析,给出颜色值(RGB形式和HEX格式)与对应的占比信息。',
'description' => "\n"
@@ -611,16 +452,31 @@
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'RecognizeImageStyle' => [
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageColor'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:RecognizeImageColor',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RecognizeImageStyle' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -628,20 +484,12 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
- 'schema' => [
- 'description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recoginzer-image-type-src.png',
- ],
+ 'schema' => ['description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recoginzer-image-type-src.png'],
],
],
'responses' => [
@@ -649,43 +497,27 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'string',
- 'example' => '0',
- ],
+ 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
'properties' => [
'Styles' => [
'type' => 'array',
- 'items' => [
- 'description' => '风格列表',
- 'type' => 'string',
- 'example' => 'promotion',
- ],
+ 'items' => ['description' => '风格列表', 'type' => 'string', 'example' => 'promotion'],
+ 'description' => '',
],
],
],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '请求ID,阿里云系统自动生成',
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '请求ID,阿里云系统自动生成', 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"Styles\\": [\\n \\"promotion\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"Styles\\": [\\n \\"promotion\\"\\n ]\\n },\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
'title' => '风格识别',
'summary' => '对输入图的风格类型进行分析,给出可能的风格标签。',
'description' => '输入单张成图,预测成图的风格类型。'."\n"
@@ -715,96 +547,31 @@
.'突出,protrude'."\n"
.'```',
'extraInfo' => ' ',
- ],
- 'SegmentImage' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T11:03:01.000Z', 'description' => '错误码发生变更'],
],
- 'security' => [
- [
- 'AK' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageStyle'],
],
],
- 'operationType' => 'readAndWrite',
- 'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'Url',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/segment-image-src.jpg',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'string',
- 'example' => '0',
- ],
- 'Data' => [
- 'description' => '结果数据,请展开查看',
- 'type' => 'object',
- 'properties' => [
- 'Url' => [
- 'description' => '抠图结果URL',
- 'type' => 'string',
- 'example' => 'http://a.b.c/2.png',
- ],
- ],
- ],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '请求ID,阿里云系统生成',
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:RecognizeImageStyle',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://a.b.c/2.png\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
- 'title' => '图像分割(抠图)',
- 'summary' => '对输入图中主体进行通用分割,输出对应的png透明图,支持包括人体、动物、物品等。',
- 'description' => '示例图片:'."\n"
- ."\n"
- .'![](http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/segment-image.png)',
- 'requestParamsDescription' => ' ',
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' 所有结果图片URL地址,注意 <font color=red>有效期是72小时</font>。',
],
'RecolorImage' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -812,57 +579,27 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
- 'schema' => [
- 'description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-1-src.png',
- ],
+ 'schema' => ['description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-1-src.png'],
],
[
'name' => 'Mode',
'in' => 'formData',
- 'schema' => [
- 'description' => '拓色模式,默认AUTO,取值范围[AUTO:自动拓色, TEMPLATE:色板拓色, REF_PIC:参考图拓色]',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'AUTO',
- ],
+ 'schema' => ['description' => '拓色模式,默认AUTO,取值范围[AUTO:自动拓色, TEMPLATE:色板拓色, REF_PIC:参考图拓色]', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'AUTO'],
],
[
'name' => 'RefUrl',
'in' => 'formData',
- 'schema' => [
- 'description' => '参考图拓色,参考图URL',
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => false,
- 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-refurl-src.png',
- ],
+ 'schema' => ['description' => '参考图拓色,参考图URL', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-refurl-src.png'],
],
[
'name' => 'ColorCount',
'in' => 'formData',
- 'schema' => [
- 'description' => '拓展色系数量,取值范围[1, 8], 默认:1',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'docRequired' => false,
- 'maximum' => '8',
- 'minimum' => '1',
- 'example' => '3',
- 'default' => '1',
- ],
+ 'schema' => ['description' => '拓展色系数量,取值范围[1, 8], 默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '8', 'minimum' => '1', 'example' => '3', 'default' => '1'],
],
[
'name' => 'ColorTemplate',
@@ -873,16 +610,13 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Color' => [
- 'description' => '色板拓色,Top主色列表,颜色值定义ARGB,如:0A0B0C,数组大小[1, 7]',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0A0B0C',
- ],
+ 'Color' => ['description' => '色板拓色,Top主色列表,颜色值定义ARGB,如:0A0B0C,数组大小[1, 7]', 'type' => 'string', 'required' => false, 'example' => '0A0B0C'],
],
+ 'description' => '',
],
'required' => false,
'maxItems' => 8,
+ 'description' => '',
],
],
],
@@ -891,43 +625,27 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'string',
- 'example' => '0',
- ],
+ 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。'."\n",
'type' => 'object',
'properties' => [
'ImageList' => [
'type' => 'array',
- 'items' => [
- 'description' => '拓色生成图片URL列表',
- 'type' => 'string',
- 'example' => 'http://a.b.c/3.png',
- ],
+ 'items' => ['description' => '拓色生成图片URL列表', 'type' => 'string', 'example' => 'http://a.b.c/3.png'],
+ 'description' => '',
],
],
],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '请求ID,阿里云系统自动生成'."\n",
- 'type' => 'string',
- 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672',
- ],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '请求ID,阿里云系统自动生成'."\n", 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\",\\n \\"Data\\": {\\n \\"ImageList\\": [\\n \\"http://a.b.c/3.png\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"ImageList\\": [\\n \\"http://a.b.c/3.png\\"\\n ]\\n },\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
'title' => '色彩迁移(拓色)',
'summary' => '将输入图自动或根据指定色板进行色彩转换,同时保证视觉热点区域避免不正常拓色。',
'description' => "\n"
@@ -967,16 +685,31 @@
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' 所有结果图片URL地址,注意 <font color=red>有效期是72小时</font>。',
- ],
- 'SegmentBody' => [
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecolorImage'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:RecolorImage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'SegmentBody' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -984,63 +717,348 @@
],
'operationType' => 'readAndWrite',
'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'update',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ImageUrl',
'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'type' => 'string',
- 'required' => true,
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['type' => 'string'],
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageUrl' => ['type' => 'string'],
+ ],
+ ],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '300', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SegmentBody'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:SegmentBody',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"\\",\\n \\"Data\\": {\\n \\"ImageUrl\\": \\"\\"\\n },\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n}","type":"json"}]',
+ ],
+ 'SegmentImage' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => true,
+ 'systemTags' => ['operationType' => 'update'],
+ 'parameters' => [
+ [
+ 'name' => 'Url',
+ 'in' => 'formData',
+ 'schema' => ['description' => '原始图片URL地址,必须是公网可以正常访问的地址,最长8K。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/segment-image-src.jpg'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
+ 'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
+ 'description' => '结果数据,请展开查看',
'type' => 'object',
'properties' => [
- 'ImageUrl' => [
- 'type' => 'string',
- ],
+ 'Url' => ['description' => '抠图结果URL', 'type' => 'string', 'example' => 'http://a.b.c/2.png'],
],
],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '请求ID,阿里云系统生成', 'type' => 'string', 'example' => '7308917D-9E1B-4F11-8A79-0F140270E672'],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"0\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://a.b.c/2.png\\"\\n },\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"7308917D-9E1B-4F11-8A79-0F140270E672\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => '图像分割(抠图)',
+ 'summary' => '对输入图中主体进行通用分割,输出对应的png透明图,支持包括人体、动物、物品等。',
+ 'description' => '示例图片:'."\n"
+ ."\n"
+ .'![](http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/segment-image.png)',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' 所有结果图片URL地址,注意 <font color=red>有效期是72小时</font>。',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-17T10:05:02.000Z', 'description' => '错误码发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SegmentImage'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:SegmentImage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '',
],
],
'endpoints' => [
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ivpd.cn-hangzhou.aliyuncs.com', 'endpoint' => 'ivpd.cn-hangzhou.aliyuncs.com', 'vpc' => 'ivpd-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ivpd.cn-huhehaote.aliyuncs.com', 'endpoint' => 'ivpd.cn-huhehaote.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ivpd.cn-shanghai.aliyuncs.com', 'endpoint' => 'ivpd.cn-shanghai.aliyuncs.com', 'vpc' => 'ivpd-vpc.cn-shanghai.aliyuncs.com'],
+ ],
+ 'errorCodes' => [
+ ['code' => '0', 'message' => 'Success', 'http_code' => 200, 'description' => '请求成功'],
+ ['code' => 'AuthFailed', 'message' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'http_code' => 403, 'description' => '授权失败,请检查RAM权限配置'],
+ ['code' => 'InternalServerError', 'message' => 'A server error occurred while processing your request.', 'http_code' => 500, 'description' => ' 系统内部错误'],
+ ['code' => 'InvalidContent', 'message' => 'The specified content is invalid.', 'http_code' => 417, 'description' => '不正确的内容'],
+ ['code' => 'InvalidContentLength', 'message' => 'The length of content exceeds the limit.', 'http_code' => 413, 'description' => '内容长度过长。'],
+ ['code' => 'NeedOpen', 'message' => 'Please activate the service first.', 'http_code' => 403, 'description' => '请先开通服务'."\n"],
+ ['code' => 'NotEnoughBalance', 'message' => 'Your account does not have enough balance.', 'http_code' => 403, 'description' => '账号余额不足,请您先充值再进行该操作。'],
+ ['code' => 'ParameterError', 'message' => 'The parameter is invalid. Please check again.', 'http_code' => 400, 'description' => '参数错误,请检查参数值'],
+ ['code' => 'RequestErrorNeedRetry', 'message' => 'An error occurred while processing your request. Please try again.', 'http_code' => 449, 'description' => '请求错误,请重试'],
+ ['code' => 'ServiceUnavailable', 'message' => 'The service is unavailable.', 'http_code' => 503, 'description' => '服务不可用'],
+ ['code' => 'Timeout', 'message' => 'The request has timed out.', 'http_code' => 408, 'description' => '请求超时'],
+ ],
+ 'changeSet' => [
[
- 'regionId' => 'cn-huhehaote',
- 'endpoint' => 'ivpd.cn-huhehaote.aliyuncs.com',
+ 'apis' => [
+ ['description' => '错误码发生变更', 'api' => 'SegmentImage'],
+ ],
+ 'createdAt' => '2022-02-18T03:00:45.000Z',
+ 'description' => '更新未弃用状态',
+ ],
+ [
+ 'apis' => [
+ ['description' => '错误码发生变更', 'api' => 'ChangeImageSize'],
+ ['description' => '错误码发生变更', 'api' => 'ExtendImageStyle'],
+ ['description' => '错误码发生变更', 'api' => 'MakeSuperResolutionImage'],
+ ['description' => '错误码发生变更', 'api' => 'RecognizeImageColor'],
+ ['description' => '错误码发生变更', 'api' => 'RecolorImage'],
+ ['description' => '错误码发生变更', 'api' => 'SegmentBody'],
+ ],
+ 'createdAt' => '2022-02-18T03:00:40.000Z',
+ 'description' => '废弃API',
],
[
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'ivpd.cn-hangzhou.aliyuncs.com',
+ 'apis' => [
+ ['description' => '错误码发生变更', 'api' => 'CreateSegmentBodyJob'],
+ ['description' => '错误码发生变更', 'api' => 'DetectImageElements'],
+ ['description' => '错误码发生变更', 'api' => 'GetAsyncResult'],
+ ['description' => '错误码发生变更', 'api' => 'SegmentCommodity'],
+ ],
+ 'createdAt' => '2022-02-18T03:00:23.000Z',
+ 'description' => '废弃API',
],
[
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'ivpd.cn-shanghai.aliyuncs.com',
+ 'apis' => [
+ ['description' => '错误码发生变更', 'api' => 'EraseLogoInVideo'],
+ ['description' => '错误码发生变更', 'api' => 'GetAsyncJobResult'],
+ ['description' => '错误码发生变更', 'api' => 'GetJobResult'],
+ ['description' => '错误码发生变更', 'api' => 'GetJobStatus'],
+ ['description' => '错误码发生变更', 'api' => 'GetUserBucketConfig'],
+ ['description' => '错误码发生变更', 'api' => 'ListPackageDesignModelTypes'],
+ ['description' => '错误码发生变更', 'api' => 'ListUserBuckets'],
+ ['description' => '错误码发生变更', 'api' => 'RecognizeImageStyle'],
+ ['description' => '错误码发生变更', 'api' => 'UpdateUserBucketConfig'],
+ ],
+ 'createdAt' => '2022-02-18T02:59:54.000Z',
+ 'description' => '废弃API',
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExtendImageStyle'],
+ ['threshold' => '300', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SegmentBody'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectImageElements'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeImageSize'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageStyle'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SegmentImage'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'MakeSuperResolutionImage'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageColor'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecolorImage'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'IVPD',
+ 'productName' => '智能视觉生产',
+ 'ramCodes' => ['ivpd'],
+ 'ramLevel' => '服务级',
+ 'ramConditions' => [
+ [
+ 'name' => 'ivpd:CurrentTime',
+ 'schema' => ['type' => 'DATEANDTIME', 'description' => 'ivpd:CurrentTime'],
+ ],
+ [
+ 'name' => 'ivpd:SecureTransport',
+ 'schema' => ['type' => 'BOOLEAN', 'description' => 'ivpd:SecureTransport'],
+ ],
+ [
+ 'name' => 'ivpd:SourceIp',
+ 'schema' => ['type' => 'IPADDRESS', 'description' => 'ivpd:SourceIp'],
+ ],
+ [
+ 'name' => 'ivpd:MFAPresent',
+ 'schema' => ['type' => 'BOOLEAN', 'description' => 'ivpd:MFAPresent'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'apiName' => 'RecolorImage',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:RecolorImage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ExtendImageStyle',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:ExtendImageStyle',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DetectImageElements',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:DetectImageElements',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SegmentBody',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:SegmentBody',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RecognizeImageStyle',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:RecognizeImageStyle',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SegmentImage',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:SegmentImage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RecognizeImageColor',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:RecognizeImageColor',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ChangeImageSize',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:ChangeImageSize',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'MakeSuperResolutionImage',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'ivpd:MakeSuperResolutionImage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'IvpdVirtual', 'arn' => 'acs:ivpd::{#accountId}:IvpdVirtual/*'],
],
],
];