Examples of OcrViaTesseractUtils


Examples of de.chris_soft.utilities.OcrViaTesseractUtils

   * @param metadata Properties object with (and for) metadata of the document.
   * @return OCR result as single string.
   * @throws DocumentReadingException
   */
  public static String getOcrTextAndStoreBarcodes(File file, Properties metadata) throws DocumentReadingException {
    OcrViaTesseractUtils ocr = new OcrViaTesseractUtils();
    String ext = FileUtils.getFileExtension(file).toLowerCase();
    String imageName;
    try {
      imageName = file.getCanonicalPath();
    }
View Full Code Here

Examples of de.chris_soft.utilities.OcrViaTesseractUtils

   * @param metadata Properties object with (and for) metadata of the document.
   * @return OCR result as single string.
   * @throws Exception
   */
  public static String getOcrTextAndStoreBarcodes(File file, Properties metadata) throws Exception {
    OcrViaTesseractUtils ocr = new OcrViaTesseractUtils();
    String ext = FileUtils.getFileExtension(file).toLowerCase();
    String imageName = file.getCanonicalPath();
    File tmpDirectory = new File("tmp");
    tmpDirectory.mkdirs();
    String ocrName = new File(tmpDirectory, "" + IdUtils.getUniqueID()).getCanonicalPath();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.