Module: Xberg::_OcrBackend
- Defined in:
- sig/types.rbs
Instance Method Summary collapse
- #backend_type ⇒ OcrBackendType
-
#process_image ⇒ ExtractedDocument
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.
- #supports_language ⇒ Boolean
Instance Method Details
#backend_type ⇒ OcrBackendType
2515 |
# File 'sig/types.rbs', line 2515
def backend_type: () -> OcrBackendType
|
#process_image ⇒ ExtractedDocument
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).
2513 |
# File 'sig/types.rbs', line 2513
def process_image: (String image_bytes, OcrConfig config) -> ExtractedDocument
|
#supports_language ⇒ Boolean
2514 |
# File 'sig/types.rbs', line 2514
def supports_language: (String lang) -> bool
|