Skip to content

asepmaulanaismail/image-to-text-nodejs-microservice

Repository files navigation

Image-to-Text API Microservice with NodeJS

Convert uploaded image and convert it into text using Tesseract.js.

How to Use

Running with Node & Nodemon

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

Running with Docker

See how to install docker.

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

API:

Tesseract

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
}

About

Convert uploaded image and convert it into text using Tesseract.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published