Class: Xberg::OcrConfig
- Inherits:
-
Object
- Object
- Xberg::OcrConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#acceleration ⇒ AccelerationConfig?
readonly
Returns the value of attribute acceleration.
-
#auto_rotate ⇒ Boolean
readonly
Returns the value of attribute auto_rotate.
-
#backend ⇒ String
readonly
Returns the value of attribute backend.
-
#backend_options ⇒ String?
readonly
Returns the value of attribute backend_options.
-
#element_config ⇒ OcrElementConfig?
readonly
Returns the value of attribute element_config.
-
#enabled ⇒ Boolean
readonly
Returns the value of attribute enabled.
-
#language ⇒ Array[String]
readonly
Returns the value of attribute language.
-
#output_format ⇒ OutputFormat?
readonly
Returns the value of attribute output_format.
-
#paddle_ocr_config ⇒ String?
readonly
Returns the value of attribute paddle_ocr_config.
-
#pipeline ⇒ OcrPipelineConfig?
readonly
Returns the value of attribute pipeline.
-
#quality_thresholds ⇒ OcrQualityThresholds?
readonly
Returns the value of attribute quality_thresholds.
-
#security_limits ⇒ SecurityLimits?
readonly
Returns the value of attribute security_limits.
-
#tessdata_bytes ⇒ Hash[String, String]?
readonly
Returns the value of attribute tessdata_bytes.
-
#tessdata_path ⇒ String?
readonly
Returns the value of attribute tessdata_path.
-
#tesseract_config ⇒ TesseractConfig?
readonly
Returns the value of attribute tesseract_config.
-
#vlm_config ⇒ LlmConfig?
readonly
Returns the value of attribute vlm_config.
-
#vlm_fallback ⇒ VlmFallbackPolicy
readonly
Returns the value of attribute vlm_fallback.
-
#vlm_prompt ⇒ String?
readonly
Returns the value of attribute vlm_prompt.
Instance Method Summary collapse
-
#initialize ⇒ OcrConfig
constructor
A new instance of OcrConfig.
Constructor Details
#initialize ⇒ OcrConfig
Returns a new instance of OcrConfig.
1692 |
# File 'sig/types.rbs', line 1692 def initialize: (?enabled: bool, ?backend: String, ?language: Array[String], ?tesseract_config: TesseractConfig, ?output_format: OutputFormat, ?paddle_ocr_config: String, ?backend_options: String, ?element_config: OcrElementConfig, ?quality_thresholds: OcrQualityThresholds, ?pipeline: OcrPipelineConfig, ?auto_rotate: bool, ?vlm_fallback: VlmFallbackPolicy, ?vlm_config: LlmConfig, ?vlm_prompt: String, ?acceleration: AccelerationConfig, ?security_limits: SecurityLimits, ?tessdata_bytes: Hash[String, String], ?tessdata_path: String) -> void |
Instance Attribute Details
#acceleration ⇒ AccelerationConfig? (readonly)
Returns the value of attribute acceleration.
1687 1688 1689 |
# File 'sig/types.rbs', line 1687 def acceleration @acceleration end |
#auto_rotate ⇒ Boolean (readonly)
Returns the value of attribute auto_rotate.
1683 1684 1685 |
# File 'sig/types.rbs', line 1683 def auto_rotate @auto_rotate end |
#backend ⇒ String (readonly)
Returns the value of attribute backend.
1674 1675 1676 |
# File 'sig/types.rbs', line 1674 def backend @backend end |
#backend_options ⇒ String? (readonly)
Returns the value of attribute backend_options.
1679 1680 1681 |
# File 'sig/types.rbs', line 1679 def end |
#element_config ⇒ OcrElementConfig? (readonly)
Returns the value of attribute element_config.
1680 1681 1682 |
# File 'sig/types.rbs', line 1680 def element_config @element_config end |
#enabled ⇒ Boolean (readonly)
Returns the value of attribute enabled.
1673 1674 1675 |
# File 'sig/types.rbs', line 1673 def enabled @enabled end |
#language ⇒ Array[String] (readonly)
Returns the value of attribute language.
1675 1676 1677 |
# File 'sig/types.rbs', line 1675 def language @language end |
#output_format ⇒ OutputFormat? (readonly)
Returns the value of attribute output_format.
1677 1678 1679 |
# File 'sig/types.rbs', line 1677 def output_format @output_format end |
#paddle_ocr_config ⇒ String? (readonly)
Returns the value of attribute paddle_ocr_config.
1678 1679 1680 |
# File 'sig/types.rbs', line 1678 def paddle_ocr_config @paddle_ocr_config end |
#pipeline ⇒ OcrPipelineConfig? (readonly)
Returns the value of attribute pipeline.
1682 1683 1684 |
# File 'sig/types.rbs', line 1682 def pipeline @pipeline end |
#quality_thresholds ⇒ OcrQualityThresholds? (readonly)
Returns the value of attribute quality_thresholds.
1681 1682 1683 |
# File 'sig/types.rbs', line 1681 def quality_thresholds @quality_thresholds end |
#security_limits ⇒ SecurityLimits? (readonly)
Returns the value of attribute security_limits.
1688 1689 1690 |
# File 'sig/types.rbs', line 1688 def security_limits @security_limits end |
#tessdata_bytes ⇒ Hash[String, String]? (readonly)
Returns the value of attribute tessdata_bytes.
1689 1690 1691 |
# File 'sig/types.rbs', line 1689 def tessdata_bytes @tessdata_bytes end |
#tessdata_path ⇒ String? (readonly)
Returns the value of attribute tessdata_path.
1690 1691 1692 |
# File 'sig/types.rbs', line 1690 def tessdata_path @tessdata_path end |
#tesseract_config ⇒ TesseractConfig? (readonly)
Returns the value of attribute tesseract_config.
1676 1677 1678 |
# File 'sig/types.rbs', line 1676 def tesseract_config @tesseract_config end |
#vlm_config ⇒ LlmConfig? (readonly)
Returns the value of attribute vlm_config.
1685 1686 1687 |
# File 'sig/types.rbs', line 1685 def vlm_config @vlm_config end |
#vlm_fallback ⇒ VlmFallbackPolicy (readonly)
Returns the value of attribute vlm_fallback.
1684 1685 1686 |
# File 'sig/types.rbs', line 1684 def vlm_fallback @vlm_fallback end |
#vlm_prompt ⇒ String? (readonly)
Returns the value of attribute vlm_prompt.
1686 1687 1688 |
# File 'sig/types.rbs', line 1686 def vlm_prompt @vlm_prompt end |