Image Tamper Risk Detection
Upload a single image to quickly detect tamper risks, returning tamper confidence, tampered area coordinates, and a visual heatmap to assist in identifying image authenticity.
Documentation
API Capabilities
This API provides image tamper risk detection. By uploading a single image's Base64 encoding, the system automatically analyzes image features to identify common image manipulation behaviors such as splicing, smudging, or cloning. The API returns the overall tamper detection result (e.g., 'fake'), the tamper proportion, specific tampered area coordinates, and an intuitive visual heatmap link to help users quickly locate suspected modified areas.
Request and Response
- Request Parameters: Requires the
imageBase64field, which is the Base64 encoded string of the image to be detected. Please ensure the image format is common and the size is moderate. - Response Results: Returns JSON formatted data, including
detectionResult(detection result, e.g., 'fake' indicates suspected tampering),tamperedProportion(proportion of the tampered area to the entire image),tamperedLocation(array of specific coordinates for tampered areas), andheatmapUrl(URL of the tamper heatmap, which can be directly accessed).
Use Cases
Applicable to scenarios requiring assistance in determining if an image has been modified, such as news media content review, social media platform image authenticity checks, preliminary screening of insurance claim materials, and product image review on second-hand trading platforms.
Usage Instructions and Limitations
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"imageBase64": "/9j/4AAQSk..."
}Response Example
{
"detectionResult": "fake",
"tamperedProportion": "0.993014",
"tamperedLocation": [],
"heatmapUrl": "https://example.com/heatmap.png"
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| imageBase64 | string | /9j/4AAQSk... |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| detectionResult | string | fake |
| tamperedProportion | string | 0.993014 |
| tamperedLocation | array | [] |
| heatmapUrl | string | https://example.com/heatmap.png |