Need help with okrabyte?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

yosuke-furukawa
131 Stars 6 Forks MIT License 37 Commits 7 Opened issues

Description

OCR library pure JavaScript (using Ocrad.js)

Services available

!
?

Need anything else?

Contributors list

# 25
netlify
TypeScr...
GraphQL
javascr...
14 commits
# 235,831
Node.js
CSS
node
D
9 commits

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)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.