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
59f58c93
authored
2021-11-01 10:22:04 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix wholesales contract
1 parent
5c08056d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/apps/doc/management/commands/folder_wsc_process.py
src/apps/doc/management/commands/folder_wsc_process.py
View file @
59f58c9
...
...
@@ -302,13 +302,13 @@ class Finder:
term_end_chn
=
words
lines
=
self
.
get_line
(
self
.
ocr_results
[
pno
],
'above'
)
searchObj
=
re
.
search
(
r'aboveto([0-9]+)'
,
lines
)
searchObj
=
re
.
search
(
r'aboveto([0-9]+)'
,
lines
.
replace
(
'O'
,
'0'
)
)
if
searchObj
:
words
=
searchObj
.
group
(
1
)
deposit_eng
=
f
'{words}
%
'
lines
=
self
.
get_line
(
self
.
ocr_results
[
pno
],
'授信额度的'
)
searchObj
=
re
.
search
(
r'授信额度的([0-9]+)'
,
lines
)
searchObj
=
re
.
search
(
r'授信额度的([0-9]+)'
,
lines
.
replace
(
'O'
,
'0'
)
)
if
searchObj
:
words
=
searchObj
.
group
(
1
)
deposit_chn
=
f
'{words}
%
'
...
...
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