Learn R Programming

tesseract (version 1.8)

tesseract_download: Tesseract Training Data

Description

Helper function to download training data from the official tessdata repository. Only use this function on Windows and OS-X. On Linux, training data can be installed directly with yum or apt-get.

Usage

tesseract_download(lang, datapath = NULL, progress = TRUE)

tesseract_info()

Arguments

lang

three letter code for language, see tessdata repository.

datapath

destination directory where to download store the file

progress

print progress while downloading

See Also

Other tesseract: ocr

Examples

Run this code
# NOT RUN {
tesseract_download("fra")
french <- tesseract("fra")
text <- ocr("https://jeroen.github.io/images/french_text.png", engine = french)
cat(text)
# }

Run the code above in your browser using DataLab