Interfaz Java para PageIterator. No implementa todos los métodos disponibles JNI, pero implementa suficientes para ser útil. Más...
Métodos públicos | |
void | begin () |
Resets the iterator to point to the start of the page. | |
boolean | next (int level) |
Moves to the start of the next object at the given level in the page hierarchy, and returns false if the end of the page was reached. | |
Funciones del 'package' | |
PageIterator (int nativePageIterator) | |
Funciones estáticas del 'package' | |
[static initializer] | |
Métodos privados estáticos | |
static native void | nativeBegin (int nativeIterator) |
static native boolean | nativeNext (int nativeIterator, int level) |
Atributos privados | |
final int | mNativePageIterator |
Pointer to native page iterator. |
Interfaz Java para PageIterator. No implementa todos los métodos disponibles JNI, pero implementa suficientes para ser útil.
Definición en la línea 35 del archivo PageIterator.java.
com.googlecode.tesseract.android.PageIterator.PageIterator | ( | int | nativePageIterator | ) | [package] |
Definición en la línea 44 del archivo PageIterator.java.
com.googlecode.tesseract.android.PageIterator.[static initializer] | ( | ) | [static, package] |
Reimplementado en com.googlecode.tesseract.android.ResultIterator.
Resets the iterator to point to the start of the page.
Definición en la línea 51 del archivo PageIterator.java.
static native void com.googlecode.tesseract.android.PageIterator.nativeBegin | ( | int | nativeIterator | ) | [static, private] |
static native boolean com.googlecode.tesseract.android.PageIterator.nativeNext | ( | int | nativeIterator, |
int | level | ||
) | [static, private] |
boolean com.googlecode.tesseract.android.PageIterator.next | ( | int | level | ) |
Moves to the start of the next object at the given level in the page hierarchy, and returns false if the end of the page was reached.
NOTE that PageIteratorLevel#RIL_SYMBOL will skip non-text blocks, but all other PageIteratorLevel level values will visit each non-text block once. Think of non text blocks as containing a single para, with a single line, with a single imaginary word.
Calls to next with different levels may be freely intermixed.
This function iterates words in right-to-left scripts correctly, if the appropriate language has been loaded into Tesseract.
level | the page iterator level. See PageIteratorLevel. |
false
true
Definición en la línea 77 del archivo PageIterator.java.
final int com.googlecode.tesseract.android.PageIterator.mNativePageIterator [private] |
Pointer to native page iterator.
Definición en la línea 42 del archivo PageIterator.java.