How to OCR ID Document Images such as Passports Using LEADTOOLS OCR Module - LEAD Engine

This topic describes how to OCR ID document images using LEADTOOLS OCR Module - LEAD Engine to produce the best recognition results. ID documents, such as passports, may have textured background. This texture is highly likely to interfere with segmented text for OCR, leading to undesirable results.

One of the best approaches to handle color ID document images for OCR is to convert them to black and white using the thresholding method with a low intensity threshold value. The text color is very dark in comparison to the textured background. The low intensity threshold value is empirically estimated by examining the distribution of text colors and background colors on these images, then by finding the intersection point between their normal distributions. To perform this thresholding method using LEADTOOLS OCR Module - LEAD Engine demo follow these steps:

  1. Run LEADTOOLS OCR Module - LEAD Engine demo and in the menu bar go to Engine > SettingsRecognitionPreprocess settingsblack and white conversion method and set its value to user.

    LEADTOOLS OCR Demo
  2. Go to Engine > SettingsRecognitionPreprocess settings > black and white conversion threshold and set a low threshold value, for example, 110.

    LEADTOOLS OCR Demo
  3. Then open an ID document image (File > Open).

  4. And finally, perform the OCR task.

The steps outlined in this tutorial optimize the handling of color ID document images for OCR by converting them to black and white in order to generate the best OCR results. It is recommended when processing images with LEADTOOLS OCR Module - LEAD Engine to use OCR zone with type “FieldData” to recognize the person’s information regions in the ID document images. This zone type is limited to all English capital letters, digits, and - , . / symbols.

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document