SetInputName | R Documentation |
These functions provide different ways to specify which image to perform the OCR on and also to query the name of the current image file being processed.
SetInputName(api, name, check = TRUE, load = TRUE)
GetInputName(api)
SetImage(api, pix, filename = NA)
api |
an instance of the |
name |
a character vector of length 1 that gives the name of the image file to be processed |
check |
a logical value controlling whether the value of
|
load |
a logical value indicating whether to actually read the image |
pix |
a |
filename |
the name associated with the |
GetInputName
returns a character vector of length 1 (a string)
with the name of the image file that was previously loaded. This
could be empty if the image was loaded directly as a Pix
object.
Duncan Temple Lang
http://zdenop.github.io/tesseract-doc/classtesseract_1_1_tess_base_a_p_i.html
tesseract
, GetText
pixRead
f = system.file("images", "OCRSample2.png", package = "Rtesseract")
p = pixRead(f)
ts = tesseract()
GetInputName(ts) # NA
SetImage(ts, p)
GetInputName(ts) # NA
SetInputName(ts, f)
GetInputName(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.