A test NPM package to use the Nanonets OCR API.
Do not use in production.
NPM package: https://www.npmjs.com/package/nanonets-ocr
> npm install nanonets-ocrconst ocr = require("nanonets-ocr");await ocr.getModelDetails(apiKey, modelId);await ocr.extractData(apiKey, modelId, fileURL);NOTE:
- The model is assumed to have already been created on the Nanonets platform.
- Example usage: HarshKapadia2/nanonets-ocr-app
- 'Buffer variable not found' error: Run
npm install bufferin the project and addif (typeof Buffer === "undefined") global.Buffer = require("buffer").Buffer;at the head of the main file. (More details.)