
de.vorb.tesseract.WritingDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtesseract Show documentation
Show all versions of jtesseract Show documentation
jtesseract provides Java wrappers (JNA and BridJ) for Tesseract OCR
The newest version!
package de.vorb.tesseract;
import java.util.Collections;
import java.util.Iterator;
import org.bridj.FlagSet;
import org.bridj.IntValuedEnum;
/**
* Writing direction.
*
* @author Paul Vorbach
*/
public enum WritingDirection implements IntValuedEnum {
LEFT_TO_RIGHT(0),
RIGHT_TO_LEFT(1),
TOP_TO_BOTTOM(2);
WritingDirection(long value) {
this.value = value;
}
public final long value;
public long value() {
return this.value;
}
public Iterator iterator() {
return Collections.singleton(this).iterator();
}
public static IntValuedEnum fromValue(int value) {
return FlagSet.fromValue(value, values());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy