Class: Xberg::TesseractConfig

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

Instance Attribute Summary collapse

Class Method 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)


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

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?

Returns the value of attribute classify_use_pre_adapted_templates.

Returns:

  • (Boolean, nil)


1188
1189
1190
# File 'sig/types.rbs', line 1188

def classify_use_pre_adapted_templates
  @classify_use_pre_adapted_templates
end

#enable_table_detectionBoolean?

Returns the value of attribute enable_table_detection.

Returns:

  • (Boolean, nil)


1183
1184
1185
# File 'sig/types.rbs', line 1183

def enable_table_detection
  @enable_table_detection
end

#languageArray[String]?

Returns the value of attribute language.

Returns:

  • (Array[String], nil)


1177
1178
1179
# File 'sig/types.rbs', line 1177

def language
  @language
end

#language_model_ngram_onBoolean?

Returns the value of attribute language_model_ngram_on.

Returns:

  • (Boolean, nil)


1189
1190
1191
# File 'sig/types.rbs', line 1189

def language_model_ngram_on
  @language_model_ngram_on
end

#min_confidenceFloat?

Returns the value of attribute min_confidence.

Returns:

  • (Float, nil)


1181
1182
1183
# File 'sig/types.rbs', line 1181

def min_confidence
  @min_confidence
end

#oemInteger?

Returns the value of attribute oem.

Returns:

  • (Integer, nil)


1180
1181
1182
# File 'sig/types.rbs', line 1180

def oem
  @oem
end

#output_formatString?

Returns the value of attribute output_format.

Returns:

  • (String, nil)


1179
1180
1181
# File 'sig/types.rbs', line 1179

def output_format
  @output_format
end

#preprocessingImagePreprocessingConfig?

Returns the value of attribute preprocessing.

Returns:



1182
1183
1184
# File 'sig/types.rbs', line 1182

def preprocessing
  @preprocessing
end

#psmInteger?

Returns the value of attribute psm.

Returns:

  • (Integer, nil)


1178
1179
1180
# File 'sig/types.rbs', line 1178

def psm
  @psm
end

#table_column_thresholdInteger?

Returns the value of attribute table_column_threshold.

Returns:

  • (Integer, nil)


1185
1186
1187
# File 'sig/types.rbs', line 1185

def table_column_threshold
  @table_column_threshold
end

#table_min_confidenceFloat?

Returns the value of attribute table_min_confidence.

Returns:

  • (Float, nil)


1184
1185
1186
# File 'sig/types.rbs', line 1184

def table_min_confidence
  @table_min_confidence
end

#table_row_threshold_ratioFloat?

Returns the value of attribute table_row_threshold_ratio.

Returns:

  • (Float, nil)


1186
1187
1188
# File 'sig/types.rbs', line 1186

def table_row_threshold_ratio
  @table_row_threshold_ratio
end

#tessedit_char_blacklistString?

Returns the value of attribute tessedit_char_blacklist.

Returns:

  • (String, nil)


1194
1195
1196
# File 'sig/types.rbs', line 1194

def tessedit_char_blacklist
  @tessedit_char_blacklist
end

#tessedit_char_whitelistString?

Returns the value of attribute tessedit_char_whitelist.

Returns:

  • (String, nil)


1193
1194
1195
# File 'sig/types.rbs', line 1193

def tessedit_char_whitelist
  @tessedit_char_whitelist
end

#tessedit_dont_blkrej_good_wdsBoolean?

Returns the value of attribute tessedit_dont_blkrej_good_wds.

Returns:

  • (Boolean, nil)


1190
1191
1192
# File 'sig/types.rbs', line 1190

def tessedit_dont_blkrej_good_wds
  @tessedit_dont_blkrej_good_wds
end

#tessedit_dont_rowrej_good_wdsBoolean?

Returns the value of attribute tessedit_dont_rowrej_good_wds.

Returns:

  • (Boolean, nil)


1191
1192
1193
# File 'sig/types.rbs', line 1191

def tessedit_dont_rowrej_good_wds
  @tessedit_dont_rowrej_good_wds
end

#tessedit_enable_dict_correctionBoolean?

Returns the value of attribute tessedit_enable_dict_correction.

Returns:

  • (Boolean, nil)


1192
1193
1194
# File 'sig/types.rbs', line 1192

def tessedit_enable_dict_correction
  @tessedit_enable_dict_correction
end

#tessedit_use_primary_params_modelBoolean?

Returns the value of attribute tessedit_use_primary_params_model.

Returns:

  • (Boolean, nil)


1195
1196
1197
# File 'sig/types.rbs', line 1195

def tessedit_use_primary_params_model
  @tessedit_use_primary_params_model
end

#textord_space_size_is_variableBoolean?

Returns the value of attribute textord_space_size_is_variable.

Returns:

  • (Boolean, nil)


1196
1197
1198
# File 'sig/types.rbs', line 1196

def textord_space_size_is_variable
  @textord_space_size_is_variable
end

#thresholding_methodBoolean?

Returns the value of attribute thresholding_method.

Returns:

  • (Boolean, nil)


1197
1198
1199
# File 'sig/types.rbs', line 1197

def thresholding_method
  @thresholding_method
end

#use_cacheBoolean?

Returns the value of attribute use_cache.

Returns:

  • (Boolean, nil)


1187
1188
1189
# File 'sig/types.rbs', line 1187

def use_cache
  @use_cache
end

Class Method Details

.defaultTesseractConfig

Returns:



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

def self.default: () -> TesseractConfig