This commit is contained in:
2026-06-01 10:25:16 +08:00
parent dcc66aa4a9
commit ffcb62cece
2 changed files with 229 additions and 42 deletions

View File

@@ -50,5 +50,28 @@
<artifactId>pdfbox</artifactId>
<version>2.0.29</version>
</dependency>
<!-- 二维码识别(发票二维码兜底) -->
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.5.1</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.5.1</version>
</dependency>
<!-- 本地 OCRTesseract JNA 绑定):仅在 PDF 没有文本层且二维码不可读时启用 -->
<dependency>
<groupId>net.sourceforge.tess4j</groupId>
<artifactId>tess4j</artifactId>
<version>5.11.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>