Tess4J working as standalone in 64 bit windows, But fails in Tomcat 7
Posted
by
user118802
on Stack Overflow
See other posts from Stack Overflow
or by user118802
Published on 2012-03-08T18:36:36Z
Indexed on
2012/12/04
11:09 UTC
Read the original article
Hit count: 1340
tomcat7
Trying OCR with Tess4J and able to make it work as a standalone application on 64 bit windows. I am using eclipse for the same. Now I am trying to create a war of the same code and deploy it in Tomcat7 and call the api using a servlet. I am getting following error.
java.util.NoSuchElementException
javax.imageio.spi.FilterIterator.next(ServiceRegistry.java:808)
javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:816)
javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:801)
net.sourceforge.vietocr.ImageIOHelper.getImageByteBuffer(ImageIOHelper.java:190)
net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:133)
net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:88)
net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:75)
com.hp.cto.TextReading.doGet(TextReading.java:35)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
Any help would be greatly appreciated.
© Stack Overflow or respective owner