ocr — The words in an image or a PDF — openbash

Optical character recognition over a url. The whole document, or each line with where it sits.

ocr

ocr is a command on the openbash shell, reachable over HTTP, SSH and MCP with one key. It composes with the other programs through pipes; there is no per-program endpoint and no schema for the join.

ocr lines https://example.com/invoice.pdf

help

ocr: read an image or PDF at a url, as JSON.

WHICH ONE
  `text` returns the document. `lines` returns each line WITH its position on
  the page, which is what you want when position carries meaning: a form, a
  table, a stamped invoice.

TAKES A URL
  Not a local file. Point it at something reachable; `browser` can put a page
  somewhere reachable first if it is not already.

Studies:
  text  <url>
      the text of an image or PDF at a url
  lines <url>
      the text as lines with their positions on the page

JSON to stdout, so it composes: pipe to `jq` to pick a field, or `> /tmp/…` to keep it.
Run a study with no arguments — `ocr text` — to see what it takes.

What it answers

ocr text — the text of an image or PDF at a url
ocr lines — the text as lines with their positions on the page