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
ci:CreateAssessQualityJob to the action in the authorization policy. For all operation APIs supported by Cloud Infinite, please see Cloud Infinite action.GET /<ObjectKey>?ci-process=AssessQuality HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
Parameter Name | Description | Type | Required or Not |
ObjectKey | object filename, for example: folder/document.jpg. | String | Yes |
ci-process | Cloud Infinite processing capability Image quality detection fixed as AssessQuality | String | Yes |
<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>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None. | Container for saving results. | Container |
Parameter Name | Description | Type |
LongImage | Value is TRUE or FALSE. TRUE indicates a long image, FALSE indicates a normal image. A long image is defined as an image with an aspect ratio greater than or equal to 3 or less than or equal to 1/3. | Boolean |
BlackAndWhite | Value is TRUE or FALSE. TRUE indicates a black and white image, FALSE indicates otherwise. A black and white image, which is a grayscale image, refers to an image where the red, green, and blue channels are displayed in grayscale. It is not a visual "black and white picture." | Boolean |
SmallImage | Value is TRUE or FALSE. TRUE indicates a small image, FALSE indicates otherwise. A small image is defined as an image with a long side less than 179 pixels. When an image is judged as a small image, it is not recommended for recommendation and display. Other fields are uniformly output as 0 or FALSE. | Boolean |
BigImage | Value is TRUE or FALSE. TRUE indicates a large image, FALSE indicates otherwise. Defined as an image with the shortest side greater than 1000 pixels. | Boolean |
PureImage | Value is TRUE or FALSE. TRUE indicates a solid color image or plain text image, i.e., an image with no content or only simple content. FALSE indicates a normal image. | Boolean |
ClarityScore | Image clarity score. A comprehensive evaluation is performed on factors such as noise, exposure, blur, and compression of an image. The value ranges from [0, 100]. The higher the value, the clearer the image. Generally, a value greater than 50 indicates a relatively clear image. The standard can be determined on one's own. | Integer |
AestheticScore | Image aesthetics score. The image is evaluated from multiple artistic dimensions such as composition and color. The value ranges from [0, 100]. The higher the value, the more beautiful the image. Generally, a value greater than 50 indicates a relatively beautiful image. The standard can be determined on one's own. | Integer |
LowQualityScore | Image content quality score. The content quality of an image is evaluated from multiple aspects such as background and image content. The value ranges from [0, 100]. The higher the value, the better the content quality. Generally, a value greater than 50 indicates relatively good content quality. The standard can be determined on one's own. | Integer |
RequestId | Unique request ID, returned for each request. RequestId is required for locating a problem. | 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>
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan