PrintVariables | R Documentation |
These functions allow us to query all or some of the tesseract variables controlling the OCR behavior. We can also set these variables from within R.
GetVariables(api, var)
PrintVariables(api = tesseract(), asDataFrame = FALSE, file = tempfile())
SetVariables(api, ..., opts = list(...))
api |
an instance of the |
var |
a character vector specifying the names of the variables to
be queried. If this is omitted, |
file |
the name of a file to which the variable name and values
are written. If this is omitted, |
... |
|
opts |
an alternative way to specify the |
asDataFrame |
a logical value. If |
GetVariables
returns a named list containing the values for the different tesseract
variables.
The names are the variable names.
This is a list rather than a vector since the tesseract variables
can be strings, logical/boolean values, or numbers - either integer or
real valued.
PrintVariables
called without a value for file
returns a named character vector. The type of each variable
is lost.
Duncan Temple Lang
Tesseract https://code.google.com/p/tesseract-ocr/
tesseract
,
TesseractBaseAPI-class
api = tesseract()
v = GetVariables(api)
head(names(v))
table(sapply(v, class))
out = tempfile()
PrintVariables(api, file = out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.