kaelzhang / node-ocr

Optical character recognition for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ocr NPM version Build Status Dependency Status

Optical character recognition for node.js

Installation

npm install ocr

Synopsis

ocr
.language('arabic', 'french')
.recognize(path_to_image, function(err, text){
	if ( err ) {
        console.error(err);   
    } else {
        console.log(text);
    }
});

Usage

Custom Font-face

Define a custom font-face of a certain language to improve the accuracy.

ocr
.language('chinese')
.fontFace(path_to_font_file)
.recognize(path_to_image, callback)

About

Optical character recognition for node.js

License:Other


Languages

Language:JavaScript 100.0%