Extract ID CARD information from an image or photo Currently only Thai ID Card is supported. Confidence score is scored from OCR result.
Response Definition
http status
error_code
error_message
error_parameters
description
200
200
success
-
OCR successful
400
001
no id card on image
-
Can't detect ID CARD on image
400
002
missing or invalid input
field <string>
Request is missing and input or invalid follow API specification
Confidence score is -1.0 when the value of each validation field is False.
Extract ID card information
POSThttps://apis.aigen.online/aiscript/idcard/v1
Request Body
Name
Type
Description
image*
String
Base64 image encoded string
return_face
Boolean
Default: false
Set true to enable return of facial image in UTF-8 Base64 format
return_gender
Boolean
Default: false
Set true to return of the gender information
return_signed
Boolean
Default: false
Set true to enable detection of overlaying script on top of the document's photos or images
do_text_correct
Boolean
Default: false
Please specify “do_text_correct” is True if you need text validation on “id_number”, “religion”, “dob_th”, “dob_en”, “doi_th”, “doi_en”,” doe_th”, and “doe_en” fields.