1.0.3 • Published 11 months ago

replit-tesseract-ocr v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Tesseract OCR for Node.js (Replit)

Installation

First, you need to install Tesseract After you've installed Tesseract, you can go installing the npm-package:

npm install replit-tesseract-ocr

Usage

const tesseract = require("replit-tesseract-ocr")

const config = {
  lang: "eng", // default
  oem: 0,
  psm: 3,
}

async function main() {
  try {
    const text = await tesseract.recognize("image.jpg", config)
    console.log("Result:", text)
  } catch (error) {
    console.log(error.message)
  }
}

main()
1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago