Fix: Handle missing 0 in TrailblazePowerOcr

This commit is contained in:
LmeSzinc 2024-07-18 23:35:59 +08:00
parent a0cbcd0d0a
commit 4a9e8066a0

View File

@ -24,6 +24,8 @@ class TrailblazePowerOcr(DigitCounter):
result = re.sub(r'[买米装:()]', '', result) result = re.sub(r'[买米装:()]', '', result)
# 61240 -> 6/240 # 61240 -> 6/240
result = re.sub(r'1240$', '/240', result) result = re.sub(r'1240$', '/240', result)
# 0*0/24 -> 0/240
result = re.sub(r'24$', '240', result)
return result return result