Class: Xberg::OcrConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOcrConfig

Returns a new instance of OcrConfig.

Parameters:



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

#accelerationAccelerationConfig? (readonly)

Returns the value of attribute acceleration.

Returns:



1687
1688
1689
# File 'sig/types.rbs', line 1687

def acceleration
  @acceleration
end

#auto_rotateBoolean (readonly)

Returns the value of attribute auto_rotate.

Returns:

  • (Boolean)


1683
1684
1685
# File 'sig/types.rbs', line 1683

def auto_rotate
  @auto_rotate
end

#backendString (readonly)

Returns the value of attribute backend.

Returns:

  • (String)


1674
1675
1676
# File 'sig/types.rbs', line 1674

def backend
  @backend
end

#backend_optionsString? (readonly)

Returns the value of attribute backend_options.

Returns:

  • (String, nil)


1679
1680
1681
# File 'sig/types.rbs', line 1679

def backend_options
  @backend_options
end

#element_configOcrElementConfig? (readonly)

Returns the value of attribute element_config.

Returns:



1680
1681
1682
# File 'sig/types.rbs', line 1680

def element_config
  @element_config
end

#enabledBoolean (readonly)

Returns the value of attribute enabled.

Returns:

  • (Boolean)


1673
1674
1675
# File 'sig/types.rbs', line 1673

def enabled
  @enabled
end

#languageArray[String] (readonly)

Returns the value of attribute language.

Returns:

  • (Array[String])


1675
1676
1677
# File 'sig/types.rbs', line 1675

def language
  @language
end

#output_formatOutputFormat? (readonly)

Returns the value of attribute output_format.

Returns:



1677
1678
1679
# File 'sig/types.rbs', line 1677

def output_format
  @output_format
end

#paddle_ocr_configString? (readonly)

Returns the value of attribute paddle_ocr_config.

Returns:

  • (String, nil)


1678
1679
1680
# File 'sig/types.rbs', line 1678

def paddle_ocr_config
  @paddle_ocr_config
end

#pipelineOcrPipelineConfig? (readonly)

Returns the value of attribute pipeline.

Returns:



1682
1683
1684
# File 'sig/types.rbs', line 1682

def pipeline
  @pipeline
end

#quality_thresholdsOcrQualityThresholds? (readonly)

Returns the value of attribute quality_thresholds.

Returns:



1681
1682
1683
# File 'sig/types.rbs', line 1681

def quality_thresholds
  @quality_thresholds
end

#security_limitsSecurityLimits? (readonly)

Returns the value of attribute security_limits.

Returns:



1688
1689
1690
# File 'sig/types.rbs', line 1688

def security_limits
  @security_limits
end

#tessdata_bytesHash[String, String]? (readonly)

Returns the value of attribute tessdata_bytes.

Returns:

  • (Hash[String, String], nil)


1689
1690
1691
# File 'sig/types.rbs', line 1689

def tessdata_bytes
  @tessdata_bytes
end

#tessdata_pathString? (readonly)

Returns the value of attribute tessdata_path.

Returns:

  • (String, nil)


1690
1691
1692
# File 'sig/types.rbs', line 1690

def tessdata_path
  @tessdata_path
end

#tesseract_configTesseractConfig? (readonly)

Returns the value of attribute tesseract_config.

Returns:



1676
1677
1678
# File 'sig/types.rbs', line 1676

def tesseract_config
  @tesseract_config
end

#vlm_configLlmConfig? (readonly)

Returns the value of attribute vlm_config.

Returns:



1685
1686
1687
# File 'sig/types.rbs', line 1685

def vlm_config
  @vlm_config
end

#vlm_fallbackVlmFallbackPolicy (readonly)

Returns the value of attribute vlm_fallback.

Returns:



1684
1685
1686
# File 'sig/types.rbs', line 1684

def vlm_fallback
  @vlm_fallback
end

#vlm_promptString? (readonly)

Returns the value of attribute vlm_prompt.

Returns:

  • (String, nil)


1686
1687
1688
# File 'sig/types.rbs', line 1686

def vlm_prompt
  @vlm_prompt
end