Class: Xberg::OcrConfig
- Inherits:
-
Object
- Object
- Xberg::OcrConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
-
#auto_rotate ⇒ Boolean?
Returns the value of attribute auto_rotate.
-
#backend ⇒ String?
Returns the value of attribute backend.
-
#backend_options ⇒ json_value?
Returns the value of attribute backend_options.
-
#element_config ⇒ OcrElementConfig?
Returns the value of attribute element_config.
-
#enabled ⇒ Boolean?
Returns the value of attribute enabled.
-
#language ⇒ Array[String]?
Returns the value of attribute language.
-
#output_format ⇒ OutputFormat?
Returns the value of attribute output_format.
-
#paddle_ocr_config ⇒ json_value?
Returns the value of attribute paddle_ocr_config.
-
#pipeline ⇒ OcrPipelineConfig?
Returns the value of attribute pipeline.
-
#quality_thresholds ⇒ OcrQualityThresholds?
Returns the value of attribute quality_thresholds.
-
#tessdata_bytes ⇒ Hash[String, String]?
Returns the value of attribute tessdata_bytes.
-
#tessdata_path ⇒ String?
Returns the value of attribute tessdata_path.
-
#tesseract_config ⇒ TesseractConfig?
Returns the value of attribute tesseract_config.
-
#vlm_config ⇒ LlmConfig?
Returns the value of attribute vlm_config.
-
#vlm_fallback ⇒ VlmFallbackPolicy?
Returns the value of attribute vlm_fallback.
-
#vlm_prompt ⇒ String?
Returns the value of attribute vlm_prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ OcrConfig
constructor
A new instance of OcrConfig.
Constructor Details
#initialize ⇒ OcrConfig
Returns a new instance of OcrConfig.
369 |
# File 'sig/types.rbs', line 369
def initialize: (?enabled: bool, ?backend: String, ?language: Array[String], ?tesseract_config: TesseractConfig, ?output_format: OutputFormat, ?paddle_ocr_config: json_value, ?backend_options: json_value, ?element_config: OcrElementConfig, ?quality_thresholds: OcrQualityThresholds, ?pipeline: OcrPipelineConfig, ?auto_rotate: bool, ?vlm_fallback: VlmFallbackPolicy, ?vlm_config: LlmConfig, ?vlm_prompt: String, ?acceleration: AccelerationConfig, ?tessdata_bytes: Hash[String, String], ?tessdata_path: String) -> void
|
Instance Attribute Details
#acceleration ⇒ AccelerationConfig?
Returns the value of attribute acceleration.
365 366 367 |
# File 'sig/types.rbs', line 365 def acceleration @acceleration end |
#auto_rotate ⇒ Boolean?
Returns the value of attribute auto_rotate.
361 362 363 |
# File 'sig/types.rbs', line 361 def auto_rotate @auto_rotate end |
#backend ⇒ String?
Returns the value of attribute backend.
352 353 354 |
# File 'sig/types.rbs', line 352 def backend @backend end |
#backend_options ⇒ json_value?
Returns the value of attribute backend_options.
357 358 359 |
# File 'sig/types.rbs', line 357 def @backend_options end |
#element_config ⇒ OcrElementConfig?
Returns the value of attribute element_config.
358 359 360 |
# File 'sig/types.rbs', line 358 def element_config @element_config end |
#enabled ⇒ Boolean?
Returns the value of attribute enabled.
351 352 353 |
# File 'sig/types.rbs', line 351 def enabled @enabled end |
#language ⇒ Array[String]?
Returns the value of attribute language.
353 354 355 |
# File 'sig/types.rbs', line 353 def language @language end |
#output_format ⇒ OutputFormat?
Returns the value of attribute output_format.
355 356 357 |
# File 'sig/types.rbs', line 355 def output_format @output_format end |
#paddle_ocr_config ⇒ json_value?
Returns the value of attribute paddle_ocr_config.
356 357 358 |
# File 'sig/types.rbs', line 356 def paddle_ocr_config @paddle_ocr_config end |
#pipeline ⇒ OcrPipelineConfig?
Returns the value of attribute pipeline.
360 361 362 |
# File 'sig/types.rbs', line 360 def pipeline @pipeline end |
#quality_thresholds ⇒ OcrQualityThresholds?
Returns the value of attribute quality_thresholds.
359 360 361 |
# File 'sig/types.rbs', line 359 def quality_thresholds @quality_thresholds end |
#tessdata_bytes ⇒ Hash[String, String]?
Returns the value of attribute tessdata_bytes.
366 367 368 |
# File 'sig/types.rbs', line 366 def tessdata_bytes @tessdata_bytes end |
#tessdata_path ⇒ String?
Returns the value of attribute tessdata_path.
367 368 369 |
# File 'sig/types.rbs', line 367 def tessdata_path @tessdata_path end |
#tesseract_config ⇒ TesseractConfig?
Returns the value of attribute tesseract_config.
354 355 356 |
# File 'sig/types.rbs', line 354 def tesseract_config @tesseract_config end |
#vlm_config ⇒ LlmConfig?
Returns the value of attribute vlm_config.
363 364 365 |
# File 'sig/types.rbs', line 363 def vlm_config @vlm_config end |
#vlm_fallback ⇒ VlmFallbackPolicy?
Returns the value of attribute vlm_fallback.
362 363 364 |
# File 'sig/types.rbs', line 362 def vlm_fallback @vlm_fallback end |
#vlm_prompt ⇒ String?
Returns the value of attribute vlm_prompt.
364 365 366 |
# File 'sig/types.rbs', line 364 def vlm_prompt @vlm_prompt end |