java - Tess4J NoClassDefFoundError -
i'm trying use tess4j following:
public static string parseimagecharacters(bufferedimage image) throws exception { tesseract instance = tesseract.getinstance(); return instance.doocr(image); }
but i'm getting exeption:
java.lang.noclassdeffounderror: com/sun/media/imageio/plugins/tiff/tiffimagewriteparam @ net.sourceforge.tess4j.tesseract.doocr(tesseract.java:237) @ net.sourceforge.tess4j.tesseract.doocr(tesseract.java:221) ...
which refers following line in tesseract class:
return doocr(imageiohelper.getiioimagelist(bi), rect);
i'm using gradle build tool dependency:
compile 'net.sourceforge.tess4j:tess4j:2.0.0'
(any maven solutions fine!)
what missing? i've seen few posts including various .dll files, thought tess4j included these?
it seems need have java advanced imaging i/o tools dependency well.
add dependency list
'com.sun.media:jai_imageio:1.1'
Comments
Post a Comment