程序包 org.zlwl.util

类 OCRTool

java.lang.Object
org.zlwl.util.OCRTool

public class OCRTool extends Object
需要在本地安裝Tesseract-OCR
  • 构造器详细资料

    • OCRTool

      public OCRTool()
  • 方法详细资料

    • recognizeText

      public String recognizeText(File imageFile) throws Exception
      参数:
      imageFile - 传入的图像文件
      返回:
      识别后的字符串
      抛出:
      Exception