執行OCR
{
"account": "A125947523",
"idimgfront": "/9j/4AAQSkZJRgABAQAASABIAAD/", (base64)
"idimgback": "/9j/4AAQSkZJRgABAQAASABIAAD/", (base64)
"task_num":"202309150000001",
"customer_no":1 (int)
}
Parameter | Meaning | Type | Required | Default value | Description |
---|
HEADERS | | | | | |
Content-Type | | string | Y | application/json | |
BODY | | | | | |
parameter | meaning | type | note | | the task number which you want to look at the videos |
account | ID number | string | Y | | |
idimgfront | ID card front | base64 | Y | | |
idimgback | ID card back | base64 | Y | | |
task_num | Case Number | string | Y | | The moderator can receive OCR MQTT |
customer_no | Customer Number | number | Y | | The moderator knows which customer the OCR result |
| | | | | |
{
"status": 1,
"message": "身分證辦識成功",
"info": {
"name": "2",
"idno": "A123456789",
"birthday": "1985/08/09",
"issuestatus": "換發",
"issuecity": "北市",
"issuedate": "2015/09/14",
"message": "身分證辦識成功"
}
}
Parameter | Meaning | Type | Existed | Default value | Description |
---|
BODY | | | | | |
status | response status | number | Y | | 0: fail |
1: success | | | | | |
message | message | string | Y | “” | 若有錯誤時的錯誤訊息 |
info | Return Information | object | Y | | |
name | id card name | string | | | |
idno | id card number | string | | | |
birthday | id card birthday | string | | | |
issuestatus | id card status | string | | | |
issuecity | id card city | string | | | |
issuedate | id card update date | string | | | |
message | ocr message | string | | | |
The following is a table of error messages returned by the API.
Code | Status | Error | Message |
---|
200 | 1 | | success |
| 0 | | Unauthorized Access |
404 | | | Resource Not Found |
403 | | | Access to the requested resource is not allowed |