Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change to use rapid-ocr-java #75

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Thu Nov 23 02:43:23 HST 2023
#Sun Apr 28 04:53:24 HST 2024
recName=ch_PP-OCRv3_rec_infer
model=model
keysName=ppocr_keys_v1.txt
Expand Down
40 changes: 8 additions & 32 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.luooqi</groupId>
<artifactId>tools-ocr</artifactId>
<version>2.2.9</version>
<version>2.3.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -57,41 +57,17 @@
<version>${logback.version}</version>
</dependency>

<!-- 服务器端推理引擎 -->
<!--rapidocr-->
<dependency>
<groupId>ai.djl</groupId>
<artifactId>api</artifactId>
<version>${djl.version}</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>basicdataset</artifactId>
<version>${djl.version}</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>model-zoo</artifactId>
<version>${djl.version}</version>
</dependency>

<!-- ONNX 无NDArray ,需要借用pytorch-->
<dependency>
<groupId>ai.djl.pytorch</groupId>
<artifactId>pytorch-engine</artifactId>
<version>${djl.version}</version>
<scope>runtime</scope>
</dependency>
<!-- ONNX -->
<dependency>
<groupId>ai.djl.onnxruntime</groupId>
<artifactId>onnxruntime-engine</artifactId>
<version>${djl.version}</version>
<groupId>io.github.mymonstercat</groupId>
<artifactId>rapidocr</artifactId>
<version>0.0.7</version>
</dependency>

<dependency>
<groupId>ai.djl.opencv</groupId>
<artifactId>opencv</artifactId>
<version>${djl.version}</version>
<groupId>io.github.mymonstercat</groupId>
<artifactId>rapidocr-onnx-platform</artifactId>
<version>0.0.7</version>
</dependency>

<dependency>
Expand Down
120 changes: 0 additions & 120 deletions src/main/java/com/benjaminwan/ocrlibrary/OcrEngine.java

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/java/com/benjaminwan/ocrlibrary/OcrFailed.java

This file was deleted.

5 changes: 0 additions & 5 deletions src/main/java/com/benjaminwan/ocrlibrary/OcrOutput.java

This file was deleted.

54 changes: 0 additions & 54 deletions src/main/java/com/benjaminwan/ocrlibrary/OcrResult.java

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/java/com/benjaminwan/ocrlibrary/OcrStop.java

This file was deleted.

51 changes: 0 additions & 51 deletions src/main/java/com/benjaminwan/ocrlibrary/Point.java

This file was deleted.

79 changes: 0 additions & 79 deletions src/main/java/com/benjaminwan/ocrlibrary/TextBlock.java

This file was deleted.

Loading
Loading