SetOutputName | R Documentation |
When a tesseract object is used to generate output to a file,
it uses this output prefix for each file it generates.
This is not used directly very often, but in the ProcessPages
mechanism used in the toPDF
and related functions to
generate different formats of the results from the OCR.
However, we specify the output name in those functions.
This is part of the tesseract API and so included here.
SetOutputName(api, filename)
api |
an instance of the |
filename |
the name of the output file, without the extension |
No result, but used for its side-effect.
Duncan Temple Lang
http://zdenop.github.io/tesseract-doc/classtesseract_1_1_tess_base_a_p_i.html
toPDF
, etc.
f = system.file("images", "OCRSample2.png", package = "Rtesseract")
ts = tesseract(f)
SetOutputName(ts, "tmp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.