Spaces:
Sleeping
Sleeping
File size: 261 Bytes
2e7bee0 |
1 2 3 4 5 6 7 8 9 10 |
import pytesseract
import cv2
def extract_text_from_id(image_path):
image = cv2.imread(image_path)
return pytesseract.image_to_string(image)
def verify_id(document_text):
return "Name" in document_text and "DOB" in document_text # simple example
|