tencent cloud

Cloud Infinite

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Product Overview
Product Strengths
Use Cases
Feature Overview
Regions and Domains
Specifications and Limits
Billing
Billing Overview
Billing Mode
Billable Items
Free Tier
Payment Overdue
Viewing Bill Details
FAQs
Getting Started
Registering and Logging In
Bind Bucket
Uploading and Processing File
Downloading and Deleting Images
Unbinding Buckets
Using CI via COS
Features
Image Processing
Media Processing
Content Moderation
AI Content Recognition
File Processing
Smart Voice
File processing
User Guide
Overview
Bucket Management
Smart Toolbox
Job and Workflow
Data Monitoring
Usage statistics
Use Cases
Copyright Protection Solutions
Image Processing Practices
Working with API Authorization Policies
Workflow Practices
API Documentation
API Overview
Structure
Common Request Headers
Common Response Headers
Activate Vast Service
Image Processing
AI-Based Content Recognition
Smart Audio
Media Processing
Content Moderation
Document Processing
File Processing
Job and Workflow
Cloud Virus Detection
Error Codes
Request Signature
SDK Documentation
SDK Overview
Android SDK
iOS SDK
COS Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Go SDK
COS iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
Mini Program SDK
Personal Information Protection Policy for SDK
Security and Compliance
Permission ‍Management
FAQs
Basic Settings
Document Processing
Media Processing
Content Recognition
Smart Audio
Agreements
Service Level Agreement
Contact Us
Glossary

Abnormal Image Detection

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 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.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백