A dependency-free seam for caller-supplied OCR engines.
This namespace does not implement OCR. An engine receives a PageImage and
returns the text representation chosen by its caller.
A dependency-free seam for caller-supplied OCR engines. This namespace does not implement OCR. An engine receives a `PageImage` and returns the text representation chosen by its caller.
(page-image->text engine page-image)Invoke a PageImageToText engine on page-image.
Throws ex-info with :pdfplumber/error :invalid-ocr-engine when engine
does not implement the protocol.
Invoke a `PageImageToText` engine on `page-image`. Throws `ex-info` with `:pdfplumber/error :invalid-ocr-engine` when `engine` does not implement the protocol.
Convert a rasterized PageImage to caller-defined text.
Implementations own the OCR engine, its configuration, and its return type. The library deliberately provides no OCR engine or OCR dependency.
Convert a rasterized `PageImage` to caller-defined text. Implementations own the OCR engine, its configuration, and its return type. The library deliberately provides no OCR engine or OCR dependency.
(text-from-page-image engine page-image)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |