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:



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

#accelerationAccelerationConfig?

Returns the value of attribute acceleration.

Returns:



365
366
367
# File 'sig/types.rbs', line 365

def acceleration
  @acceleration
end

#auto_rotateBoolean?

Returns the value of attribute auto_rotate.

Returns:

  • (Boolean, nil)


361
362
363
# File 'sig/types.rbs', line 361

def auto_rotate
  @auto_rotate
end

#backendString?

Returns the value of attribute backend.

Returns:

  • (String, nil)


352
353
354
# File 'sig/types.rbs', line 352

def backend
  @backend
end

#backend_optionsjson_value?

Returns the value of attribute backend_options.

Returns:

  • (json_value, nil)


357
358
359
# File 'sig/types.rbs', line 357

def backend_options
  @backend_options
end

#element_configOcrElementConfig?

Returns the value of attribute element_config.

Returns:



358
359
360
# File 'sig/types.rbs', line 358

def element_config
  @element_config
end

#enabledBoolean?

Returns the value of attribute enabled.

Returns:

  • (Boolean, nil)


351
352
353
# File 'sig/types.rbs', line 351

def enabled
  @enabled
end

#languageArray[String]?

Returns the value of attribute language.

Returns:

  • (Array[String], nil)


353
354
355
# File 'sig/types.rbs', line 353

def language
  @language
end

#output_formatOutputFormat?

Returns the value of attribute output_format.

Returns:



355
356
357
# File 'sig/types.rbs', line 355

def output_format
  @output_format
end

#paddle_ocr_configjson_value?

Returns the value of attribute paddle_ocr_config.

Returns:

  • (json_value, nil)


356
357
358
# File 'sig/types.rbs', line 356

def paddle_ocr_config
  @paddle_ocr_config
end

#pipelineOcrPipelineConfig?

Returns the value of attribute pipeline.

Returns:



360
361
362
# File 'sig/types.rbs', line 360

def pipeline
  @pipeline
end

#quality_thresholdsOcrQualityThresholds?

Returns the value of attribute quality_thresholds.

Returns:



359
360
361
# File 'sig/types.rbs', line 359

def quality_thresholds
  @quality_thresholds
end

#tessdata_bytesHash[String, String]?

Returns the value of attribute tessdata_bytes.

Returns:

  • (Hash[String, String], nil)


366
367
368
# File 'sig/types.rbs', line 366

def tessdata_bytes
  @tessdata_bytes
end

#tessdata_pathString?

Returns the value of attribute tessdata_path.

Returns:

  • (String, nil)


367
368
369
# File 'sig/types.rbs', line 367

def tessdata_path
  @tessdata_path
end

#tesseract_configTesseractConfig?

Returns the value of attribute tesseract_config.

Returns:



354
355
356
# File 'sig/types.rbs', line 354

def tesseract_config
  @tesseract_config
end

#vlm_configLlmConfig?

Returns the value of attribute vlm_config.

Returns:



363
364
365
# File 'sig/types.rbs', line 363

def vlm_config
  @vlm_config
end

#vlm_fallbackVlmFallbackPolicy?

Returns the value of attribute vlm_fallback.

Returns:



362
363
364
# File 'sig/types.rbs', line 362

def vlm_fallback
  @vlm_fallback
end

#vlm_promptString?

Returns the value of attribute vlm_prompt.

Returns:

  • (String, nil)


364
365
366
# File 'sig/types.rbs', line 364

def vlm_prompt
  @vlm_prompt
end

Class Method Details

.defaultOcrConfig

Returns:



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

def self.default: () -> OcrConfig