Thailand ID Card OCR API Function

Thail API identifies and extracts text from images of Thailand-issued national registration cards and converts the text into a structured JSON format. For details about the constraints on using this API, see Constraints. For details about how to use this API, see Introduction to OCR.

Thailand ID Card OCR API Constraints

Only ID cards issued by Thailand can be recognized.

Only images in PNG, JPG, JPEG, BMP, or TIFF format can be recognized.

No side of the image can be smaller than 15 or larger than 8,192 pixels.

An ID card to be recognized must occupy more than 25% of the image. When scanning an ID card, ensure that the entire ID card is displayed in the image.

An ID card can be rotated to any angle.

The ID card in the image can be moderately distorted, but the aspect ratio cannot be distorted by more than 10%.

Illuminated or dark images can be recognized, but the accuracy may be compromised.

Only the front or back of a single ID card can be identified each time.

Thailand ID Card API Prerequisites

Before using Thailand ID Card OCR, you need to apply for the service and complete authentication. For details, see Subscribing to an OCR Service and Authentication.

NOTE: Before using the service for the first time, you need to enable the service by clicking Subscribe. You only need to subscribe to the service once. If the service is not enabled, an error message with error code "ModelArts.4204" will be displayed when you call the service. Before calling the service, log in to the OCR console and enable the service. Ensure that the region where the service is enabled is the same as that where the service is called.

Thailand ID Card API Debugging

You can debug this API through automatic authentication in API Explorer. API Explorer can automatically generate and debug sample SDK code.

NOTE: API Explorer can be called in ap-southeast-2.

OCR Advantages

Accurately identify and convert key information into editable text to authenticate your users with ease.

  • Wide Scope

    Recognize and extract key information from images of identity documents — such as ID cards, driver's licenses, and passports — in a structured format.

    Recognize and extract key information from images of identity documents — such as ID cards, driver's licenses, and passports — in a structured format.

  • High Accuracy

    Adopt deep learning algorithms for each service scenario to recognize characters with high accuracy.

    Adopt deep learning algorithms for each service scenario to recognize characters with high accuracy.

  • Enhanced Capabilities

    Take advantage of OCR to extract characters from distorted or tilted certificates with complex backgrounds.

    Take advantage of OCR to extract characters from distorted or tilted certificates with complex backgrounds.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more