> Is it possible to do the same line removal in leptonica using Java?

Hi,

The lineremoval code is located in the "prog" subdirectory of the 
leptonica distribution. You could copy "lineremoval.c" into a separate 
subdirectory and use it as a starting point. I don't know how hard it 
would be to implement it in java but you could probably use the Java 
Native Interface to call the code directly from a java program. The 
tesseract-android-tools [1] project might have some building blocks for 
java integration, alas, I have not done much with tesseract/leptonica in 
java. This project [2] also mentions a Java API for accessing 
natively-compiled Tesseract and Leptonica APIs but I haven't looked into 
it. The lineremoval source code documents each step, it is not always 
effective for all types of lines but I think it would work well for the 
images you are dealing with. 

art
---
1. https://code.google.com/p/tesseract-android-tools
2. https://github.com/rmtheis/tess-two

-- 
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/OFB2A3468F.DE77D510-ON85257D41.00418081-85257D41.00434A60%40uwindsor.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to