Class: Xberg::TesseractConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTesseractConfig

Returns a new instance of TesseractConfig.

Parameters:

  • language: (Array[String])
  • psm: (Integer)
  • output_format: (String)
  • oem: (Integer)
  • min_confidence: (Float)
  • preprocessing: (ImagePreprocessingConfig)
  • enable_table_detection: (Boolean)
  • table_min_confidence: (Float)
  • table_column_threshold: (Integer)
  • table_row_threshold_ratio: (Float)
  • use_cache: (Boolean)
  • classify_use_pre_adapted_templates: (Boolean)
  • language_model_ngram_on: (Boolean)
  • tessedit_dont_blkrej_good_wds: (Boolean)
  • tessedit_dont_rowrej_good_wds: (Boolean)
  • tessedit_enable_dict_correction: (Boolean)
  • tessedit_char_whitelist: (String)
  • tessedit_char_blacklist: (String)
  • tessedit_use_primary_params_model: (Boolean)
  • textord_space_size_is_variable: (Boolean)
  • thresholding_method: (Boolean)


2539
# File 'sig/types.rbs', line 2539

def initialize: (?language: Array[String], ?psm: Integer, ?output_format: String, ?oem: Integer, ?min_confidence: Float, ?preprocessing: ImagePreprocessingConfig, ?enable_table_detection: bool, ?table_min_confidence: Float, ?table_column_threshold: Integer, ?table_row_threshold_ratio: Float, ?use_cache: bool, ?classify_use_pre_adapted_templates: bool, ?language_model_ngram_on: bool, ?tessedit_dont_blkrej_good_wds: bool, ?tessedit_dont_rowrej_good_wds: bool, ?tessedit_enable_dict_correction: bool, ?tessedit_char_whitelist: String, ?tessedit_char_blacklist: String, ?tessedit_use_primary_params_model: bool, ?textord_space_size_is_variable: bool, ?thresholding_method: bool) -> void

Instance Attribute Details

#classify_use_pre_adapted_templatesBoolean (readonly)

Returns the value of attribute classify_use_pre_adapted_templates.

Returns:

  • (Boolean)


2528
2529
2530
# File 'sig/types.rbs', line 2528

def classify_use_pre_adapted_templates
  @classify_use_pre_adapted_templates
end

#enable_table_detectionBoolean (readonly)

Returns the value of attribute enable_table_detection.

Returns:

  • (Boolean)


2523
2524
2525
# File 'sig/types.rbs', line 2523

def enable_table_detection
  @enable_table_detection
end

#languageArray[String] (readonly)

Returns the value of attribute language.

Returns:

  • (Array[String])


2517
2518
2519
# File 'sig/types.rbs', line 2517

def language
  @language
end

#language_model_ngram_onBoolean (readonly)

Returns the value of attribute language_model_ngram_on.

Returns:

  • (Boolean)


2529
2530
2531
# File 'sig/types.rbs', line 2529

def language_model_ngram_on
  @language_model_ngram_on
end

#min_confidenceFloat (readonly)

Returns the value of attribute min_confidence.

Returns:

  • (Float)


2521
2522
2523
# File 'sig/types.rbs', line 2521

def min_confidence
  @min_confidence
end

#oemInteger (readonly)

Returns the value of attribute oem.

Returns:

  • (Integer)


2520
2521
2522
# File 'sig/types.rbs', line 2520

def oem
  @oem
end

#output_formatString (readonly)

Returns the value of attribute output_format.

Returns:

  • (String)


2519
2520
2521
# File 'sig/types.rbs', line 2519

def output_format
  @output_format
end

#preprocessingImagePreprocessingConfig? (readonly)

Returns the value of attribute preprocessing.

Returns:



2522
2523
2524
# File 'sig/types.rbs', line 2522

def preprocessing
  @preprocessing
end

#psmInteger? (readonly)

Returns the value of attribute psm.

Returns:

  • (Integer, nil)


2518
2519
2520
# File 'sig/types.rbs', line 2518

def psm
  @psm
end

#table_column_thresholdInteger (readonly)

Returns the value of attribute table_column_threshold.

Returns:

  • (Integer)


2525
2526
2527
# File 'sig/types.rbs', line 2525

def table_column_threshold
  @table_column_threshold
end

#table_min_confidenceFloat (readonly)

Returns the value of attribute table_min_confidence.

Returns:

  • (Float)


2524
2525
2526
# File 'sig/types.rbs', line 2524

def table_min_confidence
  @table_min_confidence
end

#table_row_threshold_ratioFloat (readonly)

Returns the value of attribute table_row_threshold_ratio.

Returns:

  • (Float)


2526
2527
2528
# File 'sig/types.rbs', line 2526

def table_row_threshold_ratio
  @table_row_threshold_ratio
end

#tessedit_char_blacklistString (readonly)

Returns the value of attribute tessedit_char_blacklist.

Returns:

  • (String)


2534
2535
2536
# File 'sig/types.rbs', line 2534

def tessedit_char_blacklist
  @tessedit_char_blacklist
end

#tessedit_char_whitelistString (readonly)

Returns the value of attribute tessedit_char_whitelist.

Returns:

  • (String)


2533
2534
2535
# File 'sig/types.rbs', line 2533

def tessedit_char_whitelist
  @tessedit_char_whitelist
end

#tessedit_dont_blkrej_good_wdsBoolean (readonly)

Returns the value of attribute tessedit_dont_blkrej_good_wds.

Returns:

  • (Boolean)


2530
2531
2532
# File 'sig/types.rbs', line 2530

def tessedit_dont_blkrej_good_wds
  @tessedit_dont_blkrej_good_wds
end

#tessedit_dont_rowrej_good_wdsBoolean (readonly)

Returns the value of attribute tessedit_dont_rowrej_good_wds.

Returns:

  • (Boolean)


2531
2532
2533
# File 'sig/types.rbs', line 2531

def tessedit_dont_rowrej_good_wds
  @tessedit_dont_rowrej_good_wds
end

#tessedit_enable_dict_correctionBoolean (readonly)

Returns the value of attribute tessedit_enable_dict_correction.

Returns:

  • (Boolean)


2532
2533
2534
# File 'sig/types.rbs', line 2532

def tessedit_enable_dict_correction
  @tessedit_enable_dict_correction
end

#tessedit_use_primary_params_modelBoolean (readonly)

Returns the value of attribute tessedit_use_primary_params_model.

Returns:

  • (Boolean)


2535
2536
2537
# File 'sig/types.rbs', line 2535

def tessedit_use_primary_params_model
  @tessedit_use_primary_params_model
end

#textord_space_size_is_variableBoolean (readonly)

Returns the value of attribute textord_space_size_is_variable.

Returns:

  • (Boolean)


2536
2537
2538
# File 'sig/types.rbs', line 2536

def textord_space_size_is_variable
  @textord_space_size_is_variable
end

#thresholding_methodBoolean (readonly)

Returns the value of attribute thresholding_method.

Returns:

  • (Boolean)


2537
2538
2539
# File 'sig/types.rbs', line 2537

def thresholding_method
  @thresholding_method
end

#use_cacheBoolean (readonly)

Returns the value of attribute use_cache.

Returns:

  • (Boolean)


2527
2528
2529
# File 'sig/types.rbs', line 2527

def use_cache
  @use_cache
end