zeke-chin 2 years ago
parent
commit
43353ea559
3 changed files with 26 additions and 2 deletions
  1. 8 0
      HR_OCR/TestAllOcr/config.py
  2. 9 1
      HR_OCR/TestAllOcr/test_interface.py
  3. 9 1
      HR_OCR/to_md/use.py

+ 8 - 0
HR_OCR/TestAllOcr/config.py

@@ -1,3 +1,11 @@
+'''
+Author: zeke-chin zeke-chin@icloud.com
+Date: 2022-09-26 14:58:10
+LastEditors: zeke-chin zeke-chin@icloud.com
+LastEditTime: 2022-09-30 09:59:43
+FilePath: /to_md/HR_OCR/TestAllOcr/config.py
+Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+'''
 import base64
 import requests
 

+ 9 - 1
HR_OCR/TestAllOcr/test_interface.py

@@ -1,3 +1,11 @@
+'''
+Author: zeke-chin zeke-chin@icloud.com
+Date: 2022-09-28 20:28:41
+LastEditors: zeke-chin zeke-chin@icloud.com
+LastEditTime: 2022-09-30 10:06:35
+FilePath: /to_md/HR_OCR/TestAllOcr/test_interface.py
+Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+'''
 from pathlib import Path
 import unittest
 import config
@@ -6,7 +14,7 @@ from config import send_request
 image_path = 'image'
 
 # DX_test, DX_sb, DX_test, DX_sb
-envl = 'DX_test'
+envl = 'DX_sb'
 url = config.URL[envl]
 token = config.TOKEN[envl]
 

+ 9 - 1
HR_OCR/to_md/use.py

@@ -1,3 +1,11 @@
+'''
+Author: zeke-chin zeke-chin@icloud.com
+Date: 2022-09-28 20:28:41
+LastEditors: zeke-chin zeke-chin@icloud.com
+LastEditTime: 2022-09-30 15:08:48
+FilePath: /to_md/HR_OCR/to_md/use.py
+Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+'''
 
 from pathlib import Path
 
@@ -5,7 +13,7 @@ from new import MD, Image, Dataset, parser_path
 
 # config
 # 图片路径
-image_path = Path('/Users/sxkj/Desktop/户口本9.8/img')
+image_path = Path('/Users/zeke/work/sx/OCR/image_data/户口本9.30/0/img/')
 image_type = 0
 # 是否旋转
 image_rotate = False