History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /<ObjectKey>?ci-process=AssessQuality HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
参数名称 | 描述 | 类型 | 是否必选 |
ObjectKey | 对象文件名,例如:folder/document.jpg。 | String | 是 |
ci-process | 数据万象处理能力,图像质量检测固定为 AssessQuality。 | String | 是 |
<Response><LongImage>FALSE</LongImage><BlackAndWhite>FALSE</BlackAndWhite><SmallImage>FALSE</SmallImage><BigImage>TRUE</BigImage><PureImage>FALSE</PureImage><ClarityScore>89</ClarityScore><AestheticScore>70</AestheticScore><LowQualityScore>40</LowQualityScore><RequestId></RequestId></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器。 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
LongImage | Response | 取值为 TRUE 或 FALSE,TRUE 为长图,FALSE 为正常图,长图定义为长宽比大于等于3或小于等于1/3的图片。 | Boolean |
BlackAndWhite | Response | 取值为 TRUE 或 FALSE,TRUE 为黑白图,FALSE 为否。黑白图即灰度图,指红绿蓝三个通道都是以灰度色阶显示的图片,并非视觉上的“黑白图片”。 | Boolean |
SmallImage | Response | 取值为 TRUE 或 FALSE,TRUE 为小图,FALSE 为否, 小图定义为最长边小于179像素的图片。当一张图片被判断为小图时,不建议做推荐和展示,其他字段统一输出为0或 FALSE。 | Boolean |
BigImage | Response | 取值为 TRUE 或 FALSE,TRUE 为大图,FALSE 为否,定义为最短边大于1000像素的图片。 | Boolean |
PureImage | Response | 取值为 TRUE 或 FALSE,TRUE 为纯色图或纯文字图,即没有内容或只有简单内容的图片,FALSE 为正常图片。 | Boolean |
ClarityScore | Response | 图像清晰度得分,对图片的噪声、曝光、模糊、压缩等因素进行综合评估,取值为[0, 100],值越大,越清晰。一般大于50为较清晰图片,标准可以自行把握。 | Integer |
AestheticScore | Response | 图像美观度得分,从构图、色彩等多个艺术性维度评价图片,取值为[0, 100],值越大,越美观。一般大于50为较美观图片,标准可以自行把握。 | Integer |
LowQualityScore | Response | 图像内容质量得分,从图像背景、图像内容等多个角度评价图片的内容质量,取值为[0, 100],值越大,表示内容质量越高,一般大于50为内容质量较好的图片,标准可以自行把握。 | Integer |
RequestId | Response | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 | String |
GET /<ObjectKey>?ci-process=AssessQuality HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Tue, 03 Apr 2019 09:06:15 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 414641Date: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-cos-request-id: NWFjMzQ0MDZfOTBmYTUwXzZkZV8z****<Response><LongImage>FALSE</LongImage><BlackAndWhite>FALSE</BlackAndWhite><SmallImage>FALSE</SmallImage><BigImage>TRUE</BigImage><PureImage>FALSE</PureImage><ClarityScore>89</ClarityScore><AestheticScore>70</AestheticScore><LowQualityScore>40</LowQualityScore><RequestId>NTk0MjdmODlfMjQ4OGY3XzYzYzhf****</RequestId></Response>
文档反馈