
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
The OCR solution for Node.js developers.
OCR Xpress for Node.js enables you to add OCR capabilities to your applications.
node -v
x64 6.8 or greater and npm.gcc --version
4.8.1 or greater.g++ -v
4.8.1 or greater.java -version
x64 JRE 1.8node -v
x64 6.8 or greater and npm.java -version
x64 JRE 1.8python -V
2.7.xCommon Tools for C++
during the installation process of Visual Studio 2015.NOTE: Be sure the path you're installing from does not contain a SPACE in the file path. This may cause issues when installing or registering the product.
npm config set python python2.7
npm config set msvs_version 2015
npm install ocr
cd node_modules/ocr && npm run register
cd node_modules/ocr && npm run register -- youremail@domain.com
var ocr = require('ocr');
// Set default values.
var params = {
input: './node_modules/ocr/samples/images/color.bmp',
output: './out.txt',
format: 'text'
};
// OCR the input image and output result to text file given by params.output
ocr.recognize(params, function(err, document){
if(err)
console.error(err);
else{
//output the document object:
console.log(document);
}
});
The Results Manager is a collection of "get" functions that returns an array of various result objects.
For example, to get the text of the first word recognized in the document:
var textLine = document.getWords()[0].text;
Resulting objects return more than just text. The following provides access to characters, words, and the bounding box of the first line of text, inside the first region of text recognized in the document:
var textLine = document.getRegions()[0].getTextLines()[0];
It is also possible to control the output of the result by adjusting recognition parameters. For example,
var params = {
output: './out.pdf',
format: 'pdf'
};
There are many other OCR capabilities such as page rotation, multiple supported languages, recognition confidence, and much more.
OCR Xpress also includes detailed API documentation, a Getting Started guide, and code samples
FAQs
Accusoft OCR Xpress
The npm package ocr receives a total of 14 weekly downloads. As such, ocr popularity was classified as not popular.
We found that ocr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.