A complete OCR (Optical Character Recognition) application with Node.js backend and HTML frontend.
- Upload images and extract text
- Node.js + Express backend
- Tesseract.js OCR engine
- Drag and drop support
- Copy extracted text to clipboard
- Real-time server status
- Node.js (v14 or higher)
- npm (comes with Node.js)
- Navigate to the backend folder:
cd backend- Install dependencies:
npm install- Start the server:
npm start- Open
frontend/index.htmlin your browser
POST /api/extract-text- Upload image and extract textGET /api/health- Check server status
ocr-fullstack/
├── backend/
│ ├── server.js # Express server
│ ├── package.json # Dependencies
│ └── uploads/ # Temporary upload folder
└── frontend/
└── index.html # Frontend interface
- Make sure the backend server is running (npm start)
- Open frontend/index.html in your browser
- Upload an image with text
- Click "Extract Text"
- Copy the extracted text
- Backend: Node.js, Express, Multer, Tesseract.js
- Frontend: HTML, JavaScript, Tailwind CSS
- OCR Engine: Tesseract.js