first commit

This commit is contained in:
wvivi2023 2024-04-22 13:45:45 +08:00
parent b6e199096d
commit 87e0743de9
1 changed files with 0 additions and 1 deletions

View File

@ -81,7 +81,6 @@ public class MySpringBootApplication {
tesseract.setLanguage("chi_sim");
// 从图像中提取文本
String text = tesseract.doOCR(new File("/Users/wangvivi/Desktop/Code/ocrtest/images/id_card.JPG"));
// 打印识别的文本
System.out.println("识别的文本:" + text);
return text;
} catch (TesseractException e) {