ReadConfigFile | R Documentation |
This function finds and reads a tesseract configuration
file that specifies one or more variable value
pairs
per line. This can be a convenient way to set multiple
variables.
ReadConfigFile(api, files, debug = FALSE, ok = FALSE)
api |
an instance of the |
files |
a character vector giving the names of one or more
tesseract configuration files. These can be paths to the files
or alternatively just the names of the files if they are located
in directories that tesseract searches by default. These are
the subdirectories |
debug |
if |
ok |
a logical value which controls whether to check if the files actually exist |
This is used for its side-effect of updating the tesseract instance with the variable values in the file.
Duncan Temple Lang
http://zdenop.github.io/tesseract-doc/classtesseract_1_1_tess_base_a_p_i.html
tesseract
ts = tesseract()
ReadConfigFile(ts, "bigram", ok = TRUE) # read from tessdata/configs
f = system.file("sampleConfigFile", package = "Rtesseract")
GetVariables(ts)["certainty_scale"]
GetVariables(ts)["debug_fix_space_level"]
ReadConfigFile(ts, f, debug = TRUE)
GetVariables(ts)["debug_fix_space_level"]
GetVariables(ts)["certainty_scale"] # unchanged
ReadConfigFile(ts, f)
GetVariables(ts)["certainty_scale"] # changed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.