85a7f363 by 周伟奇

add new ocr flow

1 parent 0e0862dd
...@@ -34,5 +34,3 @@ data/* ...@@ -34,5 +34,3 @@ data/*
34 src/*.sh 34 src/*.sh
35 35
36 test* 36 test*
...\ No newline at end of file ...\ No newline at end of file
37 ocr_test.py
38 ocr_process.py
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -36,7 +36,7 @@ APPLICATION_ID_META_FIELD_id = 1 ...@@ -36,7 +36,7 @@ APPLICATION_ID_META_FIELD_id = 1
36 DEALER_CODE_META_FIELD_id = 13 36 DEALER_CODE_META_FIELD_id = 13
37 BUSINESS_TYPE_META_FIELD_id = 93 37 BUSINESS_TYPE_META_FIELD_id = 93
38 38
39 RETRY_TIMES = 3 39 RETRY_TIMES = 2
40 40
41 # ---------银行流水模板相关-------------------------------------------------------------------------------------------- 41 # ---------银行流水模板相关--------------------------------------------------------------------------------------------
42 42
...@@ -77,7 +77,8 @@ RES_SHEET_HEADER = ('页码', '序号', '结果') ...@@ -77,7 +77,8 @@ RES_SHEET_HEADER = ('页码', '序号', '结果')
77 RES_SUCCESS = '识别成功' 77 RES_SUCCESS = '识别成功'
78 RES_SUCCESS_OTHER = '识别成功(其他类)' 78 RES_SUCCESS_OTHER = '识别成功(其他类)'
79 RES_SUCCESS_EMPTY = '识别成功(空数据)' 79 RES_SUCCESS_EMPTY = '识别成功(空数据)'
80 RES_FAILED = '识别失败' 80 RES_FAILED_1 = '识别失败(阶段1)'
81 RES_FAILED_2 = '识别失败(阶段2)'
81 82
82 CARD_RATIO = 0.9 83 CARD_RATIO = 0.9
83 UNKNOWN_CARD = '未知卡号' 84 UNKNOWN_CARD = '未知卡号'
......
1 class EDMSException(Exception): 1 class EDMSException(Exception):
2 pass 2 pass
3
4
5 class OCR1Exception(Exception):
6 pass
7
8
9 class OCR2Exception(Exception):
10 pass
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!