Tesseract constructor

Tesseract({
  1. List<String> languages = const ['eng'],
  2. String? tessDataPath,
  3. String? configFilePath,
})

Implementation

Tesseract({
  /// The path to the Tesseract data directory.
  List<String> languages = const ['eng'],
  String? tessDataPath,
  String? configFilePath,
})  : _languages = languages,
      _tessDataPath =
          tessDataPath ?? Platform.environment['TESS_DATA_PATH'] ?? '',
      _configFilePath =
          configFilePath ?? Platform.environment['TESS_CONFIG_FILE'] ?? '',
      super(
        bindings.flusseract.Create(),
        bindings.flusseract.Destroy,
      );