You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are using tesseract 4.0.0.
While doing OCR through Linux command "tesseract pan.jpg stdout" getting the better result. But when we integrated tesseract logic in java application it is not giving proper results. But in the same project working fine windows machine. We have already set the TESSDATA_PREFIX environment variable. And in both environments, we have the latest eng.traineddata only. Please find the sample code below.
try{
Tesseract instance = new Tesseract();
instance.setDatapath("/usr/share/tesseract/");
File file = new File("/home/projectr/pan.jpg");
instance.setLanguage("eng");
If possible send a sample java project which will run on the Linux environment with prerequisite in Linux machine and anything needs to change in any config file.
we are using Linux version 3.10.0-693.el7.x86_64
below are the tesseract version details in Linux machine.
tesseract 4.0.0
leptonica-1.77.0
libjpeg 6b (libjpeg-turbo 1.2.90) : libpng 1.5.13 : libtiff 4.0.3 : zlib 1.2.7
The text was updated successfully, but these errors were encountered:
we are using tesseract 4.0.0.
While doing OCR through Linux command "tesseract pan.jpg stdout" getting the better result. But when we integrated tesseract logic in java application it is not giving proper results. But in the same project working fine windows machine. We have already set the TESSDATA_PREFIX environment variable. And in both environments, we have the latest eng.traineddata only. Please find the sample code below.
try{
Tesseract instance = new Tesseract();
instance.setDatapath("/usr/share/tesseract/");
File file = new File("/home/projectr/pan.jpg");
instance.setLanguage("eng");
String result = instance.doOCR(file);
System.out.println(result);
} catch (Exception e) {
e.printStackTrace()
}
If possible send a sample java project which will run on the Linux environment with prerequisite in Linux machine and anything needs to change in any config file.
we are using Linux version 3.10.0-693.el7.x86_64
below are the tesseract version details in Linux machine.
tesseract 4.0.0
leptonica-1.77.0
libjpeg 6b (libjpeg-turbo 1.2.90) : libpng 1.5.13 : libtiff 4.0.3 : zlib 1.2.7
The text was updated successfully, but these errors were encountered: