sanluan / einvoice

电子发票识别,可识别 电子普票 电子专票
http://www.heycore.com/invoice.html
MIT License
188 stars 70 forks source link

合计金额识别错误BUG #1

Closed irezm closed 2 years ago

irezm commented 3 years ago

com.sanluan.einvoice.service.InvoiceExtractor 第79行应当修改: 修改前:Matcher matcher = pattern.matcher(fullText); 修改后:Matcher matcher = pattern.matcher(allText);

因为使用未处理文本导致合计金额识别不准确

sanluan commented 3 years ago

感谢 我验证下

awwaawwa commented 2 years ago

这句话应该是用来兜底的,如果这样修改, #2 中的发票就无法识别合计金额了。