|
@@ -2,7 +2,7 @@
|
|
Author: zeke-chin zeke-chin@icloud.com
|
|
Author: zeke-chin zeke-chin@icloud.com
|
|
Date: 2022-09-28 20:28:41
|
|
Date: 2022-09-28 20:28:41
|
|
LastEditors: zeke-chin zeke-chin@icloud.com
|
|
LastEditors: zeke-chin zeke-chin@icloud.com
|
|
-LastEditTime: 2022-09-30 15:08:48
|
|
|
|
|
|
+LastEditTime: 2022-10-10 21:14:29
|
|
FilePath: /to_md/HR_OCR/to_md/use.py
|
|
FilePath: /to_md/HR_OCR/to_md/use.py
|
|
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
'''
|
|
'''
|
|
@@ -13,15 +13,15 @@ from new import MD, Image, Dataset, parser_path
|
|
|
|
|
|
# config
|
|
# config
|
|
# 图片路径
|
|
# 图片路径
|
|
-image_path = Path('/Users/zeke/work/sx/OCR/image_data/户口本9.30/0/img/')
|
|
|
|
|
|
+image_path = Path('/Users/zeke/Downloads/户口本测试样本1011-常住人口页')
|
|
image_type = 0
|
|
image_type = 0
|
|
# 是否旋转
|
|
# 是否旋转
|
|
image_rotate = False
|
|
image_rotate = False
|
|
ocr_address = 'DXtest' # 'local' 'TXtest' 'TXsb' 'DXtest' 'DXsb'
|
|
ocr_address = 'DXtest' # 'local' 'TXtest' 'TXsb' 'DXtest' 'DXsb'
|
|
|
|
|
|
-ocr_name = 'cet' # 'cet' 'idcard' 'bankcard' 'regbook' 'schoolcert' 'business_license'
|
|
|
|
-md_name = 'CET'
|
|
|
|
-filed = 'cet'
|
|
|
|
|
|
+ocr_name = 'regbook' # 'cet' 'idcard' 'bankcard' 'regbook' 'schoolcert' 'business_license'
|
|
|
|
+md_name = 'RBook'
|
|
|
|
+filed = 'regbook'
|
|
|
|
|
|
# 若md_path为None 则默认使用图片父路径为markdown保存路径
|
|
# 若md_path为None 则默认使用图片父路径为markdown保存路径
|
|
# md_path = '/Users/zeke/work/sx/OCR/HROCR/to_md/example' or image_path.parent
|
|
# md_path = '/Users/zeke/work/sx/OCR/HROCR/to_md/example' or image_path.parent
|