tesseractQueryState.Rd | R Documentation |
These functions allow us to query the current state and settings of a tesseract OCR object.
There are other functions in other help pages that are related to setting and querying the state.
We can query the location of the tesseract data files where
the training and configuration files are located.
These can be set via the environment variable TESSDATA_PREFIX
,
or the datapath
argument to tesseract
and
Init
.
The oem
allows us to query the OcrEngineMode that was set
during the initialization.
GetInitLanguages
queries the languages specified in the
initialization.
IsValidWord
queries whether a word is consider valid
given the current settings and dictionary in use.
GetDatapath(api)
hasRecognized(api)
oem(api)
GetInitLanguages(api)
IsValidWord(api, word)
GetThresholdedImage(api)
api |
the instance of the |
word |
a character vector of words whose validity we want to check |
Duncan Temple Lang
tesseract
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.