Skip to content

Commit aa89bc4

Browse files
author
Patrick Nollet
committed
Better documentation for new initializer
1 parent 1f8faed commit aa89bc4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

TesseractOCR/G8Tesseract.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,16 @@ extern NSInteger const kG8MaxCredibleResolution;
314314
* The config files must exist in one of two
315315
* possible folders: tessdata/tessconfigs or
316316
* tessdata/configs.
317-
* @param absoluteDataPath If the absoluteDataPath is specified, Tesseract
318-
* will be set to use that path. If nil, the
319-
* application bundle will be use instead
317+
* @param absoluteDataPath If specified, Tesseract will be initialized to
318+
* use this path as the path prefix for the
319+
* tessdata folder. Consequently, you must have a
320+
* folder named "tessdata" in this path for
321+
* Tesseract to initialize properly (unless you
322+
* also set the `copyFilesFromResources` flag to
323+
* true, in which case the tessdata folder will
324+
* be created for you in this path). If nil, the
325+
* application bundle will be used instead as the
326+
* path prefix for the tessdata folder.
320327
* @param engineMode The engine mode to use in recognition. See
321328
* `engineMode`.
322329
* @param copyFilesFromResources Flag to determine if Tesseract should copy the

0 commit comments

Comments
 (0)