Module: Xberg::_OcrBackend

Defined in:
sig/types.rbs

Instance Method Summary collapse

Instance Method Details

#backend_typeenum_OcrBackendType



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

def backend_type: () -> enum_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, confidence_semantics, page_orientation_handling, process_document. The lifecycle hooks initialize/shutdown are likewise optional (note: Ruby constructors are private and never count as the lifecycle hook).



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

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

#supports_languageBoolean



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

def supports_language: (String lang) -> bool