Skip to content

yosuke-furukawa/okrabyte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

okrabyte

Build Status

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

Install

$ npm install okrabyte -S

How to use

image

Simple :

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

From Buffer:

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

From Stream:

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

Todo

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

About

OCR library pure JavaScript (using Ocrad.js)

Resources

License

Stars

Watchers

Forks

Packages

No packages published