如何在java中找到使用tesseract提取的OCR文本的置信度?

时间:2016-04-27 15:25:03

标签: java tesseract unsatisfiedlinkerror tess4j tess-two

import java.io.File;
import com.googlecode.tesseract.android.TessBaseAPI;
public class ConfidenceLevelFinder 
{
    public static void main(String[] args) 
    {
        TessBaseAPI baseApi=new TessBaseAPI();
        baseApi.setPageSegMode(TessBaseAPI.PageSegMode.PSM_SINGLE_BLOCK);
        baseApi.setImage(new File("zoomed.jpg"));
        baseApi.meanConfidence();

        baseApi.end();
    }
}
  1. 我正在使用上面的代码。
  2. 使用com.googlecode.tesseract.android.TessBaseAPI;文库
  3. 但在线程“main”中的geeting Exception java.lang.UnsatisfiedLinkError:java.library.path中没有lept
  4. 使用tesseract android jar需要哪个dll?

0 个答案:

没有答案