Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ocr-space-api-alt
Advanced tools
Fork of Dennnisk's original ocr-space-api with added support for PDF uploading. Provides an easy way to send images to the ocr.space API and get the OCR Result
Allow to access ORC.SPACE api to send images and get the result
More Details: https://ocr.space/ocrapi
IMPORTANT The OCR is provided by ocr space. I don't have anything with them, I just want to help sharing this library.
Get you API key at https://ocr.space/ocrapi ( Direct link : http://eepurl.com/bOLOcf ). Just, follow their steps.
npm install ocr-space-api --save
You can see and example at the folder example
const ocrSpaceApi = require('ocr-space-api');
var options = {
apikey: '<your_api_key_here>',
language: 'por', // Português
imageFormat: 'image/png', // Image Type (Only png ou gif is acceptable at the moment i wrote this)
isOverlayRequired: true
};
// Image file to upload
const imageFilePath = "imageFile.jpg";
// Run and wait the result
ocrSpaceApi.parseImageFromLocalFile(imageFilePath, options)
.then(function (parsedResult) {
console.log('parsedText: \n', parsedResult.parsedText);
console.log('ocrParsedResult: \n', parsedResult.ocrParsedResult);
}).catch(function (err) {
console.log('ERROR:', err);
});
por
eng
ger
ita
Default = False
Allows you to specify if the image/pdf text overlay is required. Overlay could be used to show the text over the image
FAQs
Fork of Dennnisk's original ocr-space-api with added support for PDF uploading. Provides an easy way to send images to the ocr.space API and get the OCR Result
The npm package ocr-space-api-alt receives a total of 4 weekly downloads. As such, ocr-space-api-alt popularity was classified as not popular.
We found that ocr-space-api-alt 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.