Skip to content

Commit cf4f967

Browse files
authored
Merge pull request #75 from litongjava/rapidocr-onnx
change to use rapid-ocr-java
2 parents b558646 + c85e57c commit cf4f967

29 files changed

+152
-2264
lines changed

app.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Thu Nov 23 02:43:23 HST 2023
1+
#Sun Apr 28 04:53:24 HST 2024
22
recName=ch_PP-OCRv3_rec_infer
33
model=model
44
keysName=ppocr_keys_v1.txt

pom.xml

+8-32
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.luooqi</groupId>
88
<artifactId>tools-ocr</artifactId>
9-
<version>2.2.9</version>
9+
<version>2.3.0</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -57,41 +57,17 @@
5757
<version>${logback.version}</version>
5858
</dependency>
5959

60-
<!-- 服务器端推理引擎 -->
60+
<!--rapidocr-->
6161
<dependency>
62-
<groupId>ai.djl</groupId>
63-
<artifactId>api</artifactId>
64-
<version>${djl.version}</version>
65-
</dependency>
66-
<dependency>
67-
<groupId>ai.djl</groupId>
68-
<artifactId>basicdataset</artifactId>
69-
<version>${djl.version}</version>
70-
</dependency>
71-
<dependency>
72-
<groupId>ai.djl</groupId>
73-
<artifactId>model-zoo</artifactId>
74-
<version>${djl.version}</version>
75-
</dependency>
76-
77-
<!-- ONNX 无NDArray ,需要借用pytorch-->
78-
<dependency>
79-
<groupId>ai.djl.pytorch</groupId>
80-
<artifactId>pytorch-engine</artifactId>
81-
<version>${djl.version}</version>
82-
<scope>runtime</scope>
83-
</dependency>
84-
<!-- ONNX -->
85-
<dependency>
86-
<groupId>ai.djl.onnxruntime</groupId>
87-
<artifactId>onnxruntime-engine</artifactId>
88-
<version>${djl.version}</version>
62+
<groupId>io.github.mymonstercat</groupId>
63+
<artifactId>rapidocr</artifactId>
64+
<version>0.0.7</version>
8965
</dependency>
9066

9167
<dependency>
92-
<groupId>ai.djl.opencv</groupId>
93-
<artifactId>opencv</artifactId>
94-
<version>${djl.version}</version>
68+
<groupId>io.github.mymonstercat</groupId>
69+
<artifactId>rapidocr-onnx-platform</artifactId>
70+
<version>0.0.7</version>
9571
</dependency>
9672

9773
<dependency>

src/main/java/com/benjaminwan/ocrlibrary/OcrEngine.java

-120
This file was deleted.

src/main/java/com/benjaminwan/ocrlibrary/OcrFailed.java

-9
This file was deleted.

src/main/java/com/benjaminwan/ocrlibrary/OcrOutput.java

-5
This file was deleted.

src/main/java/com/benjaminwan/ocrlibrary/OcrResult.java

-54
This file was deleted.

src/main/java/com/benjaminwan/ocrlibrary/OcrStop.java

-9
This file was deleted.

src/main/java/com/benjaminwan/ocrlibrary/Point.java

-51
This file was deleted.

src/main/java/com/benjaminwan/ocrlibrary/TextBlock.java

-79
This file was deleted.

0 commit comments

Comments
 (0)