From 7347bac4ab7e136157fc94777e6cf87ef9e08599 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 13 Feb 2026 10:54:11 +0800 Subject: first commit --- data/en_us/facebody/2019-12-30/api-docs.php | 6436 +++++++++++++++++++++++++++ data/en_us/facebody/2020-09-10/api-docs.php | 147 + 2 files changed, 6583 insertions(+) create mode 100644 data/en_us/facebody/2019-12-30/api-docs.php create mode 100644 data/en_us/facebody/2020-09-10/api-docs.php (limited to 'data/en_us/facebody') diff --git a/data/en_us/facebody/2019-12-30/api-docs.php b/data/en_us/facebody/2019-12-30/api-docs.php new file mode 100644 index 0000000..9a5e65e --- /dev/null +++ b/data/en_us/facebody/2019-12-30/api-docs.php @@ -0,0 +1,6436 @@ + '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'facebody', + 'version' => '2019-12-30', + ], + 'directories' => [ + [ + 'id' => 183667, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'AddFaceEntity', + 'AddFace', + 'CreateFaceDb', + 'DeleteFace', + 'DeleteFaceDb', + 'DeleteFaceEntity', + 'UpdateFaceEntity', + 'SearchFace', + 'GetFaceEntity', + 'ListFaceEntities', + 'ListFaceDbs', + ], + ], + [ + 'id' => 130136, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'AddFaceImageTemplate', + 'DeleteFaceImageTemplate', + 'QueryFaceImageTemplate', + 'BlurFace', + 'CompareFace', + 'DetectFace', + 'DetectLivingFace', + 'FaceBeauty', + 'EnhanceFace', + 'RecognizeFace', + 'RecognizePublicFace', + 'MergeImageFace', + ], + ], + [ + 'id' => 130164, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'BodyPosture', + 'DetectBodyCount', + 'DetectPedestrian', + 'PedestrianDetectAttribute', + ], + ], + [ + 'id' => 130185, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'GetRealPersonVerificationResult', + 'GenRealPersonVerificationToken', + ], + ], + [ + 'id' => 130188, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'DetectCelebrity', + 'DetectVideoLivingFace', + 'GenerateHumanAnimeStyle', + 'GenerateHumanSketchStyle', + 'RecognizeAction', + 'RecognizeExpression', + ], + ], + [ + 'id' => 130198, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'BatchAddFaces', + 'ExtractFingerPrint', + 'LiquifyFace', + 'MonitorExamination', + 'RetouchSkin', + ], + ], + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'CompareFaceWithMask', + 'DetectInfraredLivingFace', + 'DeepfakeFace', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'AddFaceEntity' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'mm2', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2', + ], + ], + ], + ], + ], + '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\\": \\"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2\\"\\n}","errorExample":""},{"type":"xml","example":"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'AddFace' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'ImageUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'U1', + ], + ], + [ + 'name' => 'ExtraData', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + [ + 'name' => 'QualityScoreThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '50.0', + ], + ], + [ + 'name' => 'SimilarityScoreThresholdInEntity', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '50.0', + ], + ], + [ + 'name' => 'SimilarityScoreThresholdBetweenEntity', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '50.0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2B93C43A-F824-40C8-AF79-844342B0F43A', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '5', + ], + 'QualitieScore' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.79581', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"2B93C43A-F824-40C8-AF79-844342B0F43A\\",\\n \\"Data\\": {\\n \\"FaceId\\": \\"5\\",\\n \\"QualitieScore\\": 99.79581\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 2B93C43A-F824-40C8-AF79-844342B0F43A\\n \\n 5\\n 99.79581\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'CreateFaceDb' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '818D24A6-E368-46B3-99C5-3CF36D98CCA3', + ], + ], + ], + ], + ], + '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\\": \\"818D24A6-E368-46B3-99C5-3CF36D98CCA3\\"\\n}","errorExample":""},{"type":"xml","example":"818D24A6-E368-46B3-99C5-3CF36D98CCA3","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DeleteFace' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'FaceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '001', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'FAC90D32-2F04-5AD4-B94B-BAA163AB3724', + ], + ], + ], + ], + ], + '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\\": \\"FAC90D32-2F04-5AD4-B94B-BAA163AB3724\\"\\n}","errorExample":""},{"type":"xml","example":"\\n FAC90D32-2F04-5AD4-B94B-BAA163AB3724\\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DeleteFaceDb' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '203AE658-CFE1-507D-B105-F88CD1F1F71B', + ], + ], + ], + ], + ], + '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\\": \\"203AE658-CFE1-507D-B105-F88CD1F1F71B\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 203AE658-CFE1-507D-B105-F88CD1F1F71B\\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DeleteFaceEntity' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'wood', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2', + ], + ], + ], + ], + ], + '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\\": \\"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2\\"\\n}","errorExample":""},{"type":"xml","example":"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'UpdateFaceEntity' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'mm2', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2', + ], + ], + ], + ], + ], + '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\\": \\"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2\\"\\n}","errorExample":""},{"type":"xml","example":"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'SearchFace' => [ + 'summary' => 'summary', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'default', + ], + ], + [ + 'name' => 'ImageUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/SearchFace/SearchFace1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'Limit', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'maximum' => '1000', + 'minimum' => '0', + 'example' => '2', + 'pattern' => '^\\d+$', + ], + ], + [ + 'name' => 'DbNames', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'test1,test2,test3', + 'maxLength' => 4096, + ], + ], + [ + 'name' => 'QualityScoreThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '50.0', + ], + ], + [ + 'name' => 'MaxFaceNum', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '5', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '4159e64a-0fe8-436c-a8de-ee531555db3c', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'MatchList' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'FaceItems' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'EntityId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'U1', + ], + 'FaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '001', + ], + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.892133', + ], + 'ExtraData' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'DbName' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'default', + ], + 'Confidence' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '36.820168', + ], + ], + ], + ], + 'Location' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Y' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '6', + ], + 'X' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + ], + ], + ], + 'QualitieScore' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '71.7349', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"4159e64a-0fe8-436c-a8de-ee531555db3c\\",\\n \\"Data\\": {\\n \\"MatchList\\": [\\n {\\n \\"FaceItems\\": [\\n {\\n \\"EntityId\\": \\"U1\\",\\n \\"FaceId\\": \\"001\\",\\n \\"Score\\": 0.892133,\\n \\"ExtraData\\": \\"王小二\\",\\n \\"DbName\\": \\"default\\",\\n \\"Confidence\\": 36.820168\\n }\\n ],\\n \\"Location\\": {\\n \\"Width\\": 200,\\n \\"Height\\": 200,\\n \\"Y\\": 6,\\n \\"X\\": 5\\n },\\n \\"QualitieScore\\": 71.7349\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 4159e64a-0fe8-436c-a8de-ee531555db3c\\n \\n \\n \\n U1\\n 001\\n 0.892133\\n 王小二\\n default\\n 36.820168\\n \\n \\n 200\\n 200\\n 6\\n 5\\n \\n 71.7349\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'GetFaceEntity' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '66', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'DbName' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'default', + ], + 'EntityId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '66', + ], + 'Labels' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Faces' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2\\",\\n \\"Data\\": {\\n \\"DbName\\": \\"default\\",\\n \\"EntityId\\": \\"66\\",\\n \\"Labels\\": \\"工厂\\",\\n \\"Faces\\": [\\n {\\n \\"FaceId\\": \\"3\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2\\n\\n default\\n 66\\n 工厂\\n \\n 3\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'ListFaceEntities' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'Offset', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Limit', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '50', + ], + ], + [ + 'name' => 'Token', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + [ + 'name' => 'EntityIdPrefix', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'U1', + ], + ], + [ + 'name' => 'Order', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'asc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Token' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2', + ], + 'TotalCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Entities' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DbName' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'default', + ], + 'EntityId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '222', + ], + 'Labels' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'CreatedAt' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589203871832', + ], + 'FaceCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'UpdatedAt' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1589203871832', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2\\",\\n \\"Data\\": {\\n \\"Token\\": \\"2\\",\\n \\"TotalCount\\": 200,\\n \\"Entities\\": [\\n {\\n \\"DbName\\": \\"default\\",\\n \\"EntityId\\": \\"222\\",\\n \\"Labels\\": \\"视觉智能\\",\\n \\"CreatedAt\\": 1589203871832,\\n \\"FaceCount\\": 3,\\n \\"UpdatedAt\\": 1589203871832\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n DA7CAFEB-0A37-4496-9CDF-E3DBB6309CB2\\n \\n 2\\n 200\\n \\n default\\n 222\\n 视觉智能\\n 1589203871832\\n 3\\n 1589203871832\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'ListFaceDbs' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'Offset', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Limit', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '50', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2B93C43A-F824-40C8-AF79-844342B0F43A', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'DbList' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'default', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"2B93C43A-F824-40C8-AF79-844342B0F43A\\",\\n \\"Data\\": {\\n \\"DbList\\": [\\n {\\n \\"Name\\": \\"default\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 2B93C43A-F824-40C8-AF79-844342B0F43A\\n \\n \\n default\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'AddFaceImageTemplate' => [ + 'summary' => '图像人脸融合模板增加', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + ], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://invi-label.oss-cn-shanghai.aliyuncs.com/label/temp/faceswap/img_facefusion/template/sucai1.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '798A721D-7C7F-4D87-A125-1D04B3055C2C', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'TemplateId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '6cd509ea-54fa-4730-8e9d-c94cadcda048', + ], + 'FaceInfos' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'TemplateFaceID' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'string 6cd509ea-54fa-4730-8e9d-c94cadcda048_0', + ], + 'FaceRect' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '', + 'type' => 'string', + 'example' => '254', + ], + 'Y' => [ + 'description' => '', + 'type' => 'string', + 'example' => '318', + ], + 'Height' => [ + 'description' => '', + 'type' => 'string', + 'example' => '94', + ], + 'Width' => [ + 'description' => '', + 'type' => 'string', + 'example' => '89', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"798A721D-7C7F-4D87-A125-1D04B3055C2C\\",\\n \\"Data\\": {\\n \\"TemplateId\\": \\"6cd509ea-54fa-4730-8e9d-c94cadcda048\\",\\n \\"FaceInfos\\": [\\n {\\n \\"TemplateFaceID\\": \\"string 6cd509ea-54fa-4730-8e9d-c94cadcda048_0\\",\\n \\"FaceRect\\": {\\n \\"X\\": \\"254\\",\\n \\"Y\\": \\"318\\",\\n \\"Height\\": \\"94\\",\\n \\"Width\\": \\"89\\"\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 7BC58484-6724-508F-857D-0E7035AD5DEA\\n \\n 30f738a9-1e69-4ecb-8bbc-50bf0aa75e60\\n \\n","errorExample":""}]', + ], + 'DeleteFaceImageTemplate' => [ + 'summary' => '图像人脸融合模板删除', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '6cd509ea-54fa-4730-8e9d-c94cadcda048', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'F9E76786-3A85-43C3-B79C-3175B4536252', + ], + ], + ], + ], + ], + '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\\": \\"F9E76786-3A85-43C3-B79C-3175B4536252\\"\\n}","errorExample":""},{"type":"xml","example":"F9E76786-3A85-43C3-B79C-3175B4536252","errorExample":""}]', + ], + 'QueryFaceImageTemplate' => [ + 'summary' => '图像人脸融合模板查询', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'TemplateId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '6cd509ea-54fa-4730-8e9d-c94cadcda048', + ], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int64', + 'maximum' => '5000', + 'minimum' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int64', + 'maximum' => '500', + 'minimum' => '1', + 'example' => '100', + 'default' => '100', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '7C29675C-751F-4D2F-86FB-2BD8D69AC860', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Total' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CreateTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-29 10:19:05', + ], + 'UpdateTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-29 10:19:05', + ], + 'UserId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'zhangsan', + ], + 'TemplateId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '6cd509ea-54fa-4730-8e9d-c94cadcda048', + ], + 'TemplateURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/MergeImageFace/MergeImageFace-1.png', + ], + 'FaceInfos' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'TemplateFaceID' => [ + 'description' => '', + 'type' => 'string', + 'example' => '6cd509ea-54fa-4730-8e9d-c94cadcda048', + ], + 'FaceRect' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '', + 'type' => 'string', + 'example' => '254', + ], + 'Y' => [ + 'description' => '', + 'type' => 'string', + 'example' => '318', + ], + 'Height' => [ + 'description' => '', + 'type' => 'string', + 'example' => '94', + ], + 'Width' => [ + 'description' => '', + 'type' => 'string', + 'example' => '89', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"7C29675C-751F-4D2F-86FB-2BD8D69AC860\\",\\n \\"Data\\": {\\n \\"Total\\": 20,\\n \\"Elements\\": [\\n {\\n \\"CreateTime\\": \\"2021-01-29 10:19:05\\",\\n \\"UpdateTime\\": \\"2021-01-29 10:19:05\\",\\n \\"UserId\\": \\"zhangsan\\",\\n \\"TemplateId\\": \\"6cd509ea-54fa-4730-8e9d-c94cadcda048\\",\\n \\"TemplateURL\\": \\"http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/MergeImageFace/MergeImageFace-1.png\\",\\n \\"FaceInfos\\": [\\n {\\n \\"TemplateFaceID\\": \\"6cd509ea-54fa-4730-8e9d-c94cadcda048\\",\\n \\"FaceRect\\": {\\n \\"X\\": \\"254\\",\\n \\"Y\\": \\"318\\",\\n \\"Height\\": \\"94\\",\\n \\"Width\\": \\"89\\"\\n }\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 7C29675C-751F-4D2F-86FB-2BD8D69AC860\\n \\n 20\\n \\n 2021-01-29 10:19:05\\n 2021-01-29 10:19:05\\n zhangsan\\n 6cd509ea-54fa-4730-8e9d-c94cadcda048\\n http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/MergeImageFace/MergeImageFace-1.png\\n \\n 6cd509ea-54fa-4730-8e9d-c94cadcda048\\n \\n 254\\n 318\\n 94\\n 89\\n \\n \\n \\n \\n","errorExample":""}]', + ], + 'BlurFace' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/BlurFace/BlurFace1.png', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '4C6080B0-64C4-488E-BBA6-245749CA11AD', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://viapi-cn-shanghai-dha-segmenter.oss-cn-shanghai.aliyuncs.com/upload/result_FaceBlur/2020-8-5/invi_FaceBlur_015966077063461060948_IBdDsq.jpg?Expires=1596609506&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=x8n3jq1X91Sq7BKWE4vRHSu6g9****', + ], + 'MaskURL' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"4C6080B0-64C4-488E-BBA6-245749CA11AD\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://viapi-cn-shanghai-dha-segmenter.oss-cn-shanghai.aliyuncs.com/upload/result_FaceBlur/2020-8-5/invi_FaceBlur_015966077063461060948_IBdDsq.jpg?Expires=1596609506&OSSAccessKeyId=LTAI****************&Signature=x8n3jq1X91Sq7BKWE4vRHSu6g9****\\",\\n \\"MaskURL\\": \\"http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-cartoonizer/59697D68-2A6E-4553-89BD-0FADD07881E8_7ee5_20201027-070958.jpg?Expires=1603784400&OSSAccessKeyId=LTAI****************&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 4C6080B0-64C4-488E-BBA6-245749CA11AD\\n \\n http://viapi-cn-shanghai-dha-segmenter.oss-cn-shanghai.aliyuncs.com/upload/result_FaceBlur/2020-8-5/invi_FaceBlur_015966077063461060948_IBdDsq.jpg?Expires=1596609506&OSSAccessKeyId=LTAI****************&Signature=x8n3jq1X91Sq7BKWE4vRHSu6g9****\\n http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-cartoonizer/59697D68-2A6E-4553-89BD-0FADD07881E8_7ee5_20201027-070958.jpg?Expires=1603784400&OSSAccessKeyId=LTAI****************&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'CompareFace' => [ + 'summary' => '人脸比对(1:1)', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'QualityScoreThreshold', + 'in' => 'formData', + 'schema' => [ + 'title' => '质量分阈值,取值范围 [0.0, 100.0], 0.0或空 表示不做质量分判断逻辑。', + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '75.12', + ], + ], + [ + 'name' => 'ImageURLA', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/CompareFace/CompareFace-right1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ImageURLB', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/CompareFace/CompareFace-left1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ImageDataA', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgK****', + ], + ], + [ + 'name' => 'ImageDataB', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgQ****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Thresholds' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '[61,69,75]', + ], + ], + 'RectBList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '', + ], + ], + 'Confidence' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + 'RectAList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '', + ], + ], + 'QualityScoreA' => [ + 'title' => '输入图像A的质量分', + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '75.16', + ], + 'QualityScoreB' => [ + 'title' => '输入图像A的质量分', + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '75.20', + ], + 'MessageTips' => [ + 'title' => '信息提示信息,纯文字描述,目前支持质量分的提示信息', + 'description' => '', + 'type' => 'string', + 'example' => 'imageB quality score less threshold', + ], + 'IsMaskA' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + 'IsMaskB' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + 'LandmarksAList' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + ], + 'LandmarksBList' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"B352CD68-C847-5C48-BE68-3F266356FDD7\\",\\n \\"Data\\": {\\n \\"Thresholds\\": [\\n 0\\n ],\\n \\"RectBList\\": [\\n 0\\n ],\\n \\"Confidence\\": 88.4831771850586,\\n \\"RectAList\\": [\\n 0\\n ],\\n \\"QualityScoreA\\": 99.65772247314453,\\n \\"QualityScoreB\\": 98.01177978515625,\\n \\"MessageTips\\": \\"imageB quality score less threshold\\",\\n \\"IsMaskA\\": 0,\\n \\"IsMaskB\\": 0,\\n \\"LandmarksAList\\": [\\n 0\\n ],\\n \\"LandmarksBList\\": [\\n 0\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n B352CD68-C847-5C48-BE68-3F266356FDD7\\n \\n 61\\n 69\\n 75\\n 169\\n 48\\n 125\\n 162\\n 88.4831771850586\\n 157\\n 82\\n 147\\n 188\\n 99.65772247314453\\n 98.01177978515625\\n 0\\n 0\\n 201\\n 146\\n 266\\n 159\\n 222\\n 190\\n 187\\n 208\\n 255\\n 219\\n 199\\n 115\\n 248\\n 109\\n 215\\n 146\\n 206\\n 167\\n 260\\n 162\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DetectFace' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + ], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectFace/DetectFace1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'Landmark', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Quality', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Pose', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'MaxFaceNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '40', + 'minimum' => '1', + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FaceProbabilityList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'Pupils' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '', + ], + ], + 'FaceRectangles' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '', + ], + ], + 'FaceCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'PoseList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'Landmarks' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'LandmarkScore' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'number', + 'format' => 'float', + ], + ], + 'LandmarkCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '105', + ], + 'Qualities' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ScoreList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'BlurList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'FnfList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '100', + ], + ], + 'GlassList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'IlluList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'MaskList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'NoiseList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'PoseList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"26B5334B-FD8A-5994-A1DA-3CA8F7B25676\\",\\n \\"Data\\": {\\n \\"FaceProbabilityList\\": [\\n 0.96\\n ],\\n \\"Pupils\\": [\\n 0\\n ],\\n \\"FaceRectangles\\": [\\n 0\\n ],\\n \\"FaceCount\\": 1,\\n \\"PoseList\\": [\\n 0\\n ],\\n \\"Landmarks\\": [\\n 0\\n ],\\n \\"LandmarkScore\\": [\\n 95.89\\n ],\\n \\"LandmarkCount\\": 105,\\n \\"Qualities\\": {\\n \\"ScoreList\\": [\\n 99.92\\n ],\\n \\"BlurList\\": [\\n 99.21\\n ],\\n \\"FnfList\\": [\\n 100\\n ],\\n \\"GlassList\\": [\\n 100\\n ],\\n \\"IlluList\\": [\\n 100\\n ],\\n \\"MaskList\\": [\\n 99.53\\n ],\\n \\"NoiseList\\": [\\n 99.74\\n ],\\n \\"PoseList\\": [\\n 100\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 26B5334B-FD8A-5994-A1DA-3CA8F7B25676\\n \\n 0.96\\n 417.83\\n 226.09\\n 8.15\\n 517.46\\n 231.53\\n 8.15\\n 358\\n 141\\n 207\\n 255\\n 1\\n 5.02\\n -3.95\\n 2.41\\n 381.1\\n 201.72\\n 448.09\\n 205.17\\n 415.19\\n 191.2\\n 415.28\\n 201.64\\n 391.35\\n 196.03\\n 403.15\\n 191.57\\n 426.94\\n 194.07\\n 438.42\\n 197.65\\n 95.89\\n 105\\n \\n 99.92\\n 99.21\\n 100\\n 100\\n 100\\n 99.53\\n 99.74\\n 100\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DetectLivingFace' => [ + 'summary' => '人脸活体检测(DetectLivingFace)', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Tasks', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectLivingFace/DetectLivingFace4.jpg', + 'isFileTransferUrl' => true, + ], + 'ImageData' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 10, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2EEA0396-BD84-5729-B8BD-D60776FCEF2B', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectLivingFace/DetectLivingFace4.jpg', + ], + 'TaskId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'img1owc8WGskNm78OEAPJTZal-1****', + ], + 'Results' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Suggestion' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'review', + ], + 'Frames' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Url' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://aligreen-shanghai.oss-cn-shanghai.aliyuncs.com/prod/hammal/26210da42/28118541_TB1urBOQFXXXXbMXFXXXXXXXXXX-1442-257.png?Expires=1582703593&OSSAccessKeyId=H4sp5QfNbuDg****&Signature=%2B8iUkb5YjomYR8ujV2c8wMAavs****&x-oss-process=image%2Fcrop%2Cx_0%2Cw_288%2Fauto-orient%2C0', + ], + 'Rate' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '84.83', + ], + ], + ], + ], + 'Label' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'liveness', + ], + 'Rate' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '76.22', + ], + 'Rect' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Left' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20', + ], + 'Top' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '30', + ], + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '50', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '60', + ], + ], + ], + 'MessageTips' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'blurred, occluded or large angle face, please check.', + ], + ], + ], + ], + 'FaceNumber' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"2EEA0396-BD84-5729-B8BD-D60776FCEF2B\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"ImageURL\\": \\"http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectLivingFace/DetectLivingFace4.jpg\\",\\n \\"TaskId\\": \\"img1owc8WGskNm78OEAPJTZal-1****\\",\\n \\"Results\\": [\\n {\\n \\"Suggestion\\": \\"review\\",\\n \\"Frames\\": [\\n {\\n \\"Url\\": \\"http://aligreen-shanghai.oss-cn-shanghai.aliyuncs.com/prod/hammal/26210da42/28118541_TB1urBOQFXXXXbMXFXXXXXXXXXX-1442-257.png?Expires=1582703593&OSSAccessKeyId=H4sp5QfNbuDg****&Signature=%2B8iUkb5YjomYR8ujV2c8wMAavs****&x-oss-process=image%2Fcrop%2Cx_0%2Cw_288%2Fauto-orient%2C0\\",\\n \\"Rate\\": 84.83\\n }\\n ],\\n \\"Label\\": \\"liveness\\",\\n \\"Rate\\": 76.22,\\n \\"Rect\\": {\\n \\"Left\\": 20,\\n \\"Top\\": 30,\\n \\"Width\\": 50,\\n \\"Height\\": 60\\n },\\n \\"MessageTips\\": \\"blurred, occluded or large angle face, please check.\\"\\n }\\n ],\\n \\"FaceNumber\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 2EEA0396-BD84-5729-B8BD-D60776FCEF2B\\n \\n \\n http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectLivingFace/DetectLivingFace4.jpg\\n img1owc8WGskNm78OEAPJTZal-1****\\n \\n review\\n \\n http://aligreen-shanghai.oss-cn-shanghai.aliyuncs.com/prod/hammal/26210da42/28118541_TB1urBOQFXXXXbMXFXXXXXXXXXX-1442-257.png?Expires=1582703593&OSSAccessKeyId=H4sp5QfNbuDg****&Signature=%2B8iUkb5YjomYR8ujV2c8wMAavs****&x-oss-process=image%2Fcrop%2Cx_0%2Cw_288%2Fauto-orient%2C0\\n 84.83\\n \\n \\n 76.22\\n \\n 20\\n 30\\n 50\\n 60\\n \\n blurred, occluded or large angle face, please check.\\n \\n 1\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'FaceBeauty' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/FaceBeauty/FaceBeauty4.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'Sharp', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'Smooth', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => true, + 'example' => '0.1', + ], + ], + [ + 'name' => 'White', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => true, + 'example' => '0.3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '35C284E1-C5F5-4E5E-B7AD-97BBF485CDC8', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty/2020_03_24/2bbbdb7907901412_facebeauty.jpg?Expires=1585277923&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=myOPfNQcRyijgrWBU%2BZ4dPuV5Q****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"35C284E1-C5F5-4E5E-B7AD-97BBF485CDC8\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty/2020_03_24/2bbbdb7907901412_facebeauty.jpg?Expires=1585277923&OSSAccessKeyId=LTAI****************&Signature=myOPfNQcRyijgrWBU%2BZ4dPuV5Q****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 35C284E1-C5F5-4E5E-B7AD-97BBF485CDC8\\n \\n http://algo-app-taobao-mm-cn-shanghai-prod.oss-cn-shanghai.aliyuncs.com/pixelai-portrait-beauty/2020_03_24/2bbbdb7907901412_facebeauty.jpg?Expires=1585277923&OSSAccessKeyId=LTAI****************&Signature=myOPfNQcRyijgrWBU%2BZ4dPuV5Q****\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'EnhanceFace' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/EnhanceFace/EnhanceFace1.png', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '8B031473-6773-4A4C-AF33-A233758E6E98', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-aic-vd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/face-enhancement/2021-11-30/8e34b61c-abcf-4708-9d9d-6501968ee806/20211130_080644126523_47ct9w3pgh.jpg?Expires=1638261404&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=2wPdcuCmr%2F86WpBL3HQJw5uCFl****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"8B031473-6773-4A4C-AF33-A233758E6E98\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://vibktprfx-prod-prod-aic-vd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/face-enhancement/2021-11-30/8e34b61c-abcf-4708-9d9d-6501968ee806/20211130_080644126523_47ct9w3pgh.jpg?Expires=1638261404&OSSAccessKeyId=LTAI****************&Signature=2wPdcuCmr%2F86WpBL3HQJw5uCFl****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 8B031473-6773-4A4C-AF33-A233758E6E98\\n \\n http://vibktprfx-prod-prod-aic-vd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/face-enhancement/2021-11-30/8e34b61c-abcf-4708-9d9d-6501968ee806/20211130_080644126523_47ct9w3pgh.jpg?Expires=1638261404&OSSAccessKeyId=LTAI****************&Signature=2wPdcuCmr%2F86WpBL3HQJw5uCFl****\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'RecognizeFace' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/RecognizeFace/RecognizeFace1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'Age', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'Gender', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'Hat', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'Glass', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'Beauty', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'Expression', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'Mask', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'Quality', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + [ + 'name' => 'MaxFaceNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '8251C88E-8273-4DBF-94FB-A6BCB268CEA2', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Pupils' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'GenderList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + 'Expressions' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + 'DenseFeatures' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + ], + 'FaceCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Landmarks' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'LandmarkCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '105', + ], + 'Qualities' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ScoreList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'BlurList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'FnfList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '100', + ], + ], + 'GlassList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'IlluList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'MaskList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'NoiseList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'PoseList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + ], + ], + 'BeautyList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'HatList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + 'FaceProbabilityList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'Glasses' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + 'FaceRectangles' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '', + ], + ], + 'PoseList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + ], + 'AgeList' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '', + ], + ], + 'DenseFeatureLength' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1024', + ], + 'Masks' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"8251C88E-8273-4DBF-94FB-A6BCB268CEA2\\",\\n \\"Data\\": {\\n \\"Pupils\\": [\\n 0\\n ],\\n \\"GenderList\\": [\\n 1\\n ],\\n \\"Expressions\\": [\\n 0\\n ],\\n \\"DenseFeatures\\": [\\n \\"[-0.04283177852630615, 0.01496131718158722, 0.08304227143526077, -0.006072732154279947, -0.012721054255962372, -0.024241730570793152, -0.03138406202197075, 0.006191537249833345, 0.017898650839924812, -0.03185232728719711, -0.02717948891222477, 0.028409384191036224, -0.03557640686631203, -0.02255111373960972, -0.030578967183828354, 0.011586467735469341, -0.005520580802112818, -0.0061850580386817455, -0.023915085941553116, 0.014204374514520168]\\"\\n ],\\n \\"FaceCount\\": 1,\\n \\"Landmarks\\": [\\n 0\\n ],\\n \\"LandmarkCount\\": 105,\\n \\"Qualities\\": {\\n \\"ScoreList\\": [\\n 87.47\\n ],\\n \\"BlurList\\": [\\n 99.99\\n ],\\n \\"FnfList\\": [\\n 100\\n ],\\n \\"GlassList\\": [\\n 97.59\\n ],\\n \\"IlluList\\": [\\n 99.97\\n ],\\n \\"MaskList\\": [\\n 93.33\\n ],\\n \\"NoiseList\\": [\\n 99.73\\n ],\\n \\"PoseList\\": [\\n 11.57\\n ]\\n },\\n \\"BeautyList\\": [\\n 48\\n ],\\n \\"HatList\\": [\\n 0\\n ],\\n \\"FaceProbabilityList\\": [\\n 0.95\\n ],\\n \\"Glasses\\": [\\n 1\\n ],\\n \\"FaceRectangles\\": [\\n 0\\n ],\\n \\"PoseList\\": [\\n 0\\n ],\\n \\"AgeList\\": [\\n 57\\n ],\\n \\"DenseFeatureLength\\": 1024,\\n \\"Masks\\": [\\n 0\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 8251C88E-8273-4DBF-94FB-A6BCB268CEA2\\n \\n 397.06\\n 183.99\\n 7.87\\n 487.49\\n 173.85\\n 7.87\\n 1\\n 0\\n [-0.04283177852630615, 0.01496131718158722, 0.08304227143526077, -0.006072732154279947, -0.012721054255962372, -0.024241730570793152, -0.03138406202197075, 0.006191537249833345, 0.017898650839924812, -0.03185232728719711, -0.02717948891222477, 0.028409384191036224, -0.03557640686631203, -0.02255111373960972, -0.030578967183828354, 0.011586467735469341, -0.005520580802112818, -0.0061850580386817455, -0.023915085941553116, 0.014204374514520168]\\n 1\\n 371.31\\n 170.54\\n 421.14\\n 162.72\\n 395.33\\n 156.36\\n 396.06\\n 167.71\\n 377.92\\n 164.47\\n 386.19\\n 158.26\\n 404.89\\n 156.61\\n 413.89\\n 157.87\\n 378.82\\n 171\\n 387.24\\n 168.73\\n 404.84\\n 167.34\\n 413.57\\n 167.26\\n 458.27\\n 159.5\\n 521.24\\n 165.59\\n 490.58\\n 150.77\\n 490.23\\n 162.28\\n 467.51\\n 153.1\\n 479.01\\n 151.32\\n 502.02\\n 153.2\\n 513.06\\n 159.78\\n 468\\n 163.52\\n 478.98\\n 162.32\\n 501.41\\n 163.93\\n 512.07\\n 166.6\\n 381.98\\n 187.97\\n 419.4\\n 184.68\\n 386.29\\n 184.05\\n 389.33\\n 180.31\\n 394.56\\n 178.97\\n 398.93\\n 176.7\\n 404.67\\n 178.01\\n 410.16\\n 178.29\\n 414.64\\n 181.61\\n 386.62\\n 188.63\\n 390.22\\n 189.61\\n 395.06\\n 189.65\\n 399.35\\n 189.78\\n 404.47\\n 188.86\\n 409.6\\n 187.94\\n 414.35\\n 186.47\\n 467.88\\n 180.89\\n 509.45\\n 179.81\\n 472.7\\n 177.13\\n 476.94\\n 173.17\\n 483.16\\n 172.02\\n 488.5\\n 170.41\\n 494.14\\n 172.17\\n 499.85\\n 173.15\\n 504.05\\n 176.58\\n 473.23\\n 182.31\\n 478.06\\n 183.11\\n 483.77\\n 183.5\\n 488.64\\n 183.77\\n 493.94\\n 183.26\\n 499.41\\n 182.57\\n 503.69\\n 181.14\\n 437.26\\n 181.67\\n 430.77\\n 225.48\\n 434.38\\n 203.34\\n 435.09\\n 245.37\\n 414.99\\n 243.56\\n 463.03\\n 241.47\\n 402.97\\n 282.43\\n 487.32\\n 279.44\\n 404.76\\n 282.21\\n 484.51\\n 279.63\\n 436.81\\n 269.19\\n 428.83\\n 269.46\\n 444.9\\n 269.87\\n 414.07\\n 273.42\\n 466.73\\n 272.4\\n 407.94\\n 277.81\\n 421.38\\n 271.38\\n 455.7\\n 271\\n 477.47\\n 276.08\\n 437.71\\n 290.09\\n 417.1\\n 288.03\\n 464.19\\n 286.36\\n 409.84\\n 284.75\\n 427.92\\n 288.61\\n 450.74\\n 287.81\\n 475.9\\n 282.68\\n 437.36\\n 278.04\\n 437.64\\n 277.63\\n 420.34\\n 278.65\\n 420.04\\n 278.69\\n 460.92\\n 277.64\\n 461.01\\n 277.22\\n 412.68\\n 280.41\\n 412.5\\n 279.99\\n 429.06\\n 278.19\\n 429.05\\n 277.65\\n 448.83\\n 277.82\\n 449.13\\n 276.93\\n 472.58\\n 278.55\\n 472.59\\n 278.16\\n 365.8\\n 192\\n 566.18\\n 185.68\\n 440.54\\n 352.94\\n 372.84\\n 289.96\\n 548.44\\n 300.96\\n 364.88\\n 240.03\\n 565.1\\n 243.91\\n 397.45\\n 334.16\\n 501.07\\n 340.61\\n 105\\n \\n 87.47\\n 99.99\\n 100\\n 97.59\\n 99.97\\n 93.33\\n 99.73\\n 11.57\\n \\n 48\\n 0\\n 0.95\\n 1\\n 356\\n 84\\n 211\\n 278\\n -12.7\\n 7.48\\n 0.12\\n 57\\n 1024\\n 0\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'RecognizePublicFace' => [ + 'summary' => '公众人脸识别(RecognizePublicFace)', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Task', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/facebody/xxx.jpg', + 'isFileTransferUrl' => true, + ], + 'ImageData' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 10, + 'minItems' => 1, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'AC4D107C-29E3-4873-A719-0D2217EA28A8', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/facebody/xxx.jpg', + ], + 'TaskId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'img3dhYqt1e4wO77Wnf2y@t@E-1tYAEt', + ], + 'Results' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'Suggestion' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'review', + ], + 'Label' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'sface', + ], + 'SubResults' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'W' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '132', + ], + 'Faces' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Id' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'AliFace_0006272', + ], + 'Rate' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '98.35', + ], + ], + ], + ], + 'H' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '153', + ], + 'Y' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '153', + ], + 'X' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '182', + ], + ], + ], + ], + 'Rate' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '98.35', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"AC4D107C-29E3-4873-A719-0D2217EA28A8\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"ImageURL\\": \\"https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/facebody/xxx.jpg\\",\\n \\"TaskId\\": \\"img3dhYqt1e4wO77Wnf2y@t@E-1tYAEt\\",\\n \\"Results\\": [\\n {\\n \\"Suggestion\\": \\"review\\",\\n \\"Label\\": \\"sface\\",\\n \\"SubResults\\": [\\n {\\n \\"W\\": 132,\\n \\"Faces\\": [\\n {\\n \\"Name\\": \\"张三\\",\\n \\"Id\\": \\"AliFace_0006272\\",\\n \\"Rate\\": 98.35\\n }\\n ],\\n \\"H\\": 153,\\n \\"Y\\": 153,\\n \\"X\\": 182\\n }\\n ],\\n \\"Rate\\": 98.35\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n AC4D107C-29E3-4873-A719-0D2217EA28A8\\n \\n \\n https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/facebody/xxx.jpg\\n img3dhYqt1e4wO77Wnf2y@t@E-1tYAEt\\n \\n review\\n \\n \\n 132\\n \\n 张三\\n AliFace_0006272\\n 98.35\\n \\n 153\\n 153\\n 182\\n \\n 98.35\\n \\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'MergeImageFace' => [ + 'summary' => '图像人脸融合', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + ], + 'parameters' => [ + [ + 'name' => 'TemplateId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '6cd509ea-54fa-4730-8e9d-c94cadcda048', + ], + ], + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/MergeImageFace/MergeImageFace-1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ModelVersion', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'v1', + ], + ], + [ + 'name' => 'AddWatermark', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'False', + 'default' => 'false', + ], + ], + [ + 'name' => 'WatermarkType', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'default' => 'EN', + ], + ], + [ + 'name' => 'MergeInfos', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'TemplateFaceID' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '6cd509ea-54fa-4730-8e9d-c94cadcda048_0', + ], + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'http://invi-label.oss-cn-shanghai.aliyuncs.com/label/temp/faceswap/ref/ref.jpg', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 1000, + 'minItems' => 0, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '8473A5E5-488E-4612-800E-F95B42381570', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/image-face-fusion/09dedc78-c355-442a-9312-7ab074d6de49_54dc_20210129-025407.jpg?Expires=1611890647&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=2mk2OgIrwMqrvA%2FvDdp0MNaoVU****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"8473A5E5-488E-4612-800E-F95B42381570\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/image-face-fusion/09dedc78-c355-442a-9312-7ab074d6de49_54dc_20210129-025407.jpg?Expires=1611890647&OSSAccessKeyId=LTAI****************&Signature=2mk2OgIrwMqrvA%2FvDdp0MNaoVU****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 8473A5E5-488E-4612-800E-F95B42381570\\n \\n http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/image-face-fusion/09dedc78-c355-442a-9312-7ab074d6de49_54dc_20210129-025407.jpg?Expires=1611890647&OSSAccessKeyId=LTAI****************&Signature=2mk2OgIrwMqrvA%2FvDdp0MNaoVU****\\n \\n","errorExample":""}]', + ], + 'BodyPosture' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/BodyPosture/BodyPosture4.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'B854094B-9231-4A54-89AB-C377CB0D237D', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Outputs' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'HumanCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Results' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Bodies' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Positions' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Points' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '[0.46296295523643494, 0.1304347813129425]', + ], + ], + ], + ], + ], + 'Confident' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.91309475898742676', + ], + 'Label' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'nose', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'MetaObject' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '500', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '500', + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"B854094B-9231-4A54-89AB-C377CB0D237D\\",\\n \\"Data\\": {\\n \\"Outputs\\": [\\n {\\n \\"HumanCount\\": 1,\\n \\"Results\\": [\\n {\\n \\"Bodies\\": [\\n {\\n \\"Positions\\": [\\n {\\n \\"Points\\": [\\n 0\\n ]\\n }\\n ],\\n \\"Confident\\": 0.9130947589874268,\\n \\"Label\\": \\"nose\\"\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"MetaObject\\": {\\n \\"Width\\": 500,\\n \\"Height\\": 500\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n B854094B-9231-4A54-89AB-C377CB0D237D\\n \\n \\n 500\\n 500\\n \\n \\n \\n \\n 0.91309475898742676\\n \\n \\n 0.46296295523643494\\n 0.1304347813129425\\n \\n \\n \\n 0.7284882664680481\\n \\n \\n 0.47685185074806213\\n 0.22282609343528748\\n \\n \\n \\n 0.78919297456741333\\n \\n \\n 0.3888888955116272\\n 0.239130437374115\\n \\n \\n \\n 1\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DetectBodyCount' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectBodyCount/DetectBodyCount3.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1C709078-8886-4C91-AEDE-4E04EED0A689', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'PersonNumber' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '6', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"1C709078-8886-4C91-AEDE-4E04EED0A689\\",\\n \\"Data\\": {\\n \\"PersonNumber\\": 6\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 1C709078-8886-4C91-AEDE-4E04EED0A689\\n \\n 6\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DetectPedestrian' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectPedestrian/DetectPedestrian8.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '45DBA494-6250-42C4-80D1-7CF19BDD2CB1', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'person', + ], + 'Boxes' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '[326, 293, 500, 546 ]', + ], + ], + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.999', + ], + ], + ], + ], + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '899', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '599', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"45DBA494-6250-42C4-80D1-7CF19BDD2CB1\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"person\\",\\n \\"Boxes\\": [\\n 0\\n ],\\n \\"Score\\": 0.999\\n }\\n ],\\n \\"Width\\": 899,\\n \\"Height\\": 599\\n }\\n}","errorExample":""},{"type":"xml","example":"45DBA494-6250-42C4-80D1-7CF19BDD2CB1\\n\\n 599\\n \\n 0.999\\n person\\n 326\\n 293\\n 500\\n 546\\n \\n \\n 0.998\\n person\\n 181\\n 156\\n 425\\n 534\\n \\n \\n 0.993\\n person\\n 515\\n 300\\n 705\\n 549\\n \\n \\n 0.986\\n person\\n 661\\n 129\\n 797\\n 506\\n \\n \\n 0.959\\n person\\n 511\\n 271\\n 572\\n 451\\n \\n 899\\n","errorExample":""}]', + ], + 'PedestrianDetectAttribute' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/PedestrianDetectAttribute/PedestrianDetectAttribute1.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '4F609A30-F645-481E-A513-CADAA14DFB0A', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Attributes' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Gender' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.97989875078201294', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'female', + ], + ], + ], + 'Orient' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.97838658094406128', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Front', + ], + ], + ], + 'Age' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.99590516090393066', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Age18-60', + ], + ], + ], + 'UpperWear' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.89291918277740479', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'ShortSleeve', + ], + ], + ], + 'Glasses' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.87284471094608307', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'No', + ], + ], + ], + 'LowerWear' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.6424860954284668', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Trousers', + ], + ], + ], + 'LowerColor' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.69961744546890259', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + ], + ], + 'Hat' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.98272394016385078', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'No', + ], + ], + ], + 'Handbag' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.55011671781539917', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Yes', + ], + ], + ], + 'Backpack' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.96486538648605347', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'No', + ], + ], + ], + 'UpperColor' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.97796273231506348', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + ], + ], + 'ShoulderBag' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.91198787838220596', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'No', + ], + ], + ], + ], + ], + ], + 'Boxes' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'BottomRightX' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '584', + ], + 'TopLeftY' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '27', + ], + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.88381063938140869', + ], + 'TopLeftX' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '36', + ], + 'BottomRightY' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '218', + ], + ], + ], + ], + 'PersonNumber' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '264', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '584', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"4F609A30-F645-481E-A513-CADAA14DFB0A\\",\\n \\"Data\\": {\\n \\"Attributes\\": [\\n {\\n \\"Gender\\": {\\n \\"Score\\": 0.9798987507820129,\\n \\"Name\\": \\"female\\"\\n },\\n \\"Orient\\": {\\n \\"Score\\": 0.9783865809440613,\\n \\"Name\\": \\"Front\\"\\n },\\n \\"Age\\": {\\n \\"Score\\": 0.9959051609039307,\\n \\"Name\\": \\"Age18-60\\"\\n },\\n \\"UpperWear\\": {\\n \\"Score\\": 0.8929191827774048,\\n \\"Name\\": \\"ShortSleeve\\"\\n },\\n \\"Glasses\\": {\\n \\"Score\\": 0.8728447109460831,\\n \\"Name\\": \\"No\\"\\n },\\n \\"LowerWear\\": {\\n \\"Score\\": 0.6424860954284668,\\n \\"Name\\": \\"Trousers\\"\\n },\\n \\"LowerColor\\": {\\n \\"Score\\": 0.6996174454689026,\\n \\"Name\\": \\"黑\\"\\n },\\n \\"Hat\\": {\\n \\"Score\\": 0.9827239401638508,\\n \\"Name\\": \\"No\\"\\n },\\n \\"Handbag\\": {\\n \\"Score\\": 0.5501167178153992,\\n \\"Name\\": \\"Yes\\"\\n },\\n \\"Backpack\\": {\\n \\"Score\\": 0.9648653864860535,\\n \\"Name\\": \\"No\\"\\n },\\n \\"UpperColor\\": {\\n \\"Score\\": 0.9779627323150635,\\n \\"Name\\": \\"黄\\"\\n },\\n \\"ShoulderBag\\": {\\n \\"Score\\": 0.911987878382206,\\n \\"Name\\": \\"No\\"\\n }\\n }\\n ],\\n \\"Boxes\\": [\\n {\\n \\"BottomRightX\\": 584,\\n \\"TopLeftY\\": 27,\\n \\"Score\\": 0.8838106393814087,\\n \\"TopLeftX\\": 36,\\n \\"BottomRightY\\": 218\\n }\\n ],\\n \\"PersonNumber\\": 1,\\n \\"Width\\": 264,\\n \\"Height\\": 584\\n }\\n}","errorExample":""},{"type":"xml","example":"4F609A30-F645-481E-A513-CADAA14DFB0A\\n\\n 1\\n \\n \\n 0.96486538648605347\\n No\\n \\n \\n 0.6424860954284668\\n Trousers\\n \\n \\n 0.97838658094406128\\n Front\\n \\n \\n 0.91198787838220596\\n No\\n \\n \\n 0.69961744546890259\\n \\n \\n \\n 0.87284471094608307\\n No\\n \\n \\n 0.97796273231506348\\n \\n \\n \\n 0.55011671781539917\\n Yes\\n \\n \\n 0.98272394016385078\\n No\\n \\n \\n 0.97989875078201294\\n female\\n \\n \\n 0.99590516090393066\\n Age18-60\\n \\n \\n 0.89291918277740479\\n ShortSleeve\\n \\n \\n \\n 584\\n 0.88381063938140869\\n 218\\n 27\\n 36\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'GetRealPersonVerificationResult' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + ], + 'parameters' => [ + [ + 'name' => 'VerificationToken', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'cwek23dw24geor89230hf2rw', + 'isFileTransferUrl' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '10FC953D-7C0C-4915-8949-34E3246E5B79', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Passed' => [ + 'description' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"10FC953D-7C0C-4915-8949-34E3246E5B79\\",\\n \\"Data\\": {\\n \\"Passed\\": true\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 10FC953D-7C0C-4915-8949-34E3246E5B79\\n \\n true\\n \\n","errorExample":""}]', + ], + 'GenRealPersonVerificationToken' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'CertificateName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '', + 'isFileTransferUrl' => false, + ], + ], + [ + 'name' => 'CertificateNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '33010219001123123X', + ], + ], + [ + 'name' => 'MetaInfo', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '{"dwe":"ew4e"...}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'A31006F2-22E7-4538-93BB-DE6B563643EE', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'VerificationToken' => [ + 'description' => '', + 'type' => 'string', + 'example' => '9fca3791c158a479ead9f2ba65ab3XXX', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"A31006F2-22E7-4538-93BB-DE6B563643EE\\",\\n \\"Data\\": {\\n \\"VerificationToken\\": \\"9fca3791c158a479ead9f2ba65ab3XXX\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"A31006F2-22E7-4538-93BB-DE6B563643EE\\n\\n 9fca3791c158a479ead9f2ba65ab3XXX\\n","errorExample":""}]', + ], + 'DetectCelebrity' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/facebody/xxx.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '4E92C0D4-BB0F-4F25-AD13-E87D02FAA205', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FaceRecognizeResults' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FaceBoxes' => [ + 'description' => '1', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '[0.285,0.202,0.534,0.721]', + ], + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + ], + ], + ], + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1000', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1000', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"4E92C0D4-BB0F-4F25-AD13-E87D02FAA205\\",\\n \\"Data\\": {\\n \\"FaceRecognizeResults\\": [\\n {\\n \\"FaceBoxes\\": [\\n 0\\n ],\\n \\"Name\\": \\"张三\\"\\n }\\n ],\\n \\"Width\\": 1000,\\n \\"Height\\": 1000\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 4E92C0D4-BB0F-4F25-AD13-E87D02FAA205\\n \\n \\n 0.285\\n 0.202\\n 0.534\\n 0.721\\n 张三\\n \\n 1000\\n 1000\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'DetectVideoLivingFace' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'VideoUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectVideoLivingFace/DetectVideoLivingFace1.mp4', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '8E92F28B-F889-48CB-9FCC-3207CFA2215E', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Rect' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '[374, 6, 493,106 ]', + ], + ], + 'LiveConfidence' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.72464925050735474', + ], + 'FaceConfidence' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.84644949436187744', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"8E92F28B-F889-48CB-9FCC-3207CFA2215E\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Rect\\": [\\n 0\\n ],\\n \\"LiveConfidence\\": 0.7246492505073547,\\n \\"FaceConfidence\\": 0.8464494943618774\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"8E92F28B-F889-48CB-9FCC-3207CFA2215E\\n\\n \\n 0.84644949436187744\\n 374\\n 6\\n 493\\n 106\\n 0.72464925050735474\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'GenerateHumanAnimeStyle' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/GenerateHumanAnimeStyle/GenerateHumanAnimeStyle8.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'AlgoType', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'anime', + 'default' => 'anime', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '59697D68-2A6E-4553-89BD-0FADD07881E8', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-cartoonizer/59697D68-2A6E-4553-89BD-0FADD07881E8_7ee5_20201027-070958.jpg?Expires=1603784400&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSR****&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"59697D68-2A6E-4553-89BD-0FADD07881E8\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI****************&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 59697D68-2A6E-4553-89BD-0FADD07881E8\\n \\n https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/viapi-video/person_image_cartoonizer/2023-10-25/55798d04-0957-4ab1-accc-0e4d2d01a039/20231025092636774205_styleanime_n2vedxruht.jpg?Expires=1698283596&OSSAccessKeyId=LTAI****************&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****\\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'GenerateHumanSketchStyle' => [ + 'summary' => '人像素描风格化', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/GenerateHumanSketchStyle/GenerateHumanSketchStyle7.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ReturnType', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'head', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'E499788C-22DA-4F0E-B9C0-0E9D30A25716', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'title' => '出参图片地址', + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-pencil/fd49dd0a-9e24-4bb5-b303-0745cdb453e0_7aa6_20210128-073045.jpg?Expires=1611820849&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=1oLYG%2FPe%2BNRIK7XcsUQYaKF%2B1C****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"E499788C-22DA-4F0E-B9C0-0E9D30A25716\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-pencil/fd49dd0a-9e24-4bb5-b303-0745cdb453e0_7aa6_20210128-073045.jpg?Expires=1611820849&OSSAccessKeyId=LTAI****************&Signature=1oLYG%2FPe%2BNRIK7XcsUQYaKF%2B1C****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E499788C-22DA-4F0E-B9C0-0E9D30A25716\\n \\n http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-pencil/fd49dd0a-9e24-4bb5-b303-0745cdb453e0_7aa6_20210128-073045.jpg?Expires=1611820849&OSSAccessKeyId=LTAI****************&Signature=1oLYG%2FPe%2BNRIK7XcsUQYaKF%2B1C****\\n \\n","errorExample":""}]', + ], + 'RecognizeAction' => [ + 'summary' => '动作行为识别(RecognizeAction)', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Type', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '0', + ], + ], + [ + 'name' => 'VideoUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/RecognizeAction/RecognizeAction-video1.mp4', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'URLList', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'URL' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/RecognizeAction/1RecognizeAction1.png', + 'isFileTransferUrl' => true, + ], + 'imageData' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgQ****', + ], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 300, + ], + ], + [ + 'name' => 'VideoData', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'iVBORw0KGgoAAAANSUhEUgAAAoAAAAHJCAIAAACaEB9NAAEAAElEQVR4nNT9Wb****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'E9C40AF5-A7F8-49D5-8A0C-B21F15A07F17', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Scores' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.702967643737793', + ], + ], + 'Labels' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + ], + 'Boxes' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Box' => [ + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '[1119,576,1373,970]', + ], + ], + ], + ], + ], + 'Timestamp' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"E9C40AF5-A7F8-49D5-8A0C-B21F15A07F17\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Scores\\": [\\n 0.702967643737793\\n ],\\n \\"Labels\\": [\\n \\"跌倒\\"\\n ],\\n \\"Boxes\\": [\\n {\\n \\"Box\\": [\\n 0\\n ]\\n }\\n ],\\n \\"Timestamp\\": 3\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"E9C40AF5-A7F8-49D5-8A0C-B21F15A07F17\\n\\n \\n 1\\n \\n \\n 0.702967643737793\\n 跌倒\\n 3\\n \\n 1119\\n 576\\n 1373\\n 970\\n \\n \\n \\n 0.7334273457527161\\n 跌倒\\n 5\\n \\n 1128\\n 613\\n 1363\\n 991\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'RecognizeExpression' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/RecognizeExpression/RecognizeExpression10.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'E1C4C576-1799-4079-A934-15BC406A54EF', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'FaceRectangle' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Top' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '41', + ], + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '121', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '174', + ], + 'Left' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '196', + ], + ], + ], + 'Expression' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'surprise', + ], + 'FaceProbability' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.99651491641998291', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"E1C4C576-1799-4079-A934-15BC406A54EF\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"FaceRectangle\\": {\\n \\"Top\\": 67,\\n \\"Width\\": 113,\\n \\"Height\\": 154,\\n \\"Left\\": 370\\n },\\n \\"Expression\\": \\"happiness\\",\\n \\"FaceProbability\\": 0.88330078125\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E1C4C576-1799-4079-A934-15BC406A54EF\\n \\n \\n \\n 67\\n 113\\n 154\\n 370\\n \\n happiness\\n 0.8833008\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'BatchAddFaces' => [ + 'summary' => '批量添加人脸数据', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'DbName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'default', + ], + ], + [ + 'name' => 'EntityId', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'U1', + ], + ], + [ + 'name' => 'SimilarityScoreThresholdInEntity', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '50.0', + ], + ], + [ + 'name' => 'SimilarityScoreThresholdBetweenEntity', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '50.0', + ], + ], + [ + 'name' => 'Faces', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'ExtraData' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/1.png', + 'isFileTransferUrl' => true, + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 5, + ], + ], + [ + 'name' => 'QualityScoreThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '50.0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C46A46D0-3263-181A-A1EE-0901E4595390', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'InsertedFaces' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/xxxx.png', + ], + 'FaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '16350536', + ], + 'QualitieScore' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.79581', + ], + ], + ], + ], + 'FailedFaces' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '1', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/xxxx.png', + ], + 'Code' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'ClientError.IllegalArgument', + ], + 'Message' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'not found the db=test', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"C46A46D0-3263-181A-A1EE-0901E4595390\\",\\n \\"Data\\": {\\n \\"InsertedFaces\\": [\\n {\\n \\"ImageURL\\": \\"https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/xxxx.png\\",\\n \\"FaceId\\": \\"16350536\\",\\n \\"QualitieScore\\": 99.79581\\n }\\n ],\\n \\"FailedFaces\\": [\\n {\\n \\"ImageURL\\": \\"https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/xxxx.png\\",\\n \\"Code\\": \\"ClientError.IllegalArgument\\",\\n \\"Message\\": \\"not found the db=test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n C46A46D0-3263-181A-A1EE-0901E4595390\\n \\n \\n https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/xxxx.png\\n 16350536\\n 99.79581\\n \\n \\n https://viapi-test.oss-cn-shanghai.aliyuncs.com/test/imgsearch/demo/xxxx.png\\n ClientError.IllegalArgument\\n not found the db=test\\n \\n \\n","errorExample":""}]', + 'requestParamsDescription' => ' ', + ], + 'ExtractFingerPrint' => [ + 'summary' => '指纹提取', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/xuhan/ExtractFingerPrint.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ImageData', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'iVBORw0KGgoAAAANSUhEUgAAASUAA****', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'D21978CC-C1E7-4A7A-A1B2-D5896BDC7ADF', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FingerPrint' => [ + 'description' => '', + 'type' => 'string', + 'format' => 'byte', + 'example' => '/9j/4AAQSkZJRgABAQAAAQABAAD****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"D21978CC-C1E7-4A7A-A1B2-D5896BDC7ADF\\",\\n \\"Data\\": {\\n \\"FingerPrint\\": \\"/9j/4AAQSkZJRgABAQAAAQABAAD****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n D21978CC-C1E7-4A7A-A1B2-D5896BDC7ADF\\n \\n /9j/4AAQSkZJRgABAQAAAQABAAD****\\n \\n","errorExample":""}]', + ], + 'LiquifyFace' => [ + 'summary' => '智能瘦脸', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/LiquifyFace/LiquifyFace1.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'SlimDegree', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'maximum' => '2', + 'minimum' => '0', + 'example' => '1.0', + 'default' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'CA1C8937-B30C-15E6-B804-41C357BA413B', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/face-liquify/CA1C8937-B30C-15E6-B804-41C357BA413B_5eca_20210923-093411.jpg?Expires=1632391451&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=46apJQVNBz%2FFzDLEYn2M1w9MKA****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"CA1C8937-B30C-15E6-B804-41C357BA413B\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/face-liquify/CA1C8937-B30C-15E6-B804-41C357BA413B_5eca_20210923-093411.jpg?Expires=1632391451&OSSAccessKeyId=LTAI****************&Signature=46apJQVNBz%2FFzDLEYn2M1w9MKA****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n CA1C8937-B30C-15E6-B804-41C357BA413B\\n \\n http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/face-liquify/CA1C8937-B30C-15E6-B804-41C357BA413B_5eca_20210923-093411.jpg?Expires=1632391451&OSSAccessKeyId=LTAI****************&Signature=46apJQVNBz%2FFzDLEYn2M1w9MKA****\\n \\n","errorExample":""}]', + ], + 'MonitorExamination' => [ + 'summary' => '线上监考', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Type', + 'in' => 'formData', + 'schema' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'maximum' => '1', + 'minimum' => '0', + 'example' => '1', + ], + ], + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/MonitorExamination/1MonitorExamination1.jpg', + 'isFileTransferUrl' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'D0F6EB94-73B6-4CB8-B266-22D2F221C475', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FaceInfo' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Completeness' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '1', + ], + 'FaceNumber' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'Pose' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Pitch' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '-0.9185499548912048', + ], + 'Roll' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '-0.18541647493839264', + ], + 'Yaw' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '8.095342636108398', + ], + ], + ], + ], + ], + 'PersonInfo' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'CellPhone' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.39076218008995056', + ], + 'Threshold' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.6', + ], + ], + ], + 'EarPhone' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Score' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.7980290651321411', + ], + 'Threshold' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.6', + ], + ], + ], + 'PersonNumber' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + ], + ], + 'ChatScore' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.28805577754974365', + ], + 'Threshold' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.5', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"D0F6EB94-73B6-4CB8-B266-22D2F221C475\\",\\n \\"Data\\": {\\n \\"FaceInfo\\": {\\n \\"Completeness\\": 1,\\n \\"FaceNumber\\": 1,\\n \\"Pose\\": {\\n \\"Pitch\\": -0.9185499548912048,\\n \\"Roll\\": -0.18541647493839264,\\n \\"Yaw\\": 8.095342636108398\\n }\\n },\\n \\"PersonInfo\\": {\\n \\"CellPhone\\": {\\n \\"Score\\": 0.39076218008995056,\\n \\"Threshold\\": 0.6\\n },\\n \\"EarPhone\\": {\\n \\"Score\\": 0.7980290651321411,\\n \\"Threshold\\": 0.6\\n },\\n \\"PersonNumber\\": 1\\n },\\n \\"ChatScore\\": 0.28805577754974365,\\n \\"Threshold\\": 0.5\\n }\\n}","errorExample":""},{"type":"xml","example":"D0F6EB94-73B6-4CB8-B266-22D2F221C475\\n\\n \\n 1\\n 1\\n \\n -0.91854995\\n -0.18541647\\n 8.095343\\n \\n \\n \\n \\n 0.39076218\\n 0.6\\n \\n \\n 0.79802907\\n 0.6\\n \\n 1\\n \\n 0.28805578\\n 0.5\\n","errorExample":""}]', + ], + 'RetouchSkin' => [ + 'summary' => '美肤', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURL', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/RetouchSkin/RetouchSkin3.png', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'RetouchDegree', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '1.0', + ], + ], + [ + 'name' => 'WhiteningDegree', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '1.0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'FD2BF3DF-3D98-1D5D-85BB-C8EC3A9FE347', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/skin-retouch/FD2BF3DF-3D98-1D5D-85BB-C8EC3A9FE347_3467_20210923-094238.jpg?Expires=1632391959&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSRp****&Signature=jXJcFTv3no7Gx%2BLuPvANhRSnc2****', + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"FD2BF3DF-3D98-1D5D-85BB-C8EC3A9FE347\\",\\n \\"Data\\": {\\n \\"ImageURL\\": \\"http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/skin-retouch/FD2BF3DF-3D98-1D5D-85BB-C8EC3A9FE347_3467_20210923-094238.jpg?Expires=1632391959&OSSAccessKeyId=LTAI****************&Signature=jXJcFTv3no7Gx%2BLuPvANhRSnc2****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n FD2BF3DF-3D98-1D5D-85BB-C8EC3A9FE347\\n \\n http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/skin-retouch/FD2BF3DF-3D98-1D5D-85BB-C8EC3A9FE347_3467_20210923-094238.jpg?Expires=1632391959&OSSAccessKeyId=LTAI****************&Signature=jXJcFTv3no7Gx%2BLuPvANhRSnc2****\\n \\n","errorExample":""}]', + ], + 'CompareFaceWithMask' => [ + 'summary' => '口罩人脸比对1:1', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'ImageURLA', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'ImageURLB', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '', + 'isFileTransferUrl' => true, + ], + ], + [ + 'name' => 'QualityScoreThreshold', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '97.0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C6499918-E932-41B3-96F5-A18F50D262DD', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Confidence' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + 'IsMaskA' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + 'IsMaskB' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + 'LandmarksAList' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + ], + 'LandmarksBList' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + ], + 'QualityScoreA' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + 'QualityScoreB' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '', + ], + 'RectAList' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + ], + 'RectBList' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '', + ], + ], + 'Thresholds' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '[61, 69, 75]', + ], + ], + 'MessageTips' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'imageB quality score less threshold', + ], + ], + ], + ], + ], + ], + ], + '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.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C6499918-E932-41B3-96F5-A18F50D262DD\\",\\n \\"Data\\": {\\n \\"Confidence\\": 88.02560424804688,\\n \\"IsMaskA\\": 1,\\n \\"IsMaskB\\": 0,\\n \\"LandmarksAList\\": [\\n 0\\n ],\\n \\"LandmarksBList\\": [\\n 0\\n ],\\n \\"QualityScoreA\\": 75.8912582397461,\\n \\"QualityScoreB\\": 98.71688079833984,\\n \\"RectAList\\": [\\n 0\\n ],\\n \\"RectBList\\": [\\n 0\\n ],\\n \\"Thresholds\\": [\\n 0\\n ],\\n \\"MessageTips\\": \\"imageB quality score less threshold\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n C6499918-E932-41B3-96F5-A18F50D262DD\\n \\n 88.025604\\n 1\\n 0\\n 348\\n 490\\n 523\\n 478\\n 446\\n 577\\n 386\\n 677\\n 514\\n 668\\n 356\\n 590\\n 487\\n 589\\n 410\\n 676\\n 368\\n 754\\n 476\\n 753\\n 75.89126\\n 98.71688\\n 238\\n 310\\n 388\\n 492\\n 284\\n 467\\n 293\\n 373\\n 61\\n 69\\n 75\\n imageB quality score less threshold\\n \\n","errorExample":""}]', + ], + 'DetectInfraredLivingFace' => [ + 'summary' => '红外人脸活体检测', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Tasks', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DetectInfraredLivingFace/DetectInfraredLivingFace.jpeg', + 'isFileTransferUrl' => true, + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 10, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '68DF6EC7-3B1D-11EE-9FA7-1122F1AE92DD', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FaceNumber' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://viapi-demo.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/SegmentCommonImage/segmentimage-src-hu.jpeg', + ], + 'Results' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'liveness', + ], + 'Rate' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '83.3848', + ], + 'Rect' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20', + ], + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '30', + ], + 'Top' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '50', + ], + 'Left' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '60', + ], + ], + ], + 'Suggestion' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'review', + ], + 'MessageTips' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'blurred, occluded or large angle face, please check.', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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\\": \\"68DF6EC7-3B1D-11EE-9FA7-1122F1AE92DD\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"FaceNumber\\": 1,\\n \\"ImageURL\\": \\"http://viapi-demo.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/SegmentCommonImage/segmentimage-src-hu.jpeg\\",\\n \\"Results\\": [\\n {\\n \\"Label\\": \\"liveness\\",\\n \\"Rate\\": 83.3848,\\n \\"Rect\\": {\\n \\"Height\\": 20,\\n \\"Width\\": 30,\\n \\"Top\\": 50,\\n \\"Left\\": 60\\n },\\n \\"Suggestion\\": \\"review\\",\\n \\"MessageTips\\": \\"blurred, occluded or large angle face, please check.\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 68DF6EC7-3B1D-11EE-9FA7-1122F1AE92DD\\n \\n \\n 1\\n http://viapi-demo.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/SegmentCommonImage/segmentimage-src-hu.jpeg\\n \\n \\n 83.3848\\n \\n 20\\n 30\\n 50\\n 60\\n \\n review\\n blurred, occluded or large angle face, please check.\\n \\n \\n \\n","errorExample":""}]', + ], + 'DeepfakeFace' => [ + 'summary' => '换脸鉴别', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + ], + 'parameters' => [ + [ + 'name' => 'Tasks', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DeepfakeFace/DeepfakeFace1.jpg', + 'isFileTransferUrl' => true, + ], + 'ImageData' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '/9j/4AAQSkZJRgABAQAAAQABAAD/2****', + ], + ], + 'required' => false, + ], + 'required' => true, + 'maxItems' => 10, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '8E6F65D5-62A1-1E5B-BC0B-00508034AC92', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Elements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ImageURL' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DeepfakeFace/DeepfakeFace1.jpg', + ], + 'TaskId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '8E6F65D5-62A1-1E5B-BC0B-00508034AC92', + ], + 'Results' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'normalface', + ], + 'Confidence' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '36.6455', + ], + 'Rect' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Left' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '373', + ], + 'Top' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '111', + ], + 'Width' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '207', + ], + 'Height' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '284', + ], + ], + ], + 'MessageTips' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'blurred, occluded or large angle face, please check.', + ], + ], + ], + ], + 'FaceNumber' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"8E6F65D5-62A1-1E5B-BC0B-00508034AC92\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"ImageURL\\": \\"http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DeepfakeFace/DeepfakeFace1.jpg\\",\\n \\"TaskId\\": \\"8E6F65D5-62A1-1E5B-BC0B-00508034AC92\\",\\n \\"Results\\": [\\n {\\n \\"Label\\": \\"normalface\\",\\n \\"Confidence\\": 36.6455,\\n \\"Rect\\": {\\n \\"Left\\": 373,\\n \\"Top\\": 111,\\n \\"Width\\": 207,\\n \\"Height\\": 284\\n },\\n \\"MessageTips\\": \\"blurred, occluded or large angle face, please check.\\"\\n }\\n ],\\n \\"FaceNumber\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 8E6F65D5-62A1-1E5B-BC0B-00508034AC92\\n \\n \\n http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/DeepfakeFace/DeepfakeFace1.jpg\\n 8E6F65D5-62A1-1E5B-BC0B-00508034AC92\\n \\n \\n 36.6455\\n \\n 373\\n 111\\n 207\\n 284\\n \\n blurred, occluded or large angle face, please check.\\n \\n 1\\n \\n \\n","errorExample":""}]', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'facebody.cn-shanghai.aliyuncs.com', + ], + ], +]; diff --git a/data/en_us/facebody/2020-09-10/api-docs.php b/data/en_us/facebody/2020-09-10/api-docs.php new file mode 100644 index 0000000..a9098e1 --- /dev/null +++ b/data/en_us/facebody/2020-09-10/api-docs.php @@ -0,0 +1,147 @@ + '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'facebody', + 'version' => '2020-09-10', + ], + 'directories' => [ + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'ExecuteServerSideVerification', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'ExecuteServerSideVerification' => [ + 'summary' => '核身纯服务端版', + 'path' => '/viapi/thirdparty/realperson/execServerSideVerification', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/x-www-form-urlencoded', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'certificateName', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '', + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'certificateNumber', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '1281739873298172981', + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'facialPictureData', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => '/9j/wwew...', + 'format' => 'byte', + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'facialPictureUrl', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'http://xxx.xxx.com/xxx.jpg', + 'required' => false, + 'type' => 'string', + ], + ], + [ + 'name' => 'sceneType', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'example' => 'server', + 'required' => false, + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'example' => 'CE2FFC8A-6669-4F02-B4DA-95888087FBDC', + 'title' => 'Id of the request', + 'type' => 'string', + ], + 'Data' => [ + 'description' => '', + 'properties' => [ + 'Pass' => [ + 'description' => '', + 'example' => 'true', + 'type' => 'boolean', + ], + 'VerificationToken' => [ + 'description' => '', + 'example' => '6f1f730e732b232ccbdd85abc751****', + 'type' => 'string', + ], + 'Reason' => [ + 'description' => '', + 'example' => '', + 'type' => 'string', + ], + ], + 'type' => 'object', + ], + ], + 'title' => 'Schema of Response', + 'type' => 'object', + ], + ], + ], + 'staticInfo' => [], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CE2FFC8A-6669-4F02-B4DA-95888087FBDC\\",\\n \\"Data\\": {\\n \\"Pass\\": true,\\n \\"VerificationToken\\": \\"6f1f730e732b232ccbdd85abc751****\\",\\n \\"Reason\\": \\"认证通过(Z8120)\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"CE2FFC8A-6669-4F02-B4DA-95888087FBDC\\n\\n true\\n 6f1f730e732b232ccbdd85abc751****\\n 认证通过(Z8120)\\n","errorExample":""}]', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'facebody.cn-shanghai.aliyuncs.com', + ], + ], +]; -- cgit v1.2.3