@Namespace(value="tesseract") @NoOffset @Properties(inherit=tesseract.class) public class TessBaseAPI extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TessBaseAPI() |
TessBaseAPI(long size)
Native array allocator.
|
TessBaseAPI(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AdaptToWordStr(int mode,
BytePointer wordstr)
Applies the given word to the adaptive classifier if possible.
|
boolean |
AdaptToWordStr(int mode,
String wordstr) |
IntPointer |
AllWordConfidences()
Returns all word confidences (between 0 and 100) in an array, terminated
by -1.
|
PageIterator |
AnalyseLayout()
Runs page layout analysis in the mode set by SetPageSegMode.
|
PageIterator |
AnalyseLayout(boolean merge_similar_words) |
void |
Clear()
Free up recognition results and any stored image data, without actually
freeing any recognition data that would be time-consuming to reload.
|
void |
ClearAdaptiveClassifier()
Call between pages or documents etc to free up memory and forget
adaptive data.
|
static void |
ClearPersistentCache()
Clear any library-level memory caches.
|
boolean |
DetectOrientationScript(int[] orient_deg,
float[] orient_conf,
byte[] script_name,
float[] script_conf) |
boolean |
DetectOrientationScript(IntBuffer orient_deg,
FloatBuffer orient_conf,
ByteBuffer script_name,
FloatBuffer script_conf) |
boolean |
DetectOrientationScript(IntPointer orient_deg,
FloatPointer orient_conf,
BytePointer script_name,
FloatPointer script_conf) |
boolean |
DetectOrientationScript(IntPointer orient_deg,
FloatPointer orient_conf,
PointerPointer script_name,
FloatPointer script_conf)
Detect the orientation of the input image and apparent script (alphabet).
|
boolean |
DetectOS(OSResults arg0)
Estimates the Orientation And Script of the image.
|
void |
End()
Close down tesseract and free up all memory.
|
BytePointer |
GetAltoText(ETEXT_DESC monitor,
int page_number)
Make an XML-formatted string with Alto markup from the internal
data structures.
|
BytePointer |
GetAltoText(int page_number)
Make an XML-formatted string with Alto markup from the internal
data structures.
|
void |
GetAvailableLanguagesAsVector(StringVector langs)
Returns the available languages in the sorted vector of std::string.
|
void |
GetBlockTextOrientations(int[] block_orientation,
boolean[] vertical_writing) |
void |
GetBlockTextOrientations(int[] block_orientation,
BoolPointer vertical_writing) |
void |
GetBlockTextOrientations(IntBuffer block_orientation,
boolean[] vertical_writing) |
void |
GetBlockTextOrientations(IntBuffer block_orientation,
BoolPointer vertical_writing) |
void |
GetBlockTextOrientations(IntPointer block_orientation,
boolean[] vertical_writing) |
void |
GetBlockTextOrientations(IntPointer block_orientation,
BoolPointer vertical_writing) |
void |
GetBlockTextOrientations(PointerPointer block_orientation,
PointerPointer vertical_writing)
Return text orientation of each block as determined by an earlier run
of layout analysis.
|
boolean |
GetBoolVariable(BytePointer name,
BoolPointer value) |
boolean |
GetBoolVariable(String name,
boolean[] value) |
BytePointer |
GetBoxText(int page_number)
The recognized text is returned as a char* which is coded in the same
format as a box file used in training.
|
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
boolean raw_image,
int raw_padding,
org.bytedeco.leptonica.PIXA pixa,
int[] blockids,
int[] paraids) |
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
boolean raw_image,
int raw_padding,
org.bytedeco.leptonica.PIXA pixa,
IntBuffer blockids,
IntBuffer paraids) |
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
boolean raw_image,
int raw_padding,
org.bytedeco.leptonica.PIXA pixa,
IntPointer blockids,
IntPointer paraids) |
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
boolean raw_image,
int raw_padding,
PointerPointer pixa,
PointerPointer blockids,
PointerPointer paraids)
Get the given level kind of components (block, textline, word etc.) as a
leptonica-style Boxa, Pixa pair, in reading order.
|
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
org.bytedeco.leptonica.PIXA pixa,
int[] blockids) |
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
org.bytedeco.leptonica.PIXA pixa,
IntBuffer blockids) |
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
org.bytedeco.leptonica.PIXA pixa,
IntPointer blockids) |
org.bytedeco.leptonica.BOXA |
GetComponentImages(int level,
boolean text_only,
PointerPointer pixa,
PointerPointer blockids) |
org.bytedeco.leptonica.BOXA |
GetConnectedComponents(org.bytedeco.leptonica.PIXA cc) |
org.bytedeco.leptonica.BOXA |
GetConnectedComponents(PointerPointer cc)
Gets the individual connected (text) components (created
after pages segmentation step, but before recognition)
as a leptonica-style Boxa, Pixa pair, in reading order.
|
BytePointer |
GetDatapath() |
Dawg |
GetDawg(int i)
Return the pointer to the i-th dawg loaded into tesseract_ object.
|
boolean |
GetDoubleVariable(BytePointer name,
double[] value) |
boolean |
GetDoubleVariable(BytePointer name,
DoubleBuffer value) |
boolean |
GetDoubleVariable(BytePointer name,
DoublePointer value) |
boolean |
GetDoubleVariable(String name,
double[] value) |
boolean |
GetDoubleVariable(String name,
DoubleBuffer value) |
boolean |
GetDoubleVariable(String name,
DoublePointer value) |
BytePointer |
GetHOCRText(ETEXT_DESC monitor,
int page_number)
Make a HTML-formatted string with hOCR markup from the internal
data structures.
|
BytePointer |
GetHOCRText(int page_number)
Make a HTML-formatted string with hOCR markup from the internal
data structures.
|
BytePointer |
GetInitLanguagesAsString()
Returns the languages string used in the last valid initialization.
|
org.bytedeco.leptonica.PIX |
GetInputImage() |
BytePointer |
GetInputName()
These functions are required for searchable PDF output.
|
boolean |
GetIntVariable(BytePointer name,
int[] value) |
boolean |
GetIntVariable(BytePointer name,
IntBuffer value) |
boolean |
GetIntVariable(BytePointer name,
IntPointer value)
Returns true if the parameter was found among Tesseract parameters.
|
boolean |
GetIntVariable(String name,
int[] value) |
boolean |
GetIntVariable(String name,
IntBuffer value) |
boolean |
GetIntVariable(String name,
IntPointer value) |
ResultIterator |
GetIterator()
Get a reading-order iterator to the results of LayoutAnalysis and/or
Recognize.
|
void |
GetLoadedLanguagesAsVector(StringVector langs)
Returns the loaded languages in the vector of std::string.
|
BytePointer |
GetLSTMBoxText(int page_number)
Make a box file for LSTM training from the internal data structures.
|
MutableIterator |
GetMutableIterator()
Get a mutable iterator to the results of LayoutAnalysis and/or Recognize.
|
static long |
getOpenCLDevice(Pointer device) |
static long |
getOpenCLDevice(PointerPointer device)
If compiled with OpenCL AND an available OpenCL
device is deemed faster than serial code, then
"device" is populated with the cl_device_id
and returns sizeof(cl_device_id)
otherwise *device=nullptr and returns 0.
|
BytePointer |
GetOsdText(int page_number)
The recognized text is returned as a char* which is coded
as UTF8 and must be freed with the delete [] operator.
|
int |
GetPageSegMode()
Return the current page segmentation mode.
|
TessBaseAPI |
getPointer(long i) |
org.bytedeco.leptonica.BOXA |
GetRegions(org.bytedeco.leptonica.PIXA pixa) |
org.bytedeco.leptonica.BOXA |
GetRegions(PointerPointer pixa)
Get the result of page layout analysis as a leptonica-style
Boxa, Pixa pair, in reading order.
|
int |
GetSourceYResolution() |
BytePointer |
GetStringVariable(BytePointer name)
Returns the pointer to the string that represents the value of the
parameter if it was found among Tesseract parameters.
|
String |
GetStringVariable(String name) |
org.bytedeco.leptonica.BOXA |
GetStrips(org.bytedeco.leptonica.PIXA pixa,
int[] blockids) |
org.bytedeco.leptonica.BOXA |
GetStrips(org.bytedeco.leptonica.PIXA pixa,
IntBuffer blockids) |
org.bytedeco.leptonica.BOXA |
GetStrips(org.bytedeco.leptonica.PIXA pixa,
IntPointer blockids) |
org.bytedeco.leptonica.BOXA |
GetStrips(PointerPointer pixa,
PointerPointer blockids)
Get textlines and strips of image regions as a leptonica-style Boxa, Pixa
pair, in reading order.
|
boolean |
GetTextDirection(int[] out_offset,
float[] out_slope) |
boolean |
GetTextDirection(IntBuffer out_offset,
FloatBuffer out_slope) |
boolean |
GetTextDirection(IntPointer out_offset,
FloatPointer out_slope) |
org.bytedeco.leptonica.BOXA |
GetTextlines(boolean raw_image,
int raw_padding,
org.bytedeco.leptonica.PIXA pixa,
int[] blockids,
int[] paraids) |
org.bytedeco.leptonica.BOXA |
GetTextlines(boolean raw_image,
int raw_padding,
org.bytedeco.leptonica.PIXA pixa,
IntBuffer blockids,
IntBuffer paraids) |
org.bytedeco.leptonica.BOXA |
GetTextlines(boolean raw_image,
int raw_padding,
org.bytedeco.leptonica.PIXA pixa,
IntPointer blockids,
IntPointer paraids) |
org.bytedeco.leptonica.BOXA |
GetTextlines(boolean raw_image,
int raw_padding,
PointerPointer pixa,
PointerPointer blockids,
PointerPointer paraids)
Get the textlines as a leptonica-style
Boxa, Pixa pair, in reading order.
|
org.bytedeco.leptonica.BOXA |
GetTextlines(org.bytedeco.leptonica.PIXA pixa,
int[] blockids) |
org.bytedeco.leptonica.BOXA |
GetTextlines(org.bytedeco.leptonica.PIXA pixa,
IntBuffer blockids) |
org.bytedeco.leptonica.BOXA |
GetTextlines(org.bytedeco.leptonica.PIXA pixa,
IntPointer blockids) |
org.bytedeco.leptonica.BOXA |
GetTextlines(PointerPointer pixa,
PointerPointer blockids) |
org.bytedeco.leptonica.PIX |
GetThresholdedImage()
Get a copy of the internal thresholded image from Tesseract.
|
int |
GetThresholdedImageScaleFactor()
Returns the scale factor of the thresholded image that would be returned by
GetThresholdedImage() and the various GetX() methods that call
GetComponentImages().
|
BytePointer |
GetTSVText(int page_number)
Make a TSV-formatted string from the internal data structures.
|
BytePointer |
GetUnichar(int unichar_id)
This method returns the string form of the specified unichar.
|
BytePointer |
GetUNLVText()
The recognized text is returned as a char* which is coded
as UNLV format Latin-1 with specific reject and suspect codes.
|
BytePointer |
GetUTF8Text()
The recognized text is returned as a char* which is coded
as UTF8 and must be freed with the delete [] operator.
|
boolean |
GetVariableAsString(BytePointer name,
BytePointer val)
Get value of named variable as a string, if it exists.
|
boolean |
GetVariableAsString(String name,
BytePointer val) |
org.bytedeco.leptonica.BOXA |
GetWords(org.bytedeco.leptonica.PIXA pixa) |
org.bytedeco.leptonica.BOXA |
GetWords(PointerPointer pixa)
Get the words as a leptonica-style
Boxa, Pixa pair, in reading order.
|
BytePointer |
GetWordStrBoxText(int page_number)
The recognized text is returned as a char* which is coded in the same
format as a WordStr box file used in training.
|
int |
Init(BytePointer datapath,
BytePointer language) |
int |
Init(BytePointer datapath,
BytePointer language,
int oem) |
int |
Init(BytePointer datapath,
BytePointer language,
int mode,
byte[] configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params) |
int |
Init(BytePointer datapath,
BytePointer language,
int mode,
ByteBuffer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params) |
int |
Init(BytePointer datapath,
BytePointer language,
int mode,
BytePointer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params) |
int |
Init(BytePointer datapath,
BytePointer language,
int mode,
PointerPointer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params)
Instances are now mostly thread-safe and totally independent,
but some global parameters remain.
|
int |
Init(BytePointer data,
int data_size,
BytePointer language,
int mode,
byte[] configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params,
FileReader reader) |
int |
Init(BytePointer data,
int data_size,
BytePointer language,
int mode,
ByteBuffer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params,
FileReader reader) |
int |
Init(BytePointer data,
int data_size,
BytePointer language,
int mode,
BytePointer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params,
FileReader reader) |
int |
Init(BytePointer data,
int data_size,
BytePointer language,
int mode,
PointerPointer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params,
FileReader reader) |
int |
Init(String data,
int data_size,
String language,
int mode,
byte[] configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params,
FileReader reader) |
int |
Init(String data,
int data_size,
String language,
int mode,
ByteBuffer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params,
FileReader reader) |
int |
Init(String data,
int data_size,
String language,
int mode,
BytePointer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params,
FileReader reader) |
int |
Init(String datapath,
String language) |
int |
Init(String datapath,
String language,
int oem) |
int |
Init(String datapath,
String language,
int mode,
byte[] configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params) |
int |
Init(String datapath,
String language,
int mode,
ByteBuffer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params) |
int |
Init(String datapath,
String language,
int mode,
BytePointer configs,
int configs_size,
StringVector vars_vec,
StringVector vars_values,
boolean set_only_non_debug_params) |
void |
InitForAnalysePage()
Init only for page layout analysis.
|
boolean |
IsValidCharacter(BytePointer utf8_character) |
boolean |
IsValidCharacter(String utf8_character) |
int |
IsValidWord(BytePointer word)
Check whether a word is valid according to Tesseract's language model
|
int |
IsValidWord(String word) |
int |
MeanTextConf()
Returns the (average) confidence value between 0 and 100.
|
int |
NumDawgs()
Return the number of dawgs loaded into tesseract_ object.
|
int |
oem() |
TessBaseAPI |
position(long position) |
void |
PrintFontsTable(Pointer fp)
Print Tesseract fonts table to the given file.
|
void |
PrintVariables(Pointer fp)
Print Tesseract parameters to the given file.
|
boolean |
ProcessPage(org.bytedeco.leptonica.PIX pix,
int page_index,
BytePointer filename,
BytePointer retry_config,
int timeout_millisec,
TessResultRenderer renderer)
Turn a single image into symbolic text.
|
boolean |
ProcessPage(org.bytedeco.leptonica.PIX pix,
int page_index,
String filename,
String retry_config,
int timeout_millisec,
TessResultRenderer renderer) |
boolean |
ProcessPages(BytePointer filename,
BytePointer retry_config,
int timeout_millisec,
TessResultRenderer renderer)
Turns images into symbolic text.
|
boolean |
ProcessPages(String filename,
String retry_config,
int timeout_millisec,
TessResultRenderer renderer) |
boolean |
ProcessPagesInternal(BytePointer filename,
BytePointer retry_config,
int timeout_millisec,
TessResultRenderer renderer) |
boolean |
ProcessPagesInternal(String filename,
String retry_config,
int timeout_millisec,
TessResultRenderer renderer) |
void |
ReadConfigFile(BytePointer filename)
Read a "config" file containing a set of param, value pairs.
|
void |
ReadConfigFile(String filename) |
void |
ReadDebugConfigFile(BytePointer filename)
Same as above, but only set debug params from the given config file.
|
void |
ReadDebugConfigFile(String filename) |
int |
Recognize(ETEXT_DESC monitor)
Recognize the image from SetAndThresholdImage, generating Tesseract
internal structures.
|
void |
set_min_orientation_margin(double margin) |
boolean |
SetDebugVariable(BytePointer name,
BytePointer value) |
boolean |
SetDebugVariable(String name,
String value) |
void |
SetDictFunc(DictFunc f)
Sets Dict::letter_is_okay_ function to point to the given function.
|
void |
SetImage(byte[] imagedata,
int width,
int height,
int bytes_per_pixel,
int bytes_per_line) |
void |
SetImage(ByteBuffer imagedata,
int width,
int height,
int bytes_per_pixel,
int bytes_per_line) |
void |
SetImage(BytePointer imagedata,
int width,
int height,
int bytes_per_pixel,
int bytes_per_line)
Provide an image for Tesseract to recognize.
|
void |
SetImage(org.bytedeco.leptonica.PIX pix)
Provide an image for Tesseract to recognize.
|
void |
SetInputImage(org.bytedeco.leptonica.PIX pix) |
void |
SetInputName(BytePointer name)
Set the name of the input file.
|
void |
SetInputName(String name) |
void |
SetOutputName(BytePointer name)
Set the name of the bonus output files.
|
void |
SetOutputName(String name) |
void |
SetPageSegMode(int mode)
Set the current page segmentation mode.
|
void |
SetProbabilityInContextFunc(ProbabilityInContextFunc f)
Sets Dict::probability_in_context_ function to point to the given
function.
|
void |
SetRectangle(int left,
int top,
int width,
int height)
Restrict recognition to a sub-rectangle of the image.
|
void |
SetSourceResolution(int ppi)
Set the resolution of the source image in pixels per inch so font size
information can be calculated in results.
|
boolean |
SetVariable(BytePointer name,
BytePointer value)
Set the value of an internal "parameter."
Supply the name of the parameter and the value as a string, just as
you would in a config file.
|
boolean |
SetVariable(String name,
String value) |
Tesseract |
tesseract() |
byte[] |
TesseractRect(byte[] imagedata,
int bytes_per_pixel,
int bytes_per_line,
int left,
int top,
int width,
int height) |
ByteBuffer |
TesseractRect(ByteBuffer imagedata,
int bytes_per_pixel,
int bytes_per_line,
int left,
int top,
int width,
int height) |
BytePointer |
TesseractRect(BytePointer imagedata,
int bytes_per_pixel,
int bytes_per_line,
int left,
int top,
int width,
int height)
Recognize a rectangle from an image and return the result as a string.
|
static BytePointer |
Version()
Returns the version identifier as a static string.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public TessBaseAPI(Pointer p)
Pointer(Pointer)
.public TessBaseAPI(long size)
Pointer.position(long)
.public TessBaseAPI()
public TessBaseAPI position(long position)
public TessBaseAPI getPointer(long i)
getPointer
in class Pointer
@Cast(value="const char*") public static BytePointer Version()
@Cast(value="size_t") public static long getOpenCLDevice(@Cast(value="void**") PointerPointer device)
@Cast(value="size_t") public static long getOpenCLDevice(@Cast(value="void**") @ByPtrPtr Pointer device)
public void SetInputName(@Cast(value="const char*") BytePointer name)
public void SetInputName(String name)
@Cast(value="const char*") public BytePointer GetInputName()
public void SetInputImage(org.bytedeco.leptonica.PIX pix)
public org.bytedeco.leptonica.PIX GetInputImage()
public int GetSourceYResolution()
@Cast(value="const char*") public BytePointer GetDatapath()
public void SetOutputName(@Cast(value="const char*") BytePointer name)
public void SetOutputName(String name)
@Cast(value="bool") public boolean SetVariable(@Cast(value="const char*") BytePointer name, @Cast(value="const char*") BytePointer value)
@Cast(value="bool") public boolean SetDebugVariable(@Cast(value="const char*") BytePointer name, @Cast(value="const char*") BytePointer value)
@Cast(value="bool") public boolean GetIntVariable(@Cast(value="const char*") BytePointer name, IntPointer value)
@Cast(value="bool") public boolean GetIntVariable(@Cast(value="const char*") BytePointer name, int[] value)
@Cast(value="bool") public boolean GetIntVariable(String name, IntPointer value)
@Cast(value="bool") public boolean GetIntVariable(@Cast(value="const char*") BytePointer name, IntBuffer value)
@Cast(value="bool") public boolean GetBoolVariable(@Cast(value="const char*") BytePointer name, @Cast(value="bool*") BoolPointer value)
@Cast(value="bool") public boolean GetBoolVariable(String name, @Cast(value="bool*") boolean[] value)
@Cast(value="bool") public boolean GetDoubleVariable(@Cast(value="const char*") BytePointer name, DoublePointer value)
@Cast(value="bool") public boolean GetDoubleVariable(String name, DoubleBuffer value)
@Cast(value="bool") public boolean GetDoubleVariable(@Cast(value="const char*") BytePointer name, double[] value)
@Cast(value="bool") public boolean GetDoubleVariable(String name, DoublePointer value)
@Cast(value="bool") public boolean GetDoubleVariable(@Cast(value="const char*") BytePointer name, DoubleBuffer value)
@Cast(value="const char*") public BytePointer GetStringVariable(@Cast(value="const char*") BytePointer name)
public void PrintFontsTable(@Cast(value="FILE*") Pointer fp)
public void PrintVariables(@Cast(value="FILE*") Pointer fp)
@Cast(value="bool") public boolean GetVariableAsString(@Cast(value="const char*") BytePointer name, @StdString @Cast(value={"char*","std::string*"}) BytePointer val)
@Cast(value="bool") public boolean GetVariableAsString(String name, @StdString @Cast(value={"char*","std::string*"}) BytePointer val)
public int Init(@Cast(value="const char*") BytePointer datapath, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") PointerPointer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params)
public int Init(@Cast(value="const char*") BytePointer datapath, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr BytePointer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params)
public int Init(String datapath, String language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr ByteBuffer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params)
public int Init(@Cast(value="const char*") BytePointer datapath, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr byte[] configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params)
public int Init(String datapath, String language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr BytePointer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params)
public int Init(@Cast(value="const char*") BytePointer datapath, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr ByteBuffer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params)
public int Init(String datapath, String language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr byte[] configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params)
public int Init(@Cast(value="const char*") BytePointer datapath, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int oem)
public int Init(String datapath, String language, @Cast(value="tesseract::OcrEngineMode") int oem)
public int Init(@Cast(value="const char*") BytePointer datapath, @Cast(value="const char*") BytePointer language)
public int Init(@Cast(value="const char*") BytePointer data, int data_size, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") PointerPointer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params, FileReader reader)
public int Init(@Cast(value="const char*") BytePointer data, int data_size, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr BytePointer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params, FileReader reader)
public int Init(String data, int data_size, String language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr ByteBuffer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params, FileReader reader)
public int Init(@Cast(value="const char*") BytePointer data, int data_size, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr byte[] configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params, FileReader reader)
public int Init(String data, int data_size, String language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr BytePointer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params, FileReader reader)
public int Init(@Cast(value="const char*") BytePointer data, int data_size, @Cast(value="const char*") BytePointer language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr ByteBuffer configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params, FileReader reader)
public int Init(String data, int data_size, String language, @Cast(value="tesseract::OcrEngineMode") int mode, @Cast(value="char**") @ByPtrPtr byte[] configs, int configs_size, @Const StringVector vars_vec, @Const StringVector vars_values, @Cast(value="bool") boolean set_only_non_debug_params, FileReader reader)
@Cast(value="const char*") public BytePointer GetInitLanguagesAsString()
public void GetLoadedLanguagesAsVector(StringVector langs)
public void GetAvailableLanguagesAsVector(StringVector langs)
public void InitForAnalysePage()
public void ReadConfigFile(@Cast(value="const char*") BytePointer filename)
public void ReadConfigFile(String filename)
public void ReadDebugConfigFile(@Cast(value="const char*") BytePointer filename)
public void ReadDebugConfigFile(String filename)
public void SetPageSegMode(@Cast(value="tesseract::PageSegMode") int mode)
@Cast(value="tesseract::PageSegMode") public int GetPageSegMode()
@Cast(value="char*") public BytePointer TesseractRect(@Cast(value="const unsigned char*") BytePointer imagedata, int bytes_per_pixel, int bytes_per_line, int left, int top, int width, int height)
@Cast(value="char*") public ByteBuffer TesseractRect(@Cast(value="const unsigned char*") ByteBuffer imagedata, int bytes_per_pixel, int bytes_per_line, int left, int top, int width, int height)
@Cast(value="char*") public byte[] TesseractRect(@Cast(value="const unsigned char*") byte[] imagedata, int bytes_per_pixel, int bytes_per_line, int left, int top, int width, int height)
public void ClearAdaptiveClassifier()
public void SetImage(@Cast(value="const unsigned char*") BytePointer imagedata, int width, int height, int bytes_per_pixel, int bytes_per_line)
public void SetImage(@Cast(value="const unsigned char*") ByteBuffer imagedata, int width, int height, int bytes_per_pixel, int bytes_per_line)
public void SetImage(@Cast(value="const unsigned char*") byte[] imagedata, int width, int height, int bytes_per_pixel, int bytes_per_line)
public void SetImage(org.bytedeco.leptonica.PIX pix)
public void SetSourceResolution(int ppi)
public void SetRectangle(int left, int top, int width, int height)
public org.bytedeco.leptonica.PIX GetThresholdedImage()
public org.bytedeco.leptonica.BOXA GetRegions(@Cast(value="Pixa**") PointerPointer pixa)
public org.bytedeco.leptonica.BOXA GetRegions(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa)
public org.bytedeco.leptonica.BOXA GetTextlines(@Cast(value="bool") boolean raw_image, int raw_padding, @Cast(value="Pixa**") PointerPointer pixa, @Cast(value="int**") PointerPointer blockids, @Cast(value="int**") PointerPointer paraids)
public org.bytedeco.leptonica.BOXA GetTextlines(@Cast(value="bool") boolean raw_image, int raw_padding, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntPointer blockids, @ByPtrPtr IntPointer paraids)
public org.bytedeco.leptonica.BOXA GetTextlines(@Cast(value="bool") boolean raw_image, int raw_padding, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntBuffer blockids, @ByPtrPtr IntBuffer paraids)
public org.bytedeco.leptonica.BOXA GetTextlines(@Cast(value="bool") boolean raw_image, int raw_padding, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr int[] blockids, @ByPtrPtr int[] paraids)
public org.bytedeco.leptonica.BOXA GetTextlines(@Cast(value="Pixa**") PointerPointer pixa, @Cast(value="int**") PointerPointer blockids)
public org.bytedeco.leptonica.BOXA GetTextlines(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntPointer blockids)
public org.bytedeco.leptonica.BOXA GetTextlines(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntBuffer blockids)
public org.bytedeco.leptonica.BOXA GetTextlines(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr int[] blockids)
public org.bytedeco.leptonica.BOXA GetStrips(@Cast(value="Pixa**") PointerPointer pixa, @Cast(value="int**") PointerPointer blockids)
public org.bytedeco.leptonica.BOXA GetStrips(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntPointer blockids)
public org.bytedeco.leptonica.BOXA GetStrips(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntBuffer blockids)
public org.bytedeco.leptonica.BOXA GetStrips(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr int[] blockids)
public org.bytedeco.leptonica.BOXA GetWords(@Cast(value="Pixa**") PointerPointer pixa)
public org.bytedeco.leptonica.BOXA GetWords(@ByPtrPtr org.bytedeco.leptonica.PIXA pixa)
public org.bytedeco.leptonica.BOXA GetConnectedComponents(@Cast(value="Pixa**") PointerPointer cc)
public org.bytedeco.leptonica.BOXA GetConnectedComponents(@ByPtrPtr org.bytedeco.leptonica.PIXA cc)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="tesseract::PageIteratorLevel") int level, @Cast(value="bool") boolean text_only, @Cast(value="bool") boolean raw_image, int raw_padding, @Cast(value="Pixa**") PointerPointer pixa, @Cast(value="int**") PointerPointer blockids, @Cast(value="int**") PointerPointer paraids)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="tesseract::PageIteratorLevel") int level, @Cast(value="bool") boolean text_only, @Cast(value="bool") boolean raw_image, int raw_padding, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntPointer blockids, @ByPtrPtr IntPointer paraids)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="tesseract::PageIteratorLevel") int level, @Cast(value="bool") boolean text_only, @Cast(value="bool") boolean raw_image, int raw_padding, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntBuffer blockids, @ByPtrPtr IntBuffer paraids)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="tesseract::PageIteratorLevel") int level, @Cast(value="bool") boolean text_only, @Cast(value="bool") boolean raw_image, int raw_padding, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr int[] blockids, @ByPtrPtr int[] paraids)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="const tesseract::PageIteratorLevel") int level, @Cast(value="const bool") boolean text_only, @Cast(value="Pixa**") PointerPointer pixa, @Cast(value="int**") PointerPointer blockids)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="const tesseract::PageIteratorLevel") int level, @Cast(value="const bool") boolean text_only, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntPointer blockids)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="const tesseract::PageIteratorLevel") int level, @Cast(value="const bool") boolean text_only, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr IntBuffer blockids)
public org.bytedeco.leptonica.BOXA GetComponentImages(@Cast(value="const tesseract::PageIteratorLevel") int level, @Cast(value="const bool") boolean text_only, @ByPtrPtr org.bytedeco.leptonica.PIXA pixa, @ByPtrPtr int[] blockids)
public int GetThresholdedImageScaleFactor()
public PageIterator AnalyseLayout()
public PageIterator AnalyseLayout(@Cast(value="bool") boolean merge_similar_words)
public int Recognize(ETEXT_DESC monitor)
@Cast(value="bool") public boolean ProcessPages(@Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer retry_config, int timeout_millisec, TessResultRenderer renderer)
@Cast(value="bool") public boolean ProcessPages(String filename, String retry_config, int timeout_millisec, TessResultRenderer renderer)
@Cast(value="bool") public boolean ProcessPagesInternal(@Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer retry_config, int timeout_millisec, TessResultRenderer renderer)
@Cast(value="bool") public boolean ProcessPagesInternal(String filename, String retry_config, int timeout_millisec, TessResultRenderer renderer)
@Cast(value="bool") public boolean ProcessPage(org.bytedeco.leptonica.PIX pix, int page_index, @Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer retry_config, int timeout_millisec, TessResultRenderer renderer)
@Cast(value="bool") public boolean ProcessPage(org.bytedeco.leptonica.PIX pix, int page_index, String filename, String retry_config, int timeout_millisec, TessResultRenderer renderer)
public ResultIterator GetIterator()
public MutableIterator GetMutableIterator()
@Cast(value="char*") public BytePointer GetUTF8Text()
@Cast(value="char*") public BytePointer GetHOCRText(ETEXT_DESC monitor, int page_number)
@Cast(value="char*") public BytePointer GetHOCRText(int page_number)
@Cast(value="char*") public BytePointer GetAltoText(ETEXT_DESC monitor, int page_number)
@Cast(value="char*") public BytePointer GetAltoText(int page_number)
@Cast(value="char*") public BytePointer GetTSVText(int page_number)
@Cast(value="char*") public BytePointer GetLSTMBoxText(int page_number)
@Cast(value="char*") public BytePointer GetBoxText(int page_number)
@Cast(value="char*") public BytePointer GetWordStrBoxText(int page_number)
@Cast(value="char*") public BytePointer GetUNLVText()
@Cast(value="bool") public boolean DetectOrientationScript(IntPointer orient_deg, FloatPointer orient_conf, @Cast(value="const char**") PointerPointer script_name, FloatPointer script_conf)
@Cast(value="bool") public boolean DetectOrientationScript(IntPointer orient_deg, FloatPointer orient_conf, @Cast(value="const char**") @ByPtrPtr BytePointer script_name, FloatPointer script_conf)
@Cast(value="bool") public boolean DetectOrientationScript(IntBuffer orient_deg, FloatBuffer orient_conf, @Cast(value="const char**") @ByPtrPtr ByteBuffer script_name, FloatBuffer script_conf)
@Cast(value="bool") public boolean DetectOrientationScript(int[] orient_deg, float[] orient_conf, @Cast(value="const char**") @ByPtrPtr byte[] script_name, float[] script_conf)
@Cast(value="char*") public BytePointer GetOsdText(int page_number)
public int MeanTextConf()
public IntPointer AllWordConfidences()
@Cast(value="bool") public boolean AdaptToWordStr(@Cast(value="tesseract::PageSegMode") int mode, @Cast(value="const char*") BytePointer wordstr)
@Cast(value="bool") public boolean AdaptToWordStr(@Cast(value="tesseract::PageSegMode") int mode, String wordstr)
public void Clear()
public void End()
public static void ClearPersistentCache()
public int IsValidWord(@Cast(value="const char*") BytePointer word)
public int IsValidWord(String word)
@Cast(value="bool") public boolean IsValidCharacter(@Cast(value="const char*") BytePointer utf8_character)
@Cast(value="bool") public boolean GetTextDirection(IntPointer out_offset, FloatPointer out_slope)
@Cast(value="bool") public boolean GetTextDirection(IntBuffer out_offset, FloatBuffer out_slope)
@Cast(value="bool") public boolean GetTextDirection(int[] out_offset, float[] out_slope)
public void SetDictFunc(DictFunc f)
public void SetProbabilityInContextFunc(ProbabilityInContextFunc f)
@Cast(value="bool") public boolean DetectOS(OSResults arg0)
public void GetBlockTextOrientations(@Cast(value="int**") PointerPointer block_orientation, @Cast(value="bool**") PointerPointer vertical_writing)
public void GetBlockTextOrientations(@ByPtrPtr IntPointer block_orientation, @Cast(value="bool**") @ByPtrPtr BoolPointer vertical_writing)
public void GetBlockTextOrientations(@ByPtrPtr IntBuffer block_orientation, @Cast(value="bool**") @ByPtrPtr boolean[] vertical_writing)
public void GetBlockTextOrientations(@ByPtrPtr int[] block_orientation, @Cast(value="bool**") @ByPtrPtr BoolPointer vertical_writing)
public void GetBlockTextOrientations(@ByPtrPtr IntPointer block_orientation, @Cast(value="bool**") @ByPtrPtr boolean[] vertical_writing)
public void GetBlockTextOrientations(@ByPtrPtr IntBuffer block_orientation, @Cast(value="bool**") @ByPtrPtr BoolPointer vertical_writing)
public void GetBlockTextOrientations(@ByPtrPtr int[] block_orientation, @Cast(value="bool**") @ByPtrPtr boolean[] vertical_writing)
@Cast(value="const char*") public BytePointer GetUnichar(int unichar_id)
@Const public Dawg GetDawg(int i)
public int NumDawgs()
public Tesseract tesseract()
public void set_min_orientation_margin(double margin)
Copyright © 2024. All rights reserved.