Giter Club home page Giter Club logo

tesseract-deno's Introduction

Tesseract Deno

Deno wrapper for Tesseract OCR Engine CLI.

Usage

You can import from either:

You can configure default path for Tesseract using setPath function or TESSERACT_PATH env var.

Docs

Documentation is available here.

Example

import { recognize } from "https://deno.land/x/tesseract/mod.ts";

const output = await recognize("path/to/image.png");
console.log("Output:", output);

Contributing

You're always welcome to contribute!

  • We use deno fmt to format out files.

License

Check LICENSE for more info.

Copyright 2021 @ DjDeveloperr

tesseract-deno's People

Contributors

djdeveloperr avatar motoso avatar xernisfy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tesseract-deno's Issues

no option for configfile

@DjDeveloperr

I didn't see any option for configfile, would you please add this option.
as per tesseract ocr manual, there are many options i.e pdf, txt, tsv, etc.

Thanks

Bug: psm flag and its value must be passed seperately

Hi,

first of all, thanks for your deno module, I'm very happy with it.

While fiddling around with the options, I encountered a bug with the --psm flag.
When I set the psm property in the options of the recognize function, I got this error message:

Error, unknown command line argument '--psm 7'

I printed out the arguments that were send to Deno.run and at first glance, there was no issue with it:

[ "tesseract", "stdin", "stdout", "--psm 7" ]

I researched a bit and found out, that --psm and 7[or whatever value] must be sent as seperate arguments to Deno.run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.