This project is a backend program built using Node.js, Express, Tesseract JS, Google Vision AI, Morgan, Multer, and CORS. It extracts data from images of client's Aadhar Card, PAN Card, and Driving License, and outputs client details in JSON format.
Website is Live on : https://imgtojson.netlify.app/
This is a free Glitch Server which takes 30s-50s to getting alive and then it ready to work.
To get started, you'll need to install Node.js and npm on your machine. Then, clone this repository and install the dependencies:
git clone https://github.com/almightycoder4/Img2Text.git
cd Img2Text
Switch to the Server folder.
cd Server
npm install
nodemon index.jsYou'll also need to set up credentials for Google Vision AI, and update the .env file with your credentials:
PRIVATE_KEY="YOUR GOOGLE VISON API PRIVATE KEY"
CLIENT_EMAIL="YOUR GOOGLE VISON API CLIENT_EMAIL ID"Server will start on http://localhost:3035/
Pan Card:- http://localhost:3035/readpan
Adhar Card:- http://localhost:3035/readAadhar
Driving License Card:- http://localhost:3035/readDL
Other Text Images:- http://localhost:3035/readother
Create a Request select POST option and then select body.
Change none to form-data and put key as "image" the select image file from local disk.

This project was made possible thanks to the following technologies:
- Node.js
- Express
- Tesseract.js
- Sharp
- Google Vision AI
- Morgan
- Multer
- CORS

