okrabyte | OCR library pure JavaScript | Computer Vision library
kandi X-RAY | okrabyte Summary
kandi X-RAY | okrabyte Summary
OCR library pure JavaScript (using Ocrad.js)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of okrabyte
okrabyte Key Features
okrabyte Examples and Code Snippets
Community Discussions
Trending Discussions on okrabyte
QUESTION
I am using a package called Okrabyte to extract words from each image file in a folder. The result should be a new array containing the extracted text that I can use in other functions.
When I run this:
...ANSWER
Answered 2018-Jan-09 at 18:20If your map function is async then it's returning a promise, so your mapped array is in fact an array of promises. But you can then use a Promise.all
to get the resolved values of that array.
Additionally, you're trying to await the call to fs.readdir
and okrabyte.decodeBuffer
, which both accept a callback and do not return a promise. So if you want to use a promise there you'll have to wrap them in a promise constructor manually.
Here's how I would do it:
QUESTION
I have the usecase to read the text from the PAN Card. Ideally the application should have the screen to scan the PAN Card and the text should be extracted from there. The extracted texts will be auto populated on the further screens.
I have read about tesseract npm module, but still didn't have the clue where to start as there is no compete blogs available for this usecase over the internet. Also tried the npm module - okrabyte, this is not giving 100% result. Any guidance or help would be required.
I tried AWS Textract service as well. This is not helping to parse the PAN CARD as the extracted results were completely different.
...ANSWER
Answered 2019-Jun-07 at 07:28You need to use OCR to achieve this. There are various options for doing this. Tesseract is open source. I hope this blog helps you get started with tesseract on nodejs.
You can use OCR apis from different cloud providers to achieve this as well. Example: Microsoft Cognitive Services Vision API, Abbyy Cloud, etc.
Also, improving the quality of your image helps in extracting text with higher accuracy. Personally, I've seen big difference between 200 dpi images vs 600 dpi images.
Hope this helps!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install okrabyte
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page