Search code examples
tesseracttess4j

Tess4j Tesseract vs Tesseract1


I am not 100% sure the difference about Tesseract and Tesseract1 object in the Java api package Tess4J, anyone can explain about it?

I know Tesseract uses interface mapping, and Tesseract1 uses direct mapping. How this will change their behavior?

Thanks in advance!


Solution

  • Same functionality with supposedly better performance.

    JNA supports a direct mapping method which can improve performance substantially, approaching that of custom JNI. Method signatures are the same as they would be in a JNA interface mapping, but they can be any static or object methods.

    https://github.com/java-native-access/jna/blob/master/www/DirectMapping.md