A modern web application built with React, TypeScript, and Vite that converts images to text using Tesseract.js OCR engine.
- π· Image to text conversion using Tesseract.js
- πΎ Local storage of conversion history using JSON Server
- π Real-time search through converted texts
- π Copy text and JSON data to clipboard
- β¬οΈ Download extracted text as files
- π¨ Modern UI with Bootstrap and React Bootstrap
- π± Responsive design for all devices
- π Real-time conversion progress tracking
- π― Multiple view modes (Text/JSON)
- π Fast and efficient processing
- React 18.2.0
- TypeScript
- Vite 5.2.0
- Bootstrap 5.3.3
- React Bootstrap 2.10.2
- Tesseract.js 5.1.0
- JSON Server (for data persistence)
- React Icons
- Axios for API calls
- Node.js (v14 or higher)
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/yourusername/image-to-text-converter.git
cd image-to-text-converter
- Install dependencies:
npm install
- Start the development server and JSON server:
npm start
This will start:
- Frontend at http://localhost:5173
- JSON Server at http://localhost:3001
- Click "Choose Image" to select an image file
- Wait for the OCR processing to complete
- View the extracted text in real-time
- Copy, download, or view the JSON format of the extracted text
- Search through your conversion history
- View, download, or delete previous conversions
image-to-text-converter/
βββ src/
β βββ App.tsx # Main application component
β βββ main.tsx # Application entry point
β βββ index.css # Global styles
β βββ assets/ # Static assets
βββ public/ # Public assets
βββ db.json # JSON server database
npm start
- Start both frontend and backend serversnpm run dev
- Start frontend development servernpm run build
- Build for productionnpm run server
- Start JSON servernpm run preview
- Preview production buildnpm run lint
- Run ESLint
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Tesseract.js for OCR functionality
- React Bootstrap for UI components
- JSON Server for backend mock