You need AI to convert the image of the ID into text. Which is an AI technology that’s existed for over ten years and used in many applications.
https://www.ibm.com/topics/computer-vision
Computer vision is a field of artificial intelligence (AI) that uses machine learning and neural networks to teach computers and systems to derive meaningful information from digital images, videos and other visual inputs
https://aws.amazon.com/what-is/computer-vision/
Computer vision applications use artificial intelligence and machine learning (AI/ML) to process this data accurately for object identification and facial recognition, as well as classification, recommendation, monitoring, and detection.
https://cloud.google.com/vision
Computer vision is a field of artificial intelligence (AI) that enables computers and systems to interpret and analyze visual data and derive meaningful information from digital images, videos, and other visual inputs. Some of its typical real-world applications include: object detection, visual content (images, documents, videos) processing, understanding and analysis, product search, image classification and search, and content moderation.
that uses machine learning and neural networks
Great, but AFAIK OpenCV can do this without NNs.