tests/rect2.R

library(Rtesseract)

f = system.file("images", "1990_p44.png", package = "Rtesseract")
api = tesseract(f)

conf = GetConfidences(api)

plot(api)

grep("3560", names(conf))

 # Zoom in on the table at the bottom of the image.
 # Note that the 320 and 100 are width and height, not right and top
SetRectangle(api, 1108, 849, 200, 100)

Recognize(api)
conf1 = GetConfidences(api)

plot(api)
duncantl/Rtesseract documentation built on March 25, 2022, 5:50 a.m.