Evaluates the aesthetic quality of an image based on composition, brightness, contrast, color, and resolution. Returns a score from 0 to 1, where a higher score indicates better visual quality.
Operation description
-
Before you call this operation, make sure that you are familiar with the billing of Intelligent Media Management (IMM).
-
Ensure that a project exists in the current region. For more information, see Project management.
-
For the supported image formats, see Limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:DetectImageScore |
none |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
|
test-project |
| SourceURI |
string |
No |
The OSS URI of the input image. Specify the OSS URI in the oss://${Bucket}/${Object} format, where |
oss://examplebucket/sampleobject.jpg |
| CredentialConfig | CredentialConfig |
No |
If you have no special requirements, leave this parameter empty. The authorization chain settings. For more information, see Use authorization chains to access resources of other entities. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
6E93D6C9-5AC0-49F9-914D-E02678D3**** |
| ImageScore |
object |
The quality score of the image. |
|
| OverallQualityScore |
number |
The overall quality score. |
0.6 |
Examples
Success response
JSON format
{
"RequestId": "6E93D6C9-5AC0-49F9-914D-E02678D3****",
"ImageScore": {
"OverallQualityScore": 0.6
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.