Skip to content

A Basic NodeJS api to convert images to text using tesseract

License

Notifications You must be signed in to change notification settings

evanjmg/convert-image-to-text-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCR Node - Tesseract API Example

A simple api to convert images to text Git clone this repo and: npm install

Also install the ocr engine: brew install tesseract

Run locally: npm run watch

To use:

go to postman app and do a POST request to

http://localhost:5000/api/ocr

with the body { file: 'data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAA..kJggg==' }

convert your image to base64 here https://www.base64-image.de/ and just chuck it in the body above

About

A Basic NodeJS api to convert images to text using tesseract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published