noc

nocr

OCR library pure JavaScript

Showing:

Popularity

Downloads/wk

19

Maintenance

No Maintenance Data Available

Package

Dependencies

5

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

nocr

Build Status

nocr is an OCR library pure JavaScript for node.js. We use ocrad.js.

Install

$ npm install nocr -S

How to use

image

Simple :

var nocr = require("nocr");
nocr.decodeFile("test/fixture/hello_world.png", function(error, data){
  console.log(data); // Hello World!
});

From Buffer:

var nocr = require("nocr");
var fs = require("fs");
var buffer = fs.readFileSync("test/fixture/hello_world.png");
nocr.decodeBuffer(buffer, function(error, data){
  console.log(data); // Hello World!
});

From Stream:

var nocr = require("nocr");
var fs = require("fs");
var stream = fs.createReadStream("test/fixture/hello_world.png");
nocr.decodeStream(stream, function(error, data){
  console.log(data); // Hello World!
});

Todo

  • JPG support
  • gif support
  • stream interface (i love pipe)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial