diff options
Diffstat (limited to 'data/ocr')
| -rw-r--r-- | data/ocr/2019-12-30/api-docs.php | 397 |
1 files changed, 97 insertions, 300 deletions
diff --git a/data/ocr/2019-12-30/api-docs.php b/data/ocr/2019-12-30/api-docs.php index c787c0c..1812b65 100644 --- a/data/ocr/2019-12-30/api-docs.php +++ b/data/ocr/2019-12-30/api-docs.php @@ -1,22 +1,13 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'ocr', - 'version' => '2019-12-30', - ], + 'info' => ['style' => 'RPC', 'product' => 'ocr', 'version' => '2019-12-30'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'GetAsyncJobResult' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -27,21 +18,13 @@ [ 'name' => 'JobId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'RecognizeBankCard' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -52,21 +35,13 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'RecognizeBusinessLicense' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -77,21 +52,13 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'RecognizeCharacter' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -102,39 +69,23 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'MinHeight', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'minimum' => '5', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '5'], ], [ 'name' => 'OutputProbability', 'in' => 'formData', - 'schema' => [ - 'type' => 'boolean', - 'required' => true, - ], + 'schema' => ['type' => 'boolean', 'required' => true], ], ], ], 'RecognizeDriverLicense' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -145,10 +96,7 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Side', @@ -156,22 +104,14 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'face', - 'back', - ], + 'enum' => ['face', 'back'], ], ], ], ], 'RecognizeDrivingLicense' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -182,10 +122,7 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Side', @@ -193,22 +130,14 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'face', - 'back', - ], + 'enum' => ['face', 'back'], ], ], ], ], 'RecognizeIdentityCard' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -219,10 +148,7 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Side', @@ -230,22 +156,14 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'face', - 'back', - ], + 'enum' => ['face', 'back'], ], ], ], ], 'RecognizeLicensePlate' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -256,21 +174,30 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'RecognizeQrCode' => [ - 'methods' => [ - 'post', + 'RecognizePdf' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'FileURL', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], ], + ], + 'RecognizeQrCode' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -289,10 +216,7 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'ImageURL' => [ - 'type' => 'string', - 'required' => true, - ], + 'ImageURL' => ['type' => 'string', 'required' => true], ], ], 'maxItems' => 10, @@ -300,14 +224,26 @@ ], ], ], - 'RecognizeTable' => [ - 'methods' => [ - 'post', + 'RecognizeQuotaInvoice' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], ], + ], + 'RecognizeTable' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -318,10 +254,7 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'OutputFormat', @@ -329,55 +262,34 @@ 'schema' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'html', - 'json', - 'xlsx', - ], + 'enum' => ['html', 'json', 'xlsx'], ], ], [ 'name' => 'UseFinanceModel', 'in' => 'formData', - 'schema' => [ - 'type' => 'boolean', - 'required' => true, - ], + 'schema' => ['type' => 'boolean', 'required' => true], ], [ 'name' => 'AssureDirection', 'in' => 'formData', - 'schema' => [ - 'type' => 'boolean', - 'required' => true, - ], + 'schema' => ['type' => 'boolean', 'required' => true], ], [ 'name' => 'HasLine', 'in' => 'formData', - 'schema' => [ - 'type' => 'boolean', - 'required' => true, - ], + 'schema' => ['type' => 'boolean', 'required' => true], ], [ 'name' => 'SkipDetection', 'in' => 'formData', - 'schema' => [ - 'type' => 'boolean', - 'required' => true, - ], + 'schema' => ['type' => 'boolean', 'required' => true], ], ], ], 'RecognizeTaxiInvoice' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -388,21 +300,13 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'RecognizeTrainTicket' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RecognizeTicketInvoice' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -413,57 +317,13 @@ [ 'name' => 'ImageURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - ], - 'RecognizeVATInvoice' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'FileURL', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'FileType', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'enum' => [ - 'jpg', - ], - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'RecognizeVINCode' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RecognizeTrainTicket' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -473,22 +333,14 @@ 'parameters' => [ [ 'name' => 'ImageURL', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'RecognizePdf' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RecognizeVATInvoice' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -499,46 +351,22 @@ [ 'name' => 'FileURL', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - ], - 'RecognizeTicketInvoice' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'schema' => ['type' => 'string', 'required' => true], ], - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'ImageURL', + 'name' => 'FileType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, + 'enum' => ['jpg'], ], ], ], ], - 'RecognizeQuotaInvoice' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RecognizeVINCode' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -548,44 +376,13 @@ 'parameters' => [ [ 'name' => 'ImageURL', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - ], - 'RecognizeVideoCharacter' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'VideoURL', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'ocr.cn-shanghai.aliyuncs.com', - ], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ocr.cn-shanghai.aliyuncs.com', 'endpoint' => 'ocr.cn-shanghai.aliyuncs.com', 'vpc' => 'ocr-vpc.cn-shanghai.aliyuncs.com'], ], ]; |
