first commit
This commit is contained in:
parent
b6e199096d
commit
87e0743de9
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue