diff --git a/paddle-ocr/paddle-ocr-server/pom.xml b/paddle-ocr/paddle-ocr-server/pom.xml index c735eb3..f03f48d 100644 --- a/paddle-ocr/paddle-ocr-server/pom.xml +++ b/paddle-ocr/paddle-ocr-server/pom.xml @@ -13,7 +13,7 @@ ${java.version} ${java.version} 23.1.1 - 1.2.2 + 1.2.4 1.18.30 1.1.9 ocr-server diff --git a/paddle-ocr/paddle-ocr-server/src/main/java/com/litongjava/ai/server/padddle/ocr/controller/PaddleOcrController.java b/paddle-ocr/paddle-ocr-server/src/main/java/com/litongjava/ai/server/padddle/ocr/controller/PaddleOcrController.java index ba221e2..59ecc74 100644 --- a/paddle-ocr/paddle-ocr-server/src/main/java/com/litongjava/ai/server/padddle/ocr/controller/PaddleOcrController.java +++ b/paddle-ocr/paddle-ocr-server/src/main/java/com/litongjava/ai/server/padddle/ocr/controller/PaddleOcrController.java @@ -4,10 +4,10 @@ import com.litongjava.ai.djl.paddle.ocr.v4.PaddlePaddleOCRV4; import com.litongjava.jfinal.aop.annotation.Controller; -import com.litongjava.tio.boot.annotation.EnableCORS; import com.litongjava.tio.http.common.HttpRequest; import com.litongjava.tio.http.common.HttpResponse; import com.litongjava.tio.http.common.UploadFile; +import com.litongjava.tio.http.server.annotation.EnableCORS; import com.litongjava.tio.http.server.annotation.RequestPath; import com.litongjava.tio.http.server.util.Resps; import com.litongjava.tio.utils.resp.RespVo; diff --git a/paddle-ocr/paddle-ocr-service/pom.xml b/paddle-ocr/paddle-ocr-service/pom.xml index 45fdb75..1ff529e 100644 --- a/paddle-ocr/paddle-ocr-service/pom.xml +++ b/paddle-ocr/paddle-ocr-service/pom.xml @@ -26,7 +26,6 @@ ${hutool.version} - org.apache.pdfbox pdfbox diff --git a/paddle-ocr/paddle-ocr-service/src/main/java/com/litongjava/ai/djl/paddle/ocr/v4/recognition/OcrV4Recognition.java b/paddle-ocr/paddle-ocr-service/src/main/java/com/litongjava/ai/djl/paddle/ocr/v4/recognition/OcrV4Recognition.java index 492fd29..6daf0a5 100644 --- a/paddle-ocr/paddle-ocr-service/src/main/java/com/litongjava/ai/djl/paddle/ocr/v4/recognition/OcrV4Recognition.java +++ b/paddle-ocr/paddle-ocr-service/src/main/java/com/litongjava/ai/djl/paddle/ocr/v4/recognition/OcrV4Recognition.java @@ -1,7 +1,6 @@ package com.litongjava.ai.djl.paddle.ocr.v4.recognition; import java.awt.image.BufferedImage; -import java.net.URISyntaxException; import java.net.URL; import java.nio.file.Path; import java.nio.file.Paths;