Member-only story
Explore Passport Recognition With EasyOCR and OpenCV

Passport recognition maybe will not fit for all recruitment, may we only use passport for traveling to other country or identity verification, for this case now i use for identity verification more specify for airport helper.
To help me make passport recognition i saw great Kaggle repository on https://www.kaggle.com/code/elhamjoodaki123/passport-information-extraction 🔥🔥, i use this repository as a reference logic step by step and technically how to extract passport information.
I also enhancement logic to make more great result , my enhancement like , adding text serializer, convert to gray scale on pre-processing, and text preprocessing like remove space and make uppercase, let’s to the code
i use Google Colabs as a tools for this research, now we must install all requirements by.
!pip install pytesseract
!pip install easyocr
!pip install PassportEye
!sudo apt install tesseract-ocr
if you use tools like Google Colabs or Kaggle i think you will safe from any problem, next we must import all requirement in new section and initiate EasyOCR
import os
import string as st
from dateutil import parser
import matplotlib.image as mpimg
import cv2
from passporteye import read_mrz
import json
import easyocr
import warnings…