Skip to main content

OCR Thai ID Card API

POSThttps://ocridcard.infer.nt-ai.cloud/predict
Header
    X-API-Key string required

    Your API key

Query Parameters
    side string

    Default value: front

    Side of ID card image (front or back)

form-data body

Request Body
  • files Filerequired

    Thai ID card image files in a form of multi-part form data using the key name files.

Responses

application/json

Schema
  • Array [
  • object
    status string

    success | failed

    Status of request

    data object
    face string

    The base64 string of the extracted face on the ID Card.

    rotation integer

    The rotation degree required for the image in case that the image isn’t 0 degree straight.

    process_time object
    Time required to process the model in seconds.
    det float
    postprocess float
    rec float
    fields object
    serial_id string | null
    idnum object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    ID card number

    th_name object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Thai first name and last name

    en_fname object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    English first name

    en_lname object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    English last name

    religion object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Religion

    address_1 object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    First line of address

    address_2 object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Second line of address

    dob_en object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Date of birth in EN

    dob_th object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Date of birth in TH

    doi_th object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Date of issuance in TH

    doi_en object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Date of issuance in EN

    doe_th object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Date of expiry in TH

    doe_en object
    bbox [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

    4-pixel coordinate x, y of text box

    confidence float

    Confidence value

    text string

    Date of expiry in EN

    postprocess_fields object
    address object
    district string
    subdistrict string
    province string
    road string
    soi string
    moo string
    homenum string
    subdistrict_en string
    subdistrict_id string
    district_en string
    district_id string
    province_en string
    province_id string
    postal_code string
    person object
    en_fname string
    en_lname string
    gender string
    th_fname string
    th_lname string
    title_en string
    title_th string
  • ]
Loading...