Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yosuke-furukawa/okrabyte
OCR library pure JavaScript (using Ocrad.js)
https://github.com/yosuke-furukawa/okrabyte
Last synced: 12 days ago
JSON representation
OCR library pure JavaScript (using Ocrad.js)
- Host: GitHub
- URL: https://github.com/yosuke-furukawa/okrabyte
- Owner: yosuke-furukawa
- License: mit
- Created: 2014-12-21T02:45:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T23:03:15.000Z (15 days ago)
- Last Synced: 2024-10-30T01:47:00.257Z (15 days ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 129
- Watchers: 9
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
okrabyte
============[![Build Status](https://travis-ci.org/yosuke-furukawa/okrabyte.svg?branch=master)](https://travis-ci.org/yosuke-furukawa/okrabyte)
okrabyte is an OCR library pure JavaScript for node.js.
We use [ocrad.js](https://github.com/antimatter15/ocrad.js/).Install
---------```shell
$ npm install okrabyte -S
```How to use
---------![image](test/fixture/hello_world.png)
Simple :
```javascript
var okrabyte = require("okrabyte");
okrabyte.decodeFile("test/fixture/hello_world.png", function(error, data){
console.log(data); // Hello World!
});
```From Buffer:
```javascript
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:
```javascript
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)