Class: Xberg::TesseractConfig
- Inherits:
-
Object
- Object
- Xberg::TesseractConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#classify_use_pre_adapted_templates ⇒ Boolean?
Returns the value of attribute classify_use_pre_adapted_templates.
-
#enable_table_detection ⇒ Boolean?
Returns the value of attribute enable_table_detection.
-
#language ⇒ Array[String]?
Returns the value of attribute language.
-
#language_model_ngram_on ⇒ Boolean?
Returns the value of attribute language_model_ngram_on.
-
#min_confidence ⇒ Float?
Returns the value of attribute min_confidence.
-
#oem ⇒ Integer?
Returns the value of attribute oem.
-
#output_format ⇒ String?
Returns the value of attribute output_format.
-
#preprocessing ⇒ ImagePreprocessingConfig?
Returns the value of attribute preprocessing.
-
#psm ⇒ Integer?
Returns the value of attribute psm.
-
#table_column_threshold ⇒ Integer?
Returns the value of attribute table_column_threshold.
-
#table_min_confidence ⇒ Float?
Returns the value of attribute table_min_confidence.
-
#table_row_threshold_ratio ⇒ Float?
Returns the value of attribute table_row_threshold_ratio.
-
#tessedit_char_blacklist ⇒ String?
Returns the value of attribute tessedit_char_blacklist.
-
#tessedit_char_whitelist ⇒ String?
Returns the value of attribute tessedit_char_whitelist.
-
#tessedit_dont_blkrej_good_wds ⇒ Boolean?
Returns the value of attribute tessedit_dont_blkrej_good_wds.
-
#tessedit_dont_rowrej_good_wds ⇒ Boolean?
Returns the value of attribute tessedit_dont_rowrej_good_wds.
-
#tessedit_enable_dict_correction ⇒ Boolean?
Returns the value of attribute tessedit_enable_dict_correction.
-
#tessedit_use_primary_params_model ⇒ Boolean?
Returns the value of attribute tessedit_use_primary_params_model.
-
#textord_space_size_is_variable ⇒ Boolean?
Returns the value of attribute textord_space_size_is_variable.
-
#thresholding_method ⇒ Boolean?
Returns the value of attribute thresholding_method.
-
#use_cache ⇒ Boolean?
Returns the value of attribute use_cache.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TesseractConfig
constructor
A new instance of TesseractConfig.
Constructor Details
#initialize ⇒ TesseractConfig
Returns a new instance of TesseractConfig.
1239 |
# File 'sig/types.rbs', line 1239
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_templates ⇒ Boolean?
Returns the value of attribute classify_use_pre_adapted_templates.
1228 1229 1230 |
# File 'sig/types.rbs', line 1228 def classify_use_pre_adapted_templates @classify_use_pre_adapted_templates end |
#enable_table_detection ⇒ Boolean?
Returns the value of attribute enable_table_detection.
1223 1224 1225 |
# File 'sig/types.rbs', line 1223 def enable_table_detection @enable_table_detection end |
#language ⇒ Array[String]?
Returns the value of attribute language.
1217 1218 1219 |
# File 'sig/types.rbs', line 1217 def language @language end |
#language_model_ngram_on ⇒ Boolean?
Returns the value of attribute language_model_ngram_on.
1229 1230 1231 |
# File 'sig/types.rbs', line 1229 def language_model_ngram_on @language_model_ngram_on end |
#min_confidence ⇒ Float?
Returns the value of attribute min_confidence.
1221 1222 1223 |
# File 'sig/types.rbs', line 1221 def min_confidence @min_confidence end |
#oem ⇒ Integer?
Returns the value of attribute oem.
1220 1221 1222 |
# File 'sig/types.rbs', line 1220 def oem @oem end |
#output_format ⇒ String?
Returns the value of attribute output_format.
1219 1220 1221 |
# File 'sig/types.rbs', line 1219 def output_format @output_format end |
#preprocessing ⇒ ImagePreprocessingConfig?
Returns the value of attribute preprocessing.
1222 1223 1224 |
# File 'sig/types.rbs', line 1222 def preprocessing @preprocessing end |
#psm ⇒ Integer?
Returns the value of attribute psm.
1218 1219 1220 |
# File 'sig/types.rbs', line 1218 def psm @psm end |
#table_column_threshold ⇒ Integer?
Returns the value of attribute table_column_threshold.
1225 1226 1227 |
# File 'sig/types.rbs', line 1225 def table_column_threshold @table_column_threshold end |
#table_min_confidence ⇒ Float?
Returns the value of attribute table_min_confidence.
1224 1225 1226 |
# File 'sig/types.rbs', line 1224 def table_min_confidence @table_min_confidence end |
#table_row_threshold_ratio ⇒ Float?
Returns the value of attribute table_row_threshold_ratio.
1226 1227 1228 |
# File 'sig/types.rbs', line 1226 def table_row_threshold_ratio @table_row_threshold_ratio end |
#tessedit_char_blacklist ⇒ String?
Returns the value of attribute tessedit_char_blacklist.
1234 1235 1236 |
# File 'sig/types.rbs', line 1234 def tessedit_char_blacklist @tessedit_char_blacklist end |
#tessedit_char_whitelist ⇒ String?
Returns the value of attribute tessedit_char_whitelist.
1233 1234 1235 |
# File 'sig/types.rbs', line 1233 def tessedit_char_whitelist @tessedit_char_whitelist end |
#tessedit_dont_blkrej_good_wds ⇒ Boolean?
Returns the value of attribute tessedit_dont_blkrej_good_wds.
1230 1231 1232 |
# File 'sig/types.rbs', line 1230 def tessedit_dont_blkrej_good_wds @tessedit_dont_blkrej_good_wds end |
#tessedit_dont_rowrej_good_wds ⇒ Boolean?
Returns the value of attribute tessedit_dont_rowrej_good_wds.
1231 1232 1233 |
# File 'sig/types.rbs', line 1231 def tessedit_dont_rowrej_good_wds @tessedit_dont_rowrej_good_wds end |
#tessedit_enable_dict_correction ⇒ Boolean?
Returns the value of attribute tessedit_enable_dict_correction.
1232 1233 1234 |
# File 'sig/types.rbs', line 1232 def tessedit_enable_dict_correction @tessedit_enable_dict_correction end |
#tessedit_use_primary_params_model ⇒ Boolean?
Returns the value of attribute tessedit_use_primary_params_model.
1235 1236 1237 |
# File 'sig/types.rbs', line 1235 def tessedit_use_primary_params_model @tessedit_use_primary_params_model end |
#textord_space_size_is_variable ⇒ Boolean?
Returns the value of attribute textord_space_size_is_variable.
1236 1237 1238 |
# File 'sig/types.rbs', line 1236 def textord_space_size_is_variable @textord_space_size_is_variable end |
#thresholding_method ⇒ Boolean?
Returns the value of attribute thresholding_method.
1237 1238 1239 |
# File 'sig/types.rbs', line 1237 def thresholding_method @thresholding_method end |
#use_cache ⇒ Boolean?
Returns the value of attribute use_cache.
1227 1228 1229 |
# File 'sig/types.rbs', line 1227 def use_cache @use_cache end |
Class Method Details
.default ⇒ TesseractConfig
1240 |
# File 'sig/types.rbs', line 1240
def self.default: () -> TesseractConfig
|