'1.0', 'info' => [ 'style' => 'RPC', 'product' => 'imagerecog', 'version' => '2019-09-30', ], 'directories' => [ [ 'id' => 64348, 'title' => null, 'type' => 'directory', 'children' => [ 'GetAsyncJobResult', 'EvaluateCertificateQuality', ], ], [ 'id' => 64351, 'title' => null, 'type' => 'directory', 'children' => [ 'TaggingImage', ], ], [ 'id' => 64353, 'title' => null, 'type' => 'directory', 'children' => [ 'ClassifyingRubbish', 'DetectImageElements', 'RecognizeFood', 'RecognizeImageColor', 'RecognizeImageStyle', 'RecognizeScene', ], ], [ 'id' => 0, 'title' => '其它', 'type' => 'directory', 'children' => [ 'TaggingAdImage', ], ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'GetAsyncJobResult' => [ 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', ], 'parameters' => [ [ 'name' => 'JobId', 'in' => 'query', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => true, 'example' => '72CFDC08-3FEF-56AA-91E5-B14DE31C09C2', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '1', 'type' => 'object', 'properties' => [ 'RequestId' => [ 'description' => '', 'type' => 'string', 'example' => '572974F0-1014-5C60-97EE-DBFFC0FF7616', ], 'Data' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'Status' => [ 'description' => '', 'type' => 'string', 'example' => 'PROCESS_SUCCESS', ], 'ErrorMessage' => [ 'description' => '', 'type' => 'string', 'example' => 'paramsIllegal', ], 'Result' => [ 'description' => '', 'type' => 'string', 'example' => '{\\"tags\\":[{\\"confidence\\":-1,\\"value\\":\\"{\\\\\\"tagInfo\\\\\\": {\\\\\\"humanInfo\\\\\\": [[{\\\\\\"category\\\\\\": \\\\\\"human-real-normal\\\\\\", \\\\\\"score\\\\\\": 0.9690580798778683, \\\\\\"bbox\\\\\\": [77, 280, 431, 569], \\\\\\"cloth_category\\\\\\": \\\\\\"modern\\\\\\", \\\\\\"cloth_category_score\\\\\\": 0.7393399477005005}]], \\\\\\"sceneInfo\\\\\\": [[{\\\\\\"category\\\\\\": \\\\\\"gamescreen-gameeffect\\\\\\", \\\\\\"score\\\\\\": 0.44200169294841274}]], \\\\\\"objectInfo\\\\\\": [null]}}\\"}]}', ], 'ErrorCode' => [ 'description' => '', 'type' => 'string', 'example' => 'InvalidParameter', ], 'JobId' => [ 'description' => '', 'type' => 'string', 'example' => '72CFDC08-3FEF-56AA-91E5-B14DE31C09C2', ], ], ], ], ], ], ], '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\\": \\"572974F0-1014-5C60-97EE-DBFFC0FF7616\\",\\n \\"Data\\": {\\n \\"Status\\": \\"PROCESS_SUCCESS\\",\\n \\"ErrorMessage\\": \\"paramsIllegal\\",\\n \\"Result\\": \\"{\\\\\\\\\\\\\\"tags\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"confidence\\\\\\\\\\\\\\":-1,\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"tagInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"humanInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"category\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"human-real-normal\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": 0.9690580798778683, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"bbox\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [77, 280, 431, 569], \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"cloth_category\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"modern\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"cloth_category_score\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": 0.7393399477005005}]], \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"sceneInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"category\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"gamescreen-gameeffect\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": 0.44200169294841274}]], \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"objectInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [null]}}\\\\\\\\\\\\\\"}]}\\",\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"JobId\\": \\"72CFDC08-3FEF-56AA-91E5-B14DE31C09C2\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 572974F0-1014-5C60-97EE-DBFFC0FF7616\\n \\n PROCESS_SUCCESS\\n paramsIllegal\\n {\\\\\\"tags\\\\\\":[{\\\\\\"confidence\\\\\\":-1,\\\\\\"value\\\\\\":\\\\\\"{\\\\\\\\\\\\\\"tagInfo\\\\\\\\\\\\\\": {\\\\\\\\\\\\\\"humanInfo\\\\\\\\\\\\\\": [[{\\\\\\\\\\\\\\"category\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"human-real-normal\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"score\\\\\\\\\\\\\\": 0.9690580798778683, \\\\\\\\\\\\\\"bbox\\\\\\\\\\\\\\": [77, 280, 431, 569], \\\\\\\\\\\\\\"cloth_category\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"modern\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"cloth_category_score\\\\\\\\\\\\\\": 0.7393399477005005}]], \\\\\\\\\\\\\\"sceneInfo\\\\\\\\\\\\\\": [[{\\\\\\\\\\\\\\"category\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"gamescreen-gameeffect\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"score\\\\\\\\\\\\\\": 0.44200169294841274}]], \\\\\\\\\\\\\\"objectInfo\\\\\\\\\\\\\\": [null]}}\\\\\\"}]}\\n InvalidParameter\\n 72CFDC08-3FEF-56AA-91E5-B14DE31C09C2\\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', ], 'EvaluateCertificateQuality' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'ImageURL', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'https://viapi-doc.oss-cn-shanghai.aliyuncs.com/imagerecog/xxxxx.jpg', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], [ 'name' => 'Type', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'BusinessLicense', 'required' => true, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => '656318DC-3856-43E3-9147-859532721AD6', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'Elements' => [ 'description' => '', 'items' => [ 'properties' => [ 'Value' => [ 'description' => '', 'example' => 'lackoffront', 'type' => 'string', ], 'Pass' => [ 'description' => '', 'example' => 'false', 'type' => 'string', ], 'Score' => [ 'description' => '', 'example' => '0.06514739990234375', 'type' => 'string', ], ], 'type' => 'object', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'type' => 'object', ], ], ], '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\\": \\"656318DC-3856-43E3-9147-859532721AD6\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Value\\": \\"lackoffront\\",\\n \\"Pass\\": \\"false\\",\\n \\"Score\\": \\"0.06514739990234375\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"656318DC-3856-43E3-9147-859532721AD6\\n\\n \\n lackoffront\\n 0.06514739990234375\\n false\\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', ], 'TaggingImage' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'ImageURL', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imagerecog/TaggingImage/TaggingImage1.jpg', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => '1', 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => '70ED13B0-BC22-576D-9CCF-1CC12FEAC477', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'Tags' => [ 'description' => '', 'items' => [ 'description' => '1', 'properties' => [ 'Value' => [ 'description' => '', 'example' => '', 'type' => 'string', ], 'Confidence' => [ 'description' => '', 'example' => '65', 'format' => 'float', 'type' => 'number', ], ], 'type' => 'object', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'type' => 'object', ], ], ], '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\\": \\"70ED13B0-BC22-576D-9CCF-1CC12FEAC477\\",\\n \\"Data\\": {\\n \\"Tags\\": [\\n {\\n \\"Value\\": \\"沙发\\",\\n \\"Confidence\\": 65\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 70ED13B0-BC22-576D-9CCF-1CC12FEAC477\\n \\n \\n 65\\n 沙发\\n \\n \\n 41\\n \\n \\n \\n 24\\n 家具\\n \\n \\n 13\\n 长沙发\\n \\n \\n 11\\n 卧室\\n \\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', ], 'ClassifyingRubbish' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'ImageURL', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imagerecog/ClassifyingRubbish/ClassifyingRubbish6.jpg', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => '1619647E-92ED-5641-A1D9-F05C33FD294A', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'Sensitive' => [ 'description' => '', 'example' => 'false', 'type' => 'boolean', ], 'Elements' => [ 'description' => '', 'items' => [ 'properties' => [ 'CategoryScore' => [ 'description' => '', 'example' => '0.9406', 'format' => 'float', 'type' => 'number', ], 'Rubbish' => [ 'description' => '', 'example' => '', 'type' => 'string', ], 'RubbishScore' => [ 'description' => '', 'example' => '0.9406', 'format' => 'float', 'type' => 'number', ], 'Category' => [ 'description' => '', 'example' => '', 'type' => 'string', ], ], 'type' => 'object', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'type' => 'object', ], ], ], '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\\": \\"1619647E-92ED-5641-A1D9-F05C33FD294A\\",\\n \\"Data\\": {\\n \\"Sensitive\\": false,\\n \\"Elements\\": [\\n {\\n \\"CategoryScore\\": 0.9406,\\n \\"Rubbish\\": \\"纸板箱\\",\\n \\"RubbishScore\\": 0.9406,\\n \\"Category\\": \\"可回收垃圾\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 1619647E-92ED-5641-A1D9-F05C33FD294A\\n \\n false\\n \\n 纸板箱\\n 可回收垃圾\\n 0.9406\\n 0.9406\\n \\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', ], 'DetectImageElements' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Url', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imagerecog/DetectImageElements/DetectImageElements5.jpg', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => '7EE82437-AEC4-5AAF-819F-AB28C23EE0FC', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'Elements' => [ 'description' => '', 'items' => [ 'properties' => [ 'Type' => [ 'description' => '', 'example' => 'majorhuman', 'type' => 'string', ], 'Width' => [ 'description' => '', 'example' => '285', 'format' => 'int32', 'type' => 'integer', ], 'Height' => [ 'description' => '', 'example' => '354', 'format' => 'int32', 'type' => 'integer', ], 'Y' => [ 'description' => '', 'example' => '78', 'format' => 'int32', 'type' => 'integer', ], 'Score' => [ 'description' => '', 'example' => '0.997097373008728', 'format' => 'float', 'type' => 'number', ], 'X' => [ 'description' => '', 'example' => '287', 'format' => 'int32', 'type' => 'integer', ], ], 'type' => 'object', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'type' => 'object', ], ], ], '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\\": \\"7EE82437-AEC4-5AAF-819F-AB28C23EE0FC\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"majorhuman\\",\\n \\"Width\\": 285,\\n \\"Height\\": 354,\\n \\"Y\\": 78,\\n \\"Score\\": 0.997097373008728,\\n \\"X\\": 287\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 7EE82437-AEC4-5AAF-819F-AB28C23EE0FC\\n \\n \\n character\\n 0.999164342880249\\n 490\\n 215\\n 66\\n 380\\n \\n \\n character\\n 0.998594701290131\\n 531\\n 302\\n 38\\n 308\\n \\n \\n majorauction\\n 0.983854711055756\\n 51\\n 80\\n 392\\n 464\\n \\n \\n decoration\\n 0.915460407733917\\n 596\\n 148\\n 50\\n 170\\n \\n \\n decoration\\n 0.777607440948486\\n 649\\n 149\\n 45\\n 63\\n \\n \\n character\\n 0.712217330932617\\n 533\\n 349\\n 20\\n 297\\n \\n \\n character\\n 0.701746642589569\\n 239\\n 129\\n 36\\n 72\\n \\n \\n decoration\\n 0.598963797092438\\n 594\\n 166\\n 30\\n 67\\n \\n \\n decoration\\n 0.502112746238708\\n 703\\n 167\\n 29\\n 67\\n \\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', ], 'RecognizeFood' => [ 'summary' => '菜品识别', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'ImageURL', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imagerecog/RecognizeFood/RecognizeFood5.jpg', 'isFileTransferUrl' => true, 'required' => true, 'title' => 'A short description of struct', 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'Schema of Response', 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => '4C2369C5-54E0-4B9F-8ACB-80C4F50AD2DB', 'title' => 'Id of the request', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'TopFives' => [ 'description' => '', 'items' => [ 'description' => '1', 'properties' => [ 'Category' => [ 'description' => '', 'example' => '', 'type' => 'string', ], 'Score' => [ 'description' => '', 'example' => '0.2083740234375', 'format' => 'float', 'type' => 'number', ], 'Calorie' => [ 'description' => '', 'example' => '208', 'type' => 'string', ], ], 'type' => 'object', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'title' => 'Schema of Response', 'type' => 'object', ], ], ], '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\\": \\"4C2369C5-54E0-4B9F-8ACB-80C4F50AD2DB\\",\\n \\"Data\\": {\\n \\"TopFives\\": [\\n {\\n \\"Category\\": \\"清蒸鲈鱼\\",\\n \\"Score\\": 0.2083740234375,\\n \\"Calorie\\": \\"208\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n B6F48953-92F4-5388-A000-0057D46B1658\\n \\n \\n 105\\n 0.56878662109375\\n 清蒸鲈鱼\\n \\n \\n 117\\n 0.0455322265625\\n 鳜鱼\\n \\n \\n 112\\n 0.039886474609375\\n 清蒸桂花鱼\\n \\n \\n 118\\n 0.0296173095703125\\n 沸腾鱼\\n \\n \\n UNKNOWN\\n 0.0205230712890625\\n 其他类\\n \\n \\n","errorExample":""}]', ], 'RecognizeImageColor' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Url', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imagerecog/RecognizeImageColor/RecognizeImageColor1.jpg', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], [ 'name' => 'ColorCount', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => '5', 'format' => 'int32', 'maximum' => '16', 'minimum' => '1', 'pattern' => '^\\d+$', 'required' => false, 'type' => 'integer', 'default' => '3', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => 'CCC7C1D9-8C0F-58AD-ADE3-C331B83BD6F2', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'ColorTemplateList' => [ 'description' => '', 'items' => [ 'properties' => [ 'Color' => [ 'description' => '', 'example' => '270315', 'type' => 'string', ], 'Percentage' => [ 'description' => '', 'example' => '0.459527', 'format' => 'float', 'type' => 'number', ], 'Label' => [ 'description' => '', 'example' => 'red', 'type' => 'string', ], ], 'type' => 'object', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'type' => 'object', ], ], ], '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\\": \\"CCC7C1D9-8C0F-58AD-ADE3-C331B83BD6F2\\",\\n \\"Data\\": {\\n \\"ColorTemplateList\\": [\\n {\\n \\"Color\\": \\"270315\\",\\n \\"Percentage\\": 0.459527,\\n \\"Label\\": \\"red\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n CCC7C1D9-8C0F-58AD-ADE3-C331B83BD6F2\\n \\n \\n 0.459527\\n 270315\\n \\n \\n \\n 0.177192\\n 5A0014\\n \\n \\n \\n 0.169271\\n F139CC\\n \\n \\n \\n 0.107205\\n 610492\\n \\n \\n \\n 0.086806\\n EC4886\\n \\n \\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', ], 'RecognizeImageStyle' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Url', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imagerecog/RecognizeImageStyle/RecognizeImageStyle1.jpg', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => '66FC3009-9A7A-4D29-8B70-D6EB256EF590', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'Styles' => [ 'items' => [ 'description' => '', 'example' => 'technology', 'type' => 'string', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'type' => 'object', ], ], ], '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\\": \\"66FC3009-9A7A-4D29-8B70-D6EB256EF590\\",\\n \\"Data\\": {\\n \\"Styles\\": [\\n \\"technology\\"\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 4F7BD051-ADBE-554C-893F-654FCA8535A1\\n \\n promotion\\n chinese\\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', ], 'RecognizeScene' => [ 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'ImageURL', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imagerecog/RecognizeScene/RecognizeScene1.jpg', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => 'AC79F887-5CCB-42BE-8AC3-4D455EFEDB94', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'Tags' => [ 'description' => '', 'items' => [ 'properties' => [ 'Value' => [ 'description' => '', 'example' => '', 'type' => 'string', ], 'Confidence' => [ 'description' => '', 'example' => '79', 'format' => 'float', 'type' => 'number', ], ], 'type' => 'object', ], 'type' => 'array', ], ], 'type' => 'object', ], ], 'type' => 'object', ], ], ], '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\\": \\"AC79F887-5CCB-42BE-8AC3-4D455EFEDB94\\",\\n \\"Data\\": {\\n \\"Tags\\": [\\n {\\n \\"Value\\": \\"船\\",\\n \\"Confidence\\": 79\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n EA5E12C8-FFEB-5710-B4F4-A9A477DED671\\n \\n \\n 83\\n 夜景\\n \\n \\n 31\\n 海滨\\n \\n \\n 13\\n 街景\\n \\n \\n 13\\n 广场\\n \\n \\n 12\\n \\n \\n \\n","errorExample":""}]', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', ], 'TaggingAdImage' => [ 'summary' => '广告素材分析', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'ImageURL', 'in' => 'formData', 'schema' => [ 'description' => '', 'example' => 'https://viapi-demo.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/DetectImageElements/xxxx.png', 'isFileTransferUrl' => true, 'required' => true, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'Schema of Response', 'properties' => [ 'RequestId' => [ 'description' => '', 'example' => '572974F0-1014-5C60-97EE-DBFFC0FF7616', 'title' => 'Id of the request', 'type' => 'string', ], 'Data' => [ 'description' => '', 'properties' => [ 'TagInfo' => [ 'description' => '', 'type' => 'object', ], ], 'type' => 'object', ], 'Message' => [ 'description' => '', 'example' => '', 'type' => 'string', ], ], 'title' => 'Schema of Response', 'type' => 'object', ], ], ], '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\\": \\"572974F0-1014-5C60-97EE-DBFFC0FF7616\\",\\n \\"Data\\": {\\n \\"TagInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 572974F0-1014-5C60-97EE-DBFFC0FF7616\\n 该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\n","errorExample":""}]', ], ], 'endpoints' => [ [ 'regionId' => 'cn-shanghai', 'endpoint' => 'imagerecog.cn-shanghai.aliyuncs.com', ], ], ];