SetOutputName: Set the Output Name for Any Content Written by Tesseract

View source: R/ext.R

SetOutputNameR Documentation

Set the Output Name for Any Content Written by Tesseract

Description

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.

Usage

SetOutputName(api, filename)

Arguments

api

an instance of the TesseractBaseAPI-class obtained from a call to tesseract

filename

the name of the output file, without the extension

Value

No result, but used for its side-effect.

Author(s)

Duncan Temple Lang

References

http://zdenop.github.io/tesseract-doc/classtesseract_1_1_tess_base_a_p_i.html

See Also

toPDF, etc.

Examples

f = system.file("images", "OCRSample2.png", package = "Rtesseract")
ts = tesseract(f)
SetOutputName(ts, "tmp")

duncantl/Rtesseract documentation built on Sept. 8, 2024, 8:38 a.m.