ComponentDevelopment/OCRPython/validate.py

10 lines
334 B
Python
Raw Normal View History

2024-04-25 16:50:03 +08:00
# -*- coding: utf-8 -*-
from util import ocr_recognition
2024-04-25 16:50:03 +08:00
jsonString = ocr_recognition.OCRRecognition.extractIdCardInfoByPath("./images/han.jpg","")
2024-04-25 16:50:03 +08:00
print(jsonString)
# jsonString = extractIdCardInfoByPath("/Users/wangvivi/Desktop/Code/ocrtest/images/2.jpg","/Users/wangvivi/Desktop/Code/ocrtest/images/1.jpg")
# print(jsonString)