Convert uploaded image and convert it into text using Tesseract.js.
git clone https://github.com/asepmaulanaismail/image-to-text-nodejs-microservice
cd image-to-text-nodejs-microservice/
node server.js
or
git clone https://github.com/asepmaulanaismail/image-to-text-nodejs-microservice
cd image-to-text-nodejs-microservice/
nodemon server.js
git clone https://github.com/asepmaulanaismail/image-to-text-nodejs-microservice
cd image-to-text-nodejs-microservice/
sudo docker build -t jwt-auth-nodejs:latest .
sudo docker run -d -p 8080:8080 jwt-auth-nodejs
Convert uploaded file into text.
POST: localhost:8080/api/tesseract
Params (Multipart/form-data):
+ name: "img", type: "File", required: "true"
Response:
{
"status": true,
"text": "It was the best of\ntimes, it was the worst\nof times, it was the age\nofwisdom, it was the\nage of foolishness“.\n\n",
"confidence": 89
}