Liking cljdoc? Tell your friends :D

pdfplumber.ocr

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.
raw docstring

page-image->textclj

(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.
sourceraw docstring

PageImageToTextcljprotocol

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-imageclj

(text-from-page-image engine page-image)
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close