tencent cloud

All product documents
Cloud Infinite
Abnormal Image Detection
Last updated: 2024-02-18 10:36:36
Abnormal Image Detection
Last updated: 2024-02-18 10:36:36

Feature Overview

CI uses the ImageInspect API to detect whether other types of suspicious files are hidden in an image.

Restrictions

Format: This feature can detect three types of abnormal images: PNG with TS video stream, BMP with TS video stream, and TS video stream (with only the extension changed).
Size: The input image cannot be larger than 32 MB, with its width and height not exceeding 30,000 pixels respectively, and the total number of pixels not exceeding 250 million. The width and height of the output image cannot exceed 9,999 pixels respectively. For an animated input image, the total number of pixels (width * height * number of frames) cannot exceed 250 million.

API Format

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

Parameters

Request parameters

Operation name: ImageInspect.
Parameter
Description
ObjectKey
Object name, such as folder/sample.jpg.

Response parameters

Parameter
Description
picSize
Image size in bytes
picType
Image format, such as JPG and PNG.
suspicious
Whether non-image files are detected. Valid values: false (no), true (yes).
suspiciousBeginByte
The starting byte position of the detected suspicious file in bytes
suspiciousEndByte
The ending byte position of the detected suspicious file in bytes
suspiciousSize
Size of the detected suspicious file
suspiciousType
Type of the detected suspicious file, such as MPEG-TS.

Examples

Example 1: Public-read

Request

http://examples-1251000004.cos.ap-shanghai.myqcloud.com/sample.jpeg?ci-process=ImageInspect

Response

{"picSize":1097476,"picType":"PNG","suspicious":true,"suspiciousBeginByte":120,"suspiciousEndByte":1097475,"suspiciousSize":1097356,"suspiciousType":"MPEG-TS"}

Example 2: Private-read with a signature carried

This example obtains the average hue in the same way as in the example above except that a signature is carried. The signature is joined with other parameters using an ampersand (&):
http://examples-1251000004.cos.ap-shanghai.myqcloud.com/sample.jpeg?q-sign-algorithm=<signature>&ci-process=ImageInspect
Note:
You can obtain the value of <signature> by referring to Request Signature.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon