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:



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

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:



381
382
383
# File 'sig/types.rbs', line 381

def acceleration
  @acceleration
end

#auto_rotateBoolean?

Returns the value of attribute auto_rotate.

Returns:

  • (Boolean, nil)


377
378
379
# File 'sig/types.rbs', line 377

def auto_rotate
  @auto_rotate
end

#backendString?

Returns the value of attribute backend.

Returns:

  • (String, nil)


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

def backend
  @backend
end

#backend_optionsjson_value?

Returns the value of attribute backend_options.

Returns:

  • (json_value, nil)


373
374
375
# File 'sig/types.rbs', line 373

def backend_options
  @backend_options
end

#element_configOcrElementConfig?

Returns the value of attribute element_config.

Returns:



374
375
376
# File 'sig/types.rbs', line 374

def element_config
  @element_config
end

#enabledBoolean?

Returns the value of attribute enabled.

Returns:

  • (Boolean, nil)


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

def enabled
  @enabled
end

#languageArray[String]?

Returns the value of attribute language.

Returns:

  • (Array[String], nil)


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

def language
  @language
end

#output_formatOutputFormat?

Returns the value of attribute output_format.

Returns:



371
372
373
# File 'sig/types.rbs', line 371

def output_format
  @output_format
end

#paddle_ocr_configjson_value?

Returns the value of attribute paddle_ocr_config.

Returns:

  • (json_value, nil)


372
373
374
# File 'sig/types.rbs', line 372

def paddle_ocr_config
  @paddle_ocr_config
end

#pipelineOcrPipelineConfig?

Returns the value of attribute pipeline.

Returns:



376
377
378
# File 'sig/types.rbs', line 376

def pipeline
  @pipeline
end

#quality_thresholdsOcrQualityThresholds?

Returns the value of attribute quality_thresholds.

Returns:



375
376
377
# File 'sig/types.rbs', line 375

def quality_thresholds
  @quality_thresholds
end

#tessdata_bytesHash[String, String]?

Returns the value of attribute tessdata_bytes.

Returns:

  • (Hash[String, String], nil)


382
383
384
# File 'sig/types.rbs', line 382

def tessdata_bytes
  @tessdata_bytes
end

#tessdata_pathString?

Returns the value of attribute tessdata_path.

Returns:

  • (String, nil)


383
384
385
# File 'sig/types.rbs', line 383

def tessdata_path
  @tessdata_path
end

#tesseract_configTesseractConfig?

Returns the value of attribute tesseract_config.

Returns:



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

def tesseract_config
  @tesseract_config
end

#vlm_configLlmConfig?

Returns the value of attribute vlm_config.

Returns:



379
380
381
# File 'sig/types.rbs', line 379

def vlm_config
  @vlm_config
end

#vlm_fallbackVlmFallbackPolicy?

Returns the value of attribute vlm_fallback.

Returns:



378
379
380
# File 'sig/types.rbs', line 378

def vlm_fallback
  @vlm_fallback
end

#vlm_promptString?

Returns the value of attribute vlm_prompt.

Returns:

  • (String, nil)


380
381
382
# File 'sig/types.rbs', line 380

def vlm_prompt
  @vlm_prompt
end

Class Method Details

.defaultOcrConfig

Returns:



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

def self.default: () -> OcrConfig