Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
85a7f363
authored
2020-11-05 18:42:15 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add new ocr flow
1 parent
0e0862dd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
.gitignore
src/apps/doc/consts.py
src/apps/doc/exceptions.py
src/apps/doc/management/commands/ocr_process.py
.gitignore
View file @
85a7f36
...
...
@@ -34,5 +34,3 @@ data/*
src/*.sh
test*
\ No newline at end of file
ocr_test.py
ocr_process.py
\ No newline at end of file
...
...
src/apps/doc/consts.py
View file @
85a7f36
...
...
@@ -36,7 +36,7 @@ APPLICATION_ID_META_FIELD_id = 1
DEALER_CODE_META_FIELD_id
=
13
BUSINESS_TYPE_META_FIELD_id
=
93
RETRY_TIMES
=
3
RETRY_TIMES
=
2
# ---------银行流水模板相关--------------------------------------------------------------------------------------------
...
...
@@ -77,7 +77,8 @@ RES_SHEET_HEADER = ('页码', '序号', '结果')
RES_SUCCESS
=
'识别成功'
RES_SUCCESS_OTHER
=
'识别成功(其他类)'
RES_SUCCESS_EMPTY
=
'识别成功(空数据)'
RES_FAILED
=
'识别失败'
RES_FAILED_1
=
'识别失败(阶段1)'
RES_FAILED_2
=
'识别失败(阶段2)'
CARD_RATIO
=
0.9
UNKNOWN_CARD
=
'未知卡号'
...
...
src/apps/doc/exceptions.py
View file @
85a7f36
class
EDMSException
(
Exception
):
pass
class
OCR1Exception
(
Exception
):
pass
class
OCR2Exception
(
Exception
):
pass
...
...
src/apps/doc/management/commands/ocr_process.py
0 → 100644
View file @
85a7f36
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment