Deno wrapper for Tesseract OCR Engine CLI.
You can import from either:
- Main: https://raw.githubusercontent.com/DjDeveloperr/Tesseract-Deno/main/mod.ts
- Stable: https://deno.land/x/tesseract/mod.ts
You can configure default path for Tesseract using setPath
function or
TESSERACT_PATH
env var.
Documentation is available here.
import { recognize } from "https://deno.land/x/tesseract/mod.ts";
const output = await recognize("path/to/image.png");
console.log("Output:", output);
You're always welcome to contribute!
- We use
deno fmt
to format out files.
Check LICENSE for more info.
Copyright 2021 @ DjDeveloperr