HI Shree,
Thanks. Now it works.
one more problem what I want to overcome.
Actually I want to get Pdf from Java. I am using apache java ocr which is
compilable with tesseract 3.0.3 pdf version.
We I invoke it pdf method either from direct or test class it always give
me below error -
Return int from the method is 15999424. And it change according to tiff
file input.
Dec 13, 2014 7:09:19 PM net.sourceforge.tess4j.Tesseract createDocuments
SEVERE: Error during processing.
My test method is -
public void getPdf() throws Exception {
Tesseract t = Tesseract.getInstance();
List<RenderedFormat> list = new ArrayList<RenderedFormat>();
list.add(RenderedFormat.PDF);
t.setLanguage("eng");
t.setDatapath("/usr/share/");
//t.setOcrEngineMode(1);
//t.setPageSegMode(2);
//t.setTessVariable("read_params_file", "fh");
t.createDocuments(
"tess4j-master/target/test-classes/test-data/1.tiff",
"tess4j-master/target/test-classes/test-data",
list);
}
Internal method is -
private void createDocuments(String filename, TessResultRenderer renderer)
throws TesseractException {
int result = api.TessBaseAPIProcessPages(handle, filename, null, 0,
renderer);
*System.out.println("result "+result);*
if (result != TessAPI.TRUE) {
throw new TesseractException("Error during processing.");
}
}
In any method of java example I get same error.
Can you plz help me on this issue.
On Saturday, December 13, 2014 1:28:21 PM UTC+5:30, Nikhil Soni wrote:
>
> Hi,
> I have install new version of tesseract OSR in linux form sourcecode
> compilation.
> I want convert from tiff file to pdf it gives error in console-
>
> Version -
> tesseract 3.03
> leptonica-1.71
> libjpeg 6b : libtiff 3.9.4
>
> Command - "tesseract 1.tiff output pdf"
>
> Tesseract Open Source OCR Engine v3.03 with Leptonica
> *read_params_file: Can't open pdf*
> Page 1 of 3
> Error in boxClipToRectangle: box outside rectangle
> Error in pixScanForForeground: invalid box
> Page 2 of 3
> Page 3 of 3
>
> Why it gives params error?
>
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/848abd7d-e62a-4123-bfca-588405fe8b71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.