Passport OCR Constraints

Passports of different countries can be recognized by extracting information based on the machine-readable code at the bottom of the first page.

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.

The information page of the passport to be recognized must occupy more than 25% of the image. When scanning a passport, ensure that the entire page is displayed in the image.

A passport can be rotated to any angle.

The passport 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.

Calling the Passport OCR SDK

OCR SDKs use OCR RESTful APIs to simplify development.

To call an OCR API using an SDK, do the following:

Step 1: Subscribing to a Service

Step 2: Installing the SDK

Step 3: Obtaining Sample Code

Step 4: Calling the Service

Using Postman to Call the Passport OCR API

Use Postman to call the Passport OCR API.

To call an OCR API, there are four steps:

Step 1: Subscribing to a Service

Step 2: Configuring the Environment

Step 3: Using a Token for Authentication

Step 4: Calling the Service

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

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

  • 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