Skip to contents

Run gocr on an Image File

Usage

gocrRun(
  config,
  useBatch = TRUE,
  waitForBatch = TRUE,
  opendir = TRUE,
  dbg = TRUE
)

Arguments

config

gocr configuration as returned by gocrConfig

useBatch

if TRUE (default), a batch file is written so that the user can reproduce the call by double-clicking the batch file in the file explorer (opens when opendir is TRUE)

waitForBatch

passed to kwb.gocr:::writeAndRunBatchFile

opendir

if TRUE (default), and if useBatch is TRUE, the directory in which the batch file is written, is opened in the Windows Explorer

dbg

if TRUE debug messages are shown

Value

(only if waitForBatch = TRUE): result of OCR as a vector of character representing the recognised lines. The result vector has the attribute config containing the configuration used (original config, with default values set where needed)