Built a MERN stack web application to perform OCR (Optical Character Recognition) on Aadhaar cards. The application will allow users to upload images of the front and back of an Aadhaar card, process these images through an API, and display the extracted information on the frontend.
- created front end app
- tailwind css added
- added react drop zone
- added image preview
- show errors
- created api to send data to backend
- created server using express
- created route and controllers
- install "ocr-space-api-wrapper
- created api id for ocr space from https://ocr.space/
- configured ocr space and pass images to data from both front and back images
- extracted necessary details from extracted data
- sed data back to frontend
- display the api response in frond end
- made front end responsive
OCR_SPACE_API_KEY=K89062791088957
POST
/api/upload
{
method: "POST",
body: formDataToSend,
}
To deploy this project run
npm run deploy
Go to the project directory
cd server
Install dependencies
npm install
Start the server
npm run start
or
nodemon
Go to the project directory
cd client
Install dependencies
npm install
Start the client
npm run start
Client: React, TailwindCSS
Server: Node version v16.20.0, Express,
https://github.com/RahulPSkadumeni/Optical-character-recognition-App-
https://unrivaled-capybara-70ee56.netlify.app/
mobile view