tencent cloud

APIs

Abnormal Image Detection

聚焦模式
字号
最后更新时间: 2026-01-13 17:18:47

Description

This interface can be used to detect whether there are other types of suspicious files embedded in images.

Authorization Description

When using a sub-account, you need to add the ci:CreateImageInspectJob permission to the action of the authorization policy. For all operation interfaces supported by Cloud Infinite, see CI action.

Service Activation

To use this feature, you need to bind Bucket in advance and activate the Cloud Infinite service.
Note:
After Cloud Infinite is bound, if you manually unbind Cloud Infinite from the Bucket, you will not be able to continue using this feature.

Use Limits

When this interface is used, please first confirm the relevant restrictions. For details, see Usage Limits.

Fee Instructions

This interface is a paid service, and the incurred fees will be charged by Cloud Infinite. For detailed billing information, refer to Image Processing Fees.


API Examples

GET /<ObjectKey>?imageInspect HTTP/1.1
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
Date: <GMT Date>
Authorization: <Auth String>

Description of Processing Parameters

Request Parameter

Operation name: imageInspect.
Parameter
Description
Type
Required
ObjectKey
Name of the object file, for example, folder/sample.jpg
String
Yes

Response Parameters

Parameter
Description
Type
picSize
Size of the original image to be detected, in Bytes
String
picType
Detected original image type, for example, jpg, png.
String
suspicious
Indicates whether files other than image formats are detected. false indicates a normal image file, true indicates a suspicious file containing other formats.
Boolean
suspiciousBeginByte
Starting byte position of the detected suspicious file, in Bytes
String
suspiciousEndByte
Position of the end byte of the detected suspicious file, in Bytes
String
suspiciousSize
Size of the detected suspicious file
String
suspiciousType
Type of the detected suspicious file, for example, MPEG-TS
String

Usage Examples

A request sample is as follows:
http://examples-1251000004.cos.ap-shanghai.myqcloud.com/sample.jpeg?imageInspect
The response result is as follows:
{
"picSize": 158421,
"picType": "jpeg",
"suspicious": false
}

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈