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.
npm install ocr-space-api --save
You can see and example at the folder
const ocrSpaceApi = ;var options =apikey: '<your_api_key_here>'language: 'por' // PortuguêsimageFormat: 'image/png' // Image Type (Only png ou gif is acceptable at the moment i wrote this)isOverlayRequired: true;// Image file to uploadconst imageFilePath = "imageFile.jpg";// Run and wait the resultocrSpaceApi;
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