Skip to content

Commit

Permalink
change to use rapid-ocr-java
Browse files Browse the repository at this point in the history
  • Loading branch information
litongjava committed Apr 28, 2024
1 parent 08f3535 commit c85e57c
Show file tree
Hide file tree
Showing 29 changed files with 152 additions and 2,264 deletions.
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

0 comments on commit c85e57c

Please sign in to comment.