Skip to content

sumedhghaisas/text-detector

 
 

Repository files navigation

Build Status Code Climate

Dependency Status devDependency Status peerDependency Status

text-detector

native node module for scene text recognition using tesseract and openCV

text-detector is a native nodejs module for extracting text from real-life photographs and scenes.

How to use

var textDetector = require('text-detector');

// synchronous API

// detects text in the image at the given path.
var text = textDetector.getTextSync('/sample/path/to/a/file');

// skip the region detection
var text = textDetector.getTextSync('/sample/path/to/a/file', false);

// asynchronous API

// detects text in the image at the given path.
textDetector.getText('/sample/path/to/a/file', function (err, text) {
    // do something with the text here
});

// skip the region detection
textDetector.getText('/sample/path/to/a/file', true, function (err, text) {
    // do something with the text here
});

About

native node module for scene text recognition using tesseract and openCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.4%
  • C++ 27.6%
  • Python 15.3%
  • C 0.7%