ComponentDevelopment/OCRPython/backup/potencent.py

11 lines
345 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import potencent
# 可以填写本地图片的地址img_path也可以填写在线图片的地址img_url
# 如果2个都填则只用在线图片
res = potencent.ocr.IDCardOCR(
img_path=r'/Users/wangvivi/Desktop/Code/ocrtest/images/id_card.JPG',
img_url='',
configPath=r'配置文件的信息,可以不填')
print(res)