Here, extracted information from sample random webscraped passports from both pdf and jpg file extensions
tesseract-ocr, pytesseract, shutil, pdf2image, poppler-utils
All the passports are available online and was webscraped only for learning purposes. Any unethical actions are not appreciated and the author will not be liable for.