tests/basic.R

library(Rtesseract)
f = system.file("images", "OCRSample2.png", package = "Rtesseract")

alts = GetAlternatives(f)
w = GetConfidences(f)
bb = GetBoxes(f)


if(FALSE) {
     # ResultIterator is no longer part of the end-user functionality.
api = tesseract(f)
Recognize(api)
ri = as(api, "ResultIterator")
alts.ri = GetAlternatives(ri)
identical(alts[[1]], alts.ri)
}
duncantl/Rtesseract documentation built on March 25, 2022, 5:50 a.m.