Image Anomaly Detection
Updated at:2025-11-03
Overview
The API checks whether the image contains concealed files of other types that are suspicious.
Parameters for obtaining image information
Action name: detect
This command does not require parameters and can be accessed using x-bce-process=image/detect.
Response parameters
| Field name | Example of values | Description |
|---|---|---|
| picSuffix | jpg, etc. | Image declaration type |
| picResolution | 1*1 If it is an abnormal image, uniformly return 0*0 | Image file resolution |
| picSize | 12345 | Image size |
| detectedType | For images supporting detection, return the actual image type ; for images nonsupporting detection, return “Unknown” |
File header resolution type |
| videoDetected | True: The image contains an unencrypted video stream False: The image does not contain an unencrypted video stream; the video stream may be encrypted or may contain other risks |
Check whether the file contains an unencrypted video stream |
| picRisk | True: The image is at risk False: The image is currently detected to be safe |
Final image detection result, check whether the image is at risks |
Example
- Call image exception detection:
https://doc.bce.baidu.com/bce-documentation/BOS/image.jpg?x-bce-process=image/detect
JSON
1{
2 "picSuffix": "jpg",
3 "picResolution": "279*296",
4 "picSize": 63506,
5 "detectedType": "image/jpeg",
6 "videoDetected": false,
7 "picRisk": false
8}
