using Ocr.Tesseract.Configuration;
using System;
using System.Collections.Generic;

namespace Ocr.Tesseract.Screenshots.Configuration;

/// <inheritdoc />
public class TesseractScreenshotConfiguration : ITesseractConfiguration
{
  #region Implementation of ITesseractConfiguration

  /// <inheritdoc />
  public string DataPath { get; set; } = string.Empty;

  /// <inheritdoc />
  public string[] Languages { get; set; } = Array.Empty<string>();

  /// <inheritdoc />
  public IDictionary<string, object> Variables { get; set; } = new Dictionary<string, object>
  {
    { "load_system_dawg", false },
    { "language_model_penalty_non_freq_dict_word", 1 },
    { "language_model_penalty_non_dict_word", 1 },
    // { "user_words_suffix", "fra.user-words" },
  };

  #endregion
}
