1: enable face detection, and the face_region field will be returned; 0: the default value, disable face detection.
Either parameter file or image_base64 must be provided as a request parameter.
You MUST add image stream to multipart/form-data section of POST message when using file parameter.
3.Response Params
Fields
Type
Description
request_id
string
Unique id of each request
status
string
Response status, OK if request success, other if failed; See Error Codes for details
results
array
The array of card ocr results,See results belowed for details
Elements in results:
Fields
Type
Description
card_type
string
The type of card: old or new
card_side
string
The side of card: front or back
card_info
object
The key infomation of card
face_region
array
Four point coordinates of face rect, format as: [(x1, y1), (x2, y2), (x3, y3), (x4, y4)]; The coordinate is based on the original image, while the points order is based on the face after rotation(top left, top right, bottom right, bottom left).
Elements in the card_info
The front side of new ID card
Fields
Type
Description
id_number
string
ID card number
last_name
string
Last name of the person
name
string
Name of the person
nationality
string
Nationality of the person
birthday
string
Date of birth
birthday_s
string
Formatted date of birth: dd-mm-yyyy
birth_place
string
Birth place of the person
height
string
Height of the person
blood_type
string
Blood type
gender
string
Gender, M for male and F for female
issue_date
string
Issue date
issue_date_s
string
Formatted issue date: dd-mm-yyyy
issue_authority
string
Issue authority
expiry_date
string
Expiry date
expiry_date_s
string
Formatted expiry date: dd-mm-yyyy
The back side of new ID card
Fields
Type
Description
line1
string
The first line
line2
string
The second line
line3
string
The third line
The front side of old ID card
Fields
Type
Description
id_number
string
ID card number
last_name
string
Last name of the person
name
string
Name of the person
holder_type
string
The type of the card holder, either ADULT or MINOR
The back side of old ID card
Fields
Type
Description
birthday
string
Date of birth
birthday_s
string
Formatted date of birth: dd-mm-yyyy
birth_place
string
Birth place of the person
height
string
Height of the person
blood_type
string
Blood type
gender
string
Gender, M for male and F for female
issue_date
string
Issue date
issue_date_s
string
Formatted issue date: dd-mm-yyyy
issue_authority
string
Issue authority
holder_type
string
The type of the card holder, either ADULT or MINOR