package com.mooctest.demo;

//import java.io.File;
//import net.sourceforge.tess4j.ITesseract;

public class OCRRecognition {
    public static void main(String[] args) {
//        File imageFile = new File("/Users/major/Downloads/test1.png");
//        ITesseract instance = new Tesseract();
//        try {
//            //instance.setLanguage("chi_sim"); //加载语言包
//            String result = instance.doOCR(imageFile);
//            System.out.println(imageFile.getName());
//            System.out.println("result：");
//            System.out.print(result);
//        } catch (TesseractException e) {
//            System.out.println(e.getMessage());
//        }

    }
}
