cURL
curl --request POST \ --url https://agents.textin.com/doc-agent/api/v1/material_tampering \ --header 'Content-Type: application/json' \ --header 'x-ti-app-id: <x-ti-app-id>' \ --header 'x-ti-secret-code: <x-ti-secret-code>' \ --data ' { "file": { "filedata": "<string>", "filename": "<string>", "url": "<string>" }, "file_url": "https://example.com/file.jpg" } '
{ "areas": [ { "confidence": 0.98, "positions": [ 241, 510, 397, 510, 397, 572, 241, 572 ] } ], "is_tampered": true }
获取PS检测结果
上传文件(与file_url二选一)
Show child attributes
文件URL(与file二选一)
"https://example.com/file.jpg"
OK
被篡改的区域
[ { "confidence": 0.98, "positions": [241, 510, 397, 510, 397, 572, 241, 572] }]
材料是否被篡改
true