Class: Xberg::OcrConfig

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOcrConfig

Returns a new instance of OcrConfig.

Parameters:



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

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

#accelerationAccelerationConfig?

Returns the value of attribute acceleration.

Returns:



410
411
412
# File 'sig/types.rbs', line 410

def acceleration
  @acceleration
end

#auto_rotateBoolean?

Returns the value of attribute auto_rotate.

Returns:

  • (Boolean, nil)


406
407
408
# File 'sig/types.rbs', line 406

def auto_rotate
  @auto_rotate
end

#backendString?

Returns the value of attribute backend.

Returns:

  • (String, nil)


397
398
399
# File 'sig/types.rbs', line 397

def backend
  @backend
end

#backend_optionsjson_value?

Returns the value of attribute backend_options.

Returns:

  • (json_value, nil)


402
403
404
# File 'sig/types.rbs', line 402

def backend_options
  @backend_options
end

#element_configOcrElementConfig?

Returns the value of attribute element_config.

Returns:



403
404
405
# File 'sig/types.rbs', line 403

def element_config
  @element_config
end

#enabledBoolean?

Returns the value of attribute enabled.

Returns:

  • (Boolean, nil)


396
397
398
# File 'sig/types.rbs', line 396

def enabled
  @enabled
end

#languageArray[String]?

Returns the value of attribute language.

Returns:

  • (Array[String], nil)


398
399
400
# File 'sig/types.rbs', line 398

def language
  @language
end

#output_formatOutputFormat?

Returns the value of attribute output_format.

Returns:



400
401
402
# File 'sig/types.rbs', line 400

def output_format
  @output_format
end

#paddle_ocr_configjson_value?

Returns the value of attribute paddle_ocr_config.

Returns:

  • (json_value, nil)


401
402
403
# File 'sig/types.rbs', line 401

def paddle_ocr_config
  @paddle_ocr_config
end

#pipelineOcrPipelineConfig?

Returns the value of attribute pipeline.

Returns:



405
406
407
# File 'sig/types.rbs', line 405

def pipeline
  @pipeline
end

#quality_thresholdsOcrQualityThresholds?

Returns the value of attribute quality_thresholds.

Returns:



404
405
406
# File 'sig/types.rbs', line 404

def quality_thresholds
  @quality_thresholds
end

#tessdata_bytesHash[String, String]?

Returns the value of attribute tessdata_bytes.

Returns:

  • (Hash[String, String], nil)


411
412
413
# File 'sig/types.rbs', line 411

def tessdata_bytes
  @tessdata_bytes
end

#tessdata_pathString?

Returns the value of attribute tessdata_path.

Returns:

  • (String, nil)


412
413
414
# File 'sig/types.rbs', line 412

def tessdata_path
  @tessdata_path
end

#tesseract_configTesseractConfig?

Returns the value of attribute tesseract_config.

Returns:



399
400
401
# File 'sig/types.rbs', line 399

def tesseract_config
  @tesseract_config
end

#vlm_configLlmConfig?

Returns the value of attribute vlm_config.

Returns:



408
409
410
# File 'sig/types.rbs', line 408

def vlm_config
  @vlm_config
end

#vlm_fallbackVlmFallbackPolicy?

Returns the value of attribute vlm_fallback.

Returns:



407
408
409
# File 'sig/types.rbs', line 407

def vlm_fallback
  @vlm_fallback
end

#vlm_promptString?

Returns the value of attribute vlm_prompt.

Returns:

  • (String, nil)


409
410
411
# File 'sig/types.rbs', line 409

def vlm_prompt
  @vlm_prompt
end

Class Method Details

.defaultOcrConfig

Returns:



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

def self.default: () -> OcrConfig