@@ -302,30 +302,37 @@ extern NSInteger const kG8MaxCredibleResolution;
302302/* *
303303 * Initialize Tesseract with the provided language and engine mode.
304304 *
305- * @param language The language to use in recognition. See
306- * `language`.
307- * @param configDictionary A dictionary of config variables to set.
308- * @param configFileNames An array of file names containing key-value
309- * config pairs. Config settings can be set at
310- * initialization or run-time. Furthermore, they
311- * could be specified at the same time, in which
312- * case Tesseract will get variables from every
313- * config file as well as the dictionary.
314- * The config files must exist in one of two
315- * possible folders: tessdata/tessconfigs or
316- * tessdata/configs.
317- * @param absoluteDataPath If the absoluteDataPath is specified, Tesseract
318- * will be set to use that path.
319- * @param engineMode The engine mode to use in recognition. See
320- * `engineMode`.
305+ * @param language The language to use in recognition. See
306+ * `language`.
307+ * @param configDictionary A dictionary of config variables to set.
308+ * @param configFileNames An array of file names containing key-value
309+ * config pairs. Config settings can be set at
310+ * initialization or run-time. Furthermore, they
311+ * could be specified at the same time, in which
312+ * case Tesseract will get variables from every
313+ * config file as well as the dictionary.
314+ * The config files must exist in one of two
315+ * possible folders: tessdata/tessconfigs or
316+ * 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
320+ * @param engineMode The engine mode to use in recognition. See
321+ * `engineMode`.
322+ * @param copyFilesFromResources Flag to determine if Tesseract should copy the
323+ * whole contents of the tessdata folder in the
324+ * application bundle to the
325+ * absoluteDataPath/tessdata directory
326+ *
321327 *
322328 * @return The initialized Tesseract object, or `nil` if there was an error.
323329 */
324330- (id )initWithLanguage : (NSString *)language
325331 configDictionary : (NSDictionary *)configDictionary
326332 configFileNames : (NSArray *)configFileNames
327333 absoluteDataPath : (NSString *)absoluteDataPath
328- engineMode : (G8OCREngineMode)engineMode NS_DESIGNATED_INITIALIZER;
334+ engineMode : (G8OCREngineMode)engineMode
335+ copyFilesFromResources : (BOOL )copyFilesFromResources NS_DESIGNATED_INITIALIZER;
329336
330337/* *
331338 * Set a Tesseract variable. See G8TesseractParameters.h for the available
0 commit comments