java - Unable to load library 'libtesseract302': The specified module could not be found -


all - trying use tess4j in java project. have followed following steps -

  1. copied jar files /dist , /lib external jar files while creating project.
  2. copied /tessdata , libtesseract302.dll project root , in src folder of project.
  3. below code(tess4j example code in sf) -

    import java.io.file; import net.sourceforge.tess4j.*;  public class readingimage {      public static void main(string[] args) {         file imagefile = new file("c:\\documents , settings\\t9saur\\my documents\\downloads\\tess4j-1.1-src\\tess4j\\eurotext.tif");         tesseract instance = tesseract.getinstance();         try {             string result = instance.doocr(imagefile);             system.out.println(result);         } catch (tesseractexception e) {             system.err.println(e.getmessage());         }     } } 

yet code giving error. per other post on same topic, checked jvm version (32 bit) , eclipse version(32 bit). please let me know, went wrong.

if using eclipse launch, need specify location of native libraries associated tesseract jar. see how set java.library.path eclipse


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -