readBoxFile | R Documentation |
This is a simple function that reads the
results of calling tesseract ... makebox
.
The result is a data frame, importantly, with a class
TesseractBoxdata
.
This allows us to display the results via a method.
readBoxFile(file, imgDim = integer(), ...)
file |
the name of the file containing the box data |
imgDim |
the dimension(s) of the image. If this is just one element, it is the number of rows. |
... |
additional arguments passed to |
This returns a data frame with the class TesseractBoxdata
.
The 5 columns are
left, bottom, right, top of each box and text
contains the value.
This allows us to easily plot the results.
Duncan Temple Lang
Tesseract documentation.
bb = readBoxFile(system.file("trainingSample", "eng.tables.exp0.box", package = "Rtesseract"))
plot(bb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.