fix wholesales contract
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -302,13 +302,13 @@ class Finder: | ... | @@ -302,13 +302,13 @@ class Finder: |
| 302 | term_end_chn = words | 302 | term_end_chn = words |
| 303 | 303 | ||
| 304 | lines = self.get_line(self.ocr_results[pno], 'above') | 304 | lines = self.get_line(self.ocr_results[pno], 'above') |
| 305 | searchObj = re.search(r'aboveto([0-9]+)', lines) | 305 | searchObj = re.search(r'aboveto([0-9]+)', lines.replace('O', '0')) |
| 306 | if searchObj: | 306 | if searchObj: |
| 307 | words = searchObj.group(1) | 307 | words = searchObj.group(1) |
| 308 | deposit_eng = f'{words}%' | 308 | deposit_eng = f'{words}%' |
| 309 | 309 | ||
| 310 | lines = self.get_line(self.ocr_results[pno], '授信额度的') | 310 | lines = self.get_line(self.ocr_results[pno], '授信额度的') |
| 311 | searchObj = re.search(r'授信额度的([0-9]+)', lines) | 311 | searchObj = re.search(r'授信额度的([0-9]+)', lines.replace('O', '0')) |
| 312 | if searchObj: | 312 | if searchObj: |
| 313 | words = searchObj.group(1) | 313 | words = searchObj.group(1) |
| 314 | deposit_chn = f'{words}%' | 314 | deposit_chn = f'{words}%' | ... | ... |
-
Please register or sign in to post a comment