Home / Docs Center / Face Recognition API / Callback Address Configuration
Callback Address Configuration
Project: Face Recognition API | page_id: 66
Brief Description:
- Callback address path configuration
Request URL:
- 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 URL (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 URL is: http://www.test.com (supported in versions after 2021.04.21)
- When no event type is set in eventUrls, the default is the base url+uploadPath configuration (supported after 2021.04.21)
- Supported event types
tram electric bicycle
face face
garbage garbage classification
gasTank: gas cylinder
ashCar: refuse truck
Didn't find what you need?Contact us, talk to our engineers directly.