Module: Xberg::_OcrBackend

Defined in:
sig/types.rbs

Instance Method Summary collapse

Instance Method Details

#backend_typeOcrBackendType

Returns:



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

def backend_type: () -> OcrBackendType

#process_imageExtractedDocument

Optional methods the bridge calls when the object defines them (the trait's Rust default behavior applies otherwise): process_image_file, supported_languages, supports_table_detection, supports_document_processing, emits_structured_markdown, process_document. The lifecycle hooks initialize/shutdown are likewise optional (note: Ruby constructors are private and never count as the lifecycle hook).

Parameters:

Returns:



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

def process_image: (String image_bytes, OcrConfig config) -> ExtractedDocument

#supports_languageBoolean

Parameters:

  • lang (String)

Returns:

  • (Boolean)


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

def supports_language: (String lang) -> bool