'1.0',
'info' => ['style' => 'RPC', 'product' => 'ivpd', 'version' => '2019-06-25'],
'directories' => [
[
'children' => ['ChangeImageSize', 'DetectImageElements', 'ExtendImageStyle', 'MakeSuperResolutionImage', 'RecognizeImageColor', 'RecognizeImageStyle', 'SegmentImage', 'RecolorImage', 'SegmentBody'],
'type' => 'directory',
'title' => '视觉处理(已废弃)',
'id' => 434504,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'ChangeImageSize' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => true,
'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'],
],
[
'name' => 'Height',
'in' => 'formData',
'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'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
'properties' => [
'Url' => ['description' => '图片URL,尺寸变换后的输出图片地址,注意 有效期是72小时。'."\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'],
],
'description' => '',
],
],
],
'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"
."\n\n"
.'',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
'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' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => true,
'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'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '元素列表',
'type' => 'array',
'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'],
],
'description' => '',
],
],
],
],
'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 \\"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"
."\n"
.'示意图:'."\n"
."\n"
.'',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-02-17T11:13:58.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectImageElements'],
],
],
'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' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => true,
'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'],
],
[
'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'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'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'],
],
],
'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 \\"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"
."\n"
.' '."\n"
."\n\n"
."\n"
.'## 示例'."\n"
."\n"
.'入参示例:'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "majorUrl": "http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/extend-style-major-src.jpeg",'."\n"
.' "styleUrl":"http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/extend-style-style-src.jpeg"'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'主图 + 风格图 = 结果图'."\n"
."\n"
.' + '."\n"
.' = '."\n"
.''."\n"
."\n\n"
.'---'."\n"
."\n\n"
."\n\n",
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExtendImageStyle'],
],
],
'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' => [],
],
],
'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/super-resolution-src.png'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'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'],
],
],
'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 \\"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"
."\n"
.'原图:'."\n"
."\n"
.''."\n"
."\n"
.'结果图:'."\n"
."\n"
.''."\n"
."\n\n"
.'请求示例:'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "url": "http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/super-resolution-src.png"'."\n"
.'}'."\n"
.'```',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => '所有结果图片URL地址,注意 有效期是72小时。',
'changeSet' => [
['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
'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' => [],
],
],
'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/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'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
'properties' => [
'ColorTemplateList' => [
'description' => '色板列表',
'type' => 'array',
'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'],
],
'description' => '',
],
],
],
],
'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 \\"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"
.'输入一张图像,对其颜色信息进行分析,给出颜色值(RGB形式和HEX格式)和对应的占比信息。'."\n"
."\n\n"
."\n"
.'例如,输入以下的图像:'."\n"
."\n\n"
.''."\n"
."\n\n"
."\n\n"
.'本服务可以提取出其色卡为:'."\n"
."\n"
.'| rgb | 58/150/224 | 207/160/43 | 185/197/212 | 146/115/24 | 63/66/54 | 24/53/87 |'."\n"
.'| --- | --- | --- | --- | --- | --- | --- |'."\n"
.'| hex | 3A96E0 | CFA02B | B9C5D4 | 927318 | 3F4236 | 183557 |'."\n"
.'| 占比 | 0.374724 | 0.179412 | 0.15671 | 0.124081 | 0.0842831 | 0.0807904 |'."\n"
.'| 颜色(可视化) |  |  |  |  |  |  |'."\n"
."\n\n"
."\n"
.'请求示例:'."\n"
."\n"
.'```json'."\n"
.'{'."\n"
.' "colorCount": 5,'."\n"
.' "url": "https://invi-label.oss-cn-shanghai.aliyuncs.com/label/style/style_google/style_google_20181106_p10_247782.jpg"'."\n"
.'}'."\n"
.'```'."\n"
."\n",
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
'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' => [],
],
],
'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/recoginzer-image-type-src.png'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码', 'type' => 'string', 'example' => '0'],
'Data' => [
'description' => '响应的数据,具体字段请查看结构定义。',
'type' => 'object',
'properties' => [
'Styles' => [
'type' => 'array',
'items' => ['description' => '风格列表', 'type' => 'string', 'example' => 'promotion'],
'description' => '',
],
],
],
'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 \\"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"
."\n\n"
.'如下图的风格类型:'."\n"
.'视觉风格:中国风 语义风格:典雅...'."\n"
."\n"
.'',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' 风格style定义:'."\n"
.'```'."\n"
.'中国风,chinese'."\n"
.'水彩,watercolor'."\n"
.'卡通,cartoon'."\n"
.'实景,real'."\n"
.'标准,standard'."\n"
.'简洁,simple'."\n"
.'活泼,lively'."\n"
.'多彩,colourful'."\n"
.'豪华,luxury'."\n"
.'科技,technology'."\n"
.'柔美,morbidezza'."\n"
.'硬朗,strong'."\n"
.'素雅,simpleelegant'."\n"
.'高冷,coolcold'."\n"
.'促销,promotion'."\n"
.'突出,protrude'."\n"
.'```',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-02-17T11:03:01.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageStyle'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'ivpd:RecognizeImageStyle',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'IVPD', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'RecolorImage' => [
'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/recolor-1-src.png'],
],
[
'name' => 'Mode',
'in' => 'formData',
'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'],
],
[
'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'],
],
[
'name' => 'ColorTemplate',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Color' => ['description' => '色板拓色,Top主色列表,颜色值定义ARGB,如:0A0B0C,数组大小[1, 7]', 'type' => 'string', 'required' => false, 'example' => '0A0B0C'],
],
'description' => '',
],
'required' => false,
'maxItems' => 8,
'description' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'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'],
'description' => '',
],
],
],
'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 \\"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"
.'示例结果:'."\n"
."\n"
.''."\n"
."\n\n"
."\n"
.'入参示例:'."\n"
.'```'."\n"
.'自动拓色:'."\n"
.'{'."\n"
.' "url": "http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-1-src.png",'."\n"
.' "mode": "AUTO",'."\n"
.' "colorCount": 3'."\n"
.'}'."\n"
."\n"
.'参考图拓色:'."\n"
.'{'."\n"
.' "url": "http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-1-src.png",'."\n"
.' "refUrl": "http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-refurl-src.png",'."\n"
.' "mode": "REF_PIC"'."\n"
.'}'."\n"
."\n"
.'色板拓色'."\n"
.'{'."\n"
.' "url": "http://vigen-invi-cdn.alibaba.com/aliyun-doc/pop/images/recolor-1-src.png",'."\n"
.' "colorTemplate": [ '."\n"
.' { "color": "056A6B"}, '."\n"
.' { "color": "FF0000"}, '."\n"
.' { "color": "00FF00"}, '."\n"
.' { "color": "0000FF"}'."\n"
.' ],'."\n"
.' "mode": "TEMPLATE"'."\n"
.'}'."\n"
.'```',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' 所有结果图片URL地址,注意 有效期是72小时。',
'changeSet' => [
['createdAt' => '2022-02-17T10:50:47.000Z', 'description' => '错误码发生变更'],
],
'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' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => true,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ImageUrl',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true],
],
],
'responses' => [
200 => [
'schema' => [
'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' => ['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'],
],
'description' => '',
],
],
],
'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"
.'',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' 所有结果图片URL地址,注意 有效期是72小时。',
'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' => '*'],
],
],
],
],
],
],
'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' => [
[
'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',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'CreateSegmentBodyJob'],
['description' => '错误码发生变更', 'api' => 'DetectImageElements'],
['description' => '错误码发生变更', 'api' => 'GetAsyncResult'],
['description' => '错误码发生变更', 'api' => 'SegmentCommodity'],
],
'createdAt' => '2022-02-18T03:00:23.000Z',
'description' => '废弃API',
],
[
'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/*'],
],
],
];