Browse Source

读取图片文字信息

zhaoxian 2 years ago
parent
commit
72466a732d

+ 1 - 1
ruixuan-live/src/main/java/com/ruixuan/isc/utils/Tess4jClient.java

@@ -20,7 +20,7 @@ import java.io.InputStream;
 @Component
 public class Tess4jClient {
 
-    private String dataPath = "\\data\\webapp\\RuiXuan-Cloud\\tessdata";
+    private String dataPath = "/data/webapp/RuiXuan-Cloud/tessdata";
     private String language = "chi_sim";
     // 入参:图片流
     public String doOCR(BufferedImage image) throws Exception {