tesseract.ts
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

tesseract.ts

NPM version Dependency Status devDependency Status

Typescript wrapper for the tesseract.js

Stupid like potato but truly working wrapper. If you a bit sick of "Unexpected token <" issue and do not want to import file in the index.html using rawgit CDN, this package is the way to go (or you can just copy its content to your project)

Installation

npm i -S tesseract.ts tesseract.js

Usage

import {Tesseract} from "tesseract.ts";
 
// then according to the original docs/examples
Tesseract
    .recognize(myImage)
    .progress(console.log)
    .then((res: any) => {
        console.log(res);
    })
    .catch(console.error);

Package Sidebar

Install

npm i tesseract.ts

Weekly Downloads

171

Version

1.1.2

License

MIT

Unpacked Size

5.29 kB

Total Files

11

Last publish

Collaborators

  • urakozz