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/new/ALIEN
card_side
string
The side of card: front
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
father_name
string
Father's name
mother_name
string
Mother's name
name
string
Name of the person
gender
string
Gender in Spanish, MASCULINO: male, FEMENINO: female
gender_s
string
Formatted gender, M: male, F: female
marriage
string
Marriage status in Spanish, Soltero: single, Casado: marriaged, Divorciado: divoiced, Viudo: widowed
birthday
string
Date of birth
birth_place
string
Birth place of the person
issue_date
string
Issue date
expiry_date
string
Expiry date
election_number
string
Election number
organ_donation
string
Organ donation, SI: Yes, No: No
The back side of new ID card
Fields
Type
Description
region
string
Department/Province/District
address
string
Detail address
The front side of old ID card
Fields
Type
Description
id_number
string
ID card number
father_name
string
Father's name
mother_name
string
Mother's name
name
string
Name of the person
gender
string
Gender, M: male, F: female
gender_s
string
Gender, M: male, F: female
marriage
string
Marriage status, S: single, C: marriaged, D: divorced, V: widowed
birthday
string
Date of birth
birth_place
string
Birth place of the person
registration_date
string
Registration date
issue_date
string
Issue date
expiry_date
string
Expiry date
The back side of old ID card
Fields
Type
Description
department
string
Department
province
string
Province
district
string
District
address
string
Detail address
election_number
string
Election number
organ_donation
string
Organ donation
The front side of ALIEN ID card
Fields
Type
Description
id_number
string
ID card number
document_number
string
Document number
surname
string
Surname
given_name
string
Given name
gender
string
Gender
gender_s
string
Formatted gender, M: male, F: female
marriage
string
Marriage status, S: single, C: marriaged, D: divorced, V: widowed