Home / Docs Center / Face Recognition API / Callback URLConfiguration
Callback URLConfiguration
Project: Face Recognition API | page_id: 66
Brief Description:
- Callback address path configuration
Request URL:
- [http://ip:3002/face/cb/setUrl](http://ip:3002/face/cb/setUrl)
Request Method:
- POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| auth | Yes | string | Check value (md5(username + password)) |
| url | Yes | string | Base path to set, base64 string |
| uploadPath | Yes | string | Image detection upload path |
| eventUrls | No | [{}] | Custom event upload addresses (gasTank, garbage, face, tram, etc.) |
| eventUrls.url | Yes | string | Custom event upload address, base64 string |
| eventUrls.type | Yes | string | Custom event type |
Request Example
{
"auth": md5(adminadmin),
"url": base64(http://www.test.com)
"uploadPath": "/faceSuccessBack",
"eventUrls": [
{
"url": base64("http://event1.test.com/uploadGasTank")
"type": "gasTank"
}
]
}
Response Example
{
"code": 0,
"msg": "",
}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | int | >0 error code on failure, otherwise success |
| msg | string | Error message, present when code>0 |
Notes
- The upload address is: http://www.test.com/faceSuccessBack
- When uploadPath is empty, the upload address is: http://www.test.com (supported in versions after 2021.04.21)
- When no eventUrls event type is set, the base configuration url+uploadPath is used by default (supported in versions after 2021.04.21)
- Supported event types
tram electric bicycle
face face
garbage garbage classification
gasTank gas cylinder
ashCar garbage truck
Didn't find what you need?Contact us,Talk to our engineers directly.