Browse Source

add markdown保存默认路径

zeke-chin 2 years ago
parent
commit
6879600a7b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      use.py

+ 2 - 1
use.py

@@ -12,7 +12,8 @@ image_rotate = True
 ocr_address = 'local'  # 'local' 'test' 'sb'
 ocr_name = 'cet'  # 'cet' 'idcard' 'bankcard' 'regbook' 'schoolcert'
 md_name = 'CET-tem'
-md_path = '/Users/zeke/work/sx/OCR/HROCR/to_md/example'
+# 若md_path为None 则默认使用图片父路径为markdown保存路径
+md_path = None or image_path.parent
 md_file = parser_path(Path(md_path) / Path(md_name), image_rotate)