【问题标题】:tess4j Set only to identify numbers and letterstess4j 设置只识别数字和字母
【发布时间】:2017-02-24 03:45:01
【问题描述】:

我想设置tess4j 只识别数字和字母

Tesseract instance = new Tesseract();
instance.setDatapath("C:\\Users\\qyw\\Desktop\\tessdata");
String s = instance.doOCR(img);
System.out.println(s);

【问题讨论】:

    标签: java ocr tess4j


    【解决方案1】:
    instance.setTessVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz");
    

    doc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-14
      • 2012-07-03
      • 2017-10-21
      相关资源
      最近更新 更多