diff options
Diffstat (limited to 'data/en_us/imagerecog')
| -rw-r--r-- | data/en_us/imagerecog/2019-09-30/api-docs.php | 1122 |
1 files changed, 1122 insertions, 0 deletions
diff --git a/data/en_us/imagerecog/2019-09-30/api-docs.php b/data/en_us/imagerecog/2019-09-30/api-docs.php new file mode 100644 index 0000000..5568863 --- /dev/null +++ b/data/en_us/imagerecog/2019-09-30/api-docs.php @@ -0,0 +1,1122 @@ +<?php return [ + 'version' => '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":"<GetAsyncJobResultResponse>\\n <RequestId>572974F0-1014-5C60-97EE-DBFFC0FF7616</RequestId>\\n <Data>\\n <Status>PROCESS_SUCCESS</Status>\\n <ErrorMessage>paramsIllegal</ErrorMessage>\\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]}}\\\\\\"}]}</Result>\\n <ErrorCode>InvalidParameter</ErrorCode>\\n <JobId>72CFDC08-3FEF-56AA-91E5-B14DE31C09C2</JobId>\\n </Data>\\n</GetAsyncJobResultResponse>","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":"<RequestId>656318DC-3856-43E3-9147-859532721AD6</RequestId>\\n<Data>\\n <Elements>\\n <Value>lackoffront</Value>\\n <Score>0.06514739990234375</Score>\\n <Pass>false</Pass>\\n </Elements>\\n</Data>","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":"<TaggingImageResponse>\\n <RequestId>70ED13B0-BC22-576D-9CCF-1CC12FEAC477</RequestId>\\n <Data>\\n <Tags>\\n <Confidence>65</Confidence>\\n <Value>沙发</Value>\\n </Tags>\\n <Tags>\\n <Confidence>41</Confidence>\\n <Value>床</Value>\\n </Tags>\\n <Tags>\\n <Confidence>24</Confidence>\\n <Value>家具</Value>\\n </Tags>\\n <Tags>\\n <Confidence>13</Confidence>\\n <Value>长沙发</Value>\\n </Tags>\\n <Tags>\\n <Confidence>11</Confidence>\\n <Value>卧室</Value>\\n </Tags>\\n </Data>\\n</TaggingImageResponse>","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":"<ClassifyingRubbishResponse>\\n <RequestId>1619647E-92ED-5641-A1D9-F05C33FD294A</RequestId>\\n <Data>\\n <Sensitive>false</Sensitive>\\n <Elements>\\n <Rubbish>纸板箱</Rubbish>\\n <Category>可回收垃圾</Category>\\n <CategoryScore>0.9406</CategoryScore>\\n <RubbishScore>0.9406</RubbishScore>\\n </Elements>\\n </Data>\\n</ClassifyingRubbishResponse>","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":"<DetectImageElementsResponse>\\n <RequestId>7EE82437-AEC4-5AAF-819F-AB28C23EE0FC</RequestId>\\n <Data>\\n <Elements>\\n <Type>character</Type>\\n <Score>0.999164342880249</Score>\\n <X>490</X>\\n <Y>215</Y>\\n <Height>66</Height>\\n <Width>380</Width>\\n </Elements>\\n <Elements>\\n <Type>character</Type>\\n <Score>0.998594701290131</Score>\\n <X>531</X>\\n <Y>302</Y>\\n <Height>38</Height>\\n <Width>308</Width>\\n </Elements>\\n <Elements>\\n <Type>majorauction</Type>\\n <Score>0.983854711055756</Score>\\n <X>51</X>\\n <Y>80</Y>\\n <Height>392</Height>\\n <Width>464</Width>\\n </Elements>\\n <Elements>\\n <Type>decoration</Type>\\n <Score>0.915460407733917</Score>\\n <X>596</X>\\n <Y>148</Y>\\n <Height>50</Height>\\n <Width>170</Width>\\n </Elements>\\n <Elements>\\n <Type>decoration</Type>\\n <Score>0.777607440948486</Score>\\n <X>649</X>\\n <Y>149</Y>\\n <Height>45</Height>\\n <Width>63</Width>\\n </Elements>\\n <Elements>\\n <Type>character</Type>\\n <Score>0.712217330932617</Score>\\n <X>533</X>\\n <Y>349</Y>\\n <Height>20</Height>\\n <Width>297</Width>\\n </Elements>\\n <Elements>\\n <Type>character</Type>\\n <Score>0.701746642589569</Score>\\n <X>239</X>\\n <Y>129</Y>\\n <Height>36</Height>\\n <Width>72</Width>\\n </Elements>\\n <Elements>\\n <Type>decoration</Type>\\n <Score>0.598963797092438</Score>\\n <X>594</X>\\n <Y>166</Y>\\n <Height>30</Height>\\n <Width>67</Width>\\n </Elements>\\n <Elements>\\n <Type>decoration</Type>\\n <Score>0.502112746238708</Score>\\n <X>703</X>\\n <Y>167</Y>\\n <Height>29</Height>\\n <Width>67</Width>\\n </Elements>\\n </Data>\\n</DetectImageElementsResponse>","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":"<RecognizeFoodResponse>\\n <RequestId>B6F48953-92F4-5388-A000-0057D46B1658</RequestId>\\n <Data>\\n <TopFives>\\n <Calorie>105</Calorie>\\n <Score>0.56878662109375</Score>\\n <Category>清蒸鲈鱼</Category>\\n </TopFives>\\n <TopFives>\\n <Calorie>117</Calorie>\\n <Score>0.0455322265625</Score>\\n <Category>鳜鱼</Category>\\n </TopFives>\\n <TopFives>\\n <Calorie>112</Calorie>\\n <Score>0.039886474609375</Score>\\n <Category>清蒸桂花鱼</Category>\\n </TopFives>\\n <TopFives>\\n <Calorie>118</Calorie>\\n <Score>0.0296173095703125</Score>\\n <Category>沸腾鱼</Category>\\n </TopFives>\\n <TopFives>\\n <Calorie>UNKNOWN</Calorie>\\n <Score>0.0205230712890625</Score>\\n <Category>其他类</Category>\\n </TopFives>\\n </Data>\\n</RecognizeFoodResponse>","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":"<RecognizeImageColorResponse>\\n <RequestId>CCC7C1D9-8C0F-58AD-ADE3-C331B83BD6F2</RequestId>\\n <Data>\\n <ColorTemplateList>\\n <Percentage>0.459527</Percentage>\\n <Color>270315</Color>\\n <Label>red</Label>\\n </ColorTemplateList>\\n <ColorTemplateList>\\n <Percentage>0.177192</Percentage>\\n <Color>5A0014</Color>\\n <Label>red</Label>\\n </ColorTemplateList>\\n <ColorTemplateList>\\n <Percentage>0.169271</Percentage>\\n <Color>F139CC</Color>\\n <Label>magenta</Label>\\n </ColorTemplateList>\\n <ColorTemplateList>\\n <Percentage>0.107205</Percentage>\\n <Color>610492</Color>\\n <Label>purple</Label>\\n </ColorTemplateList>\\n <ColorTemplateList>\\n <Percentage>0.086806</Percentage>\\n <Color>EC4886</Color>\\n <Label>red</Label>\\n </ColorTemplateList>\\n </Data>\\n</RecognizeImageColorResponse>","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":"<RecognizeImageStyleResponse>\\n <RequestId>4F7BD051-ADBE-554C-893F-654FCA8535A1</RequestId>\\n <Data>\\n <Styles>promotion</Styles>\\n <Styles>chinese</Styles>\\n </Data>\\n</RecognizeImageStyleResponse>","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":"<RecognizeSceneResponse>\\n <RequestId>EA5E12C8-FFEB-5710-B4F4-A9A477DED671</RequestId>\\n <Data>\\n <Tags>\\n <Confidence>83</Confidence>\\n <Value>夜景</Value>\\n </Tags>\\n <Tags>\\n <Confidence>31</Confidence>\\n <Value>海滨</Value>\\n </Tags>\\n <Tags>\\n <Confidence>13</Confidence>\\n <Value>街景</Value>\\n </Tags>\\n <Tags>\\n <Confidence>13</Confidence>\\n <Value>广场</Value>\\n </Tags>\\n <Tags>\\n <Confidence>12</Confidence>\\n <Value>船</Value>\\n </Tags>\\n </Data>\\n</RecognizeSceneResponse>","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":"<TaggingAdImageResponse>\\n <RequestId>572974F0-1014-5C60-97EE-DBFFC0FF7616</RequestId>\\n <Message>该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。</Message>\\n</TaggingAdImageResponse>","errorExample":""}]', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'imagerecog.cn-shanghai.aliyuncs.com', + ], + ], +]; |
