A beautiful, modern web application that uses your device's camera to capture text from images using OCR (Optical Character Recognition) technology. Built with vanilla JavaScript and styled with modern CSS gradients and animations.
- 📱 Mobile-First Design: Fully responsive and optimized for all devices
- 🎨 Beautiful UI: Modern gradient backgrounds, glassmorphism effects, and smooth animations
- 📷 Camera Integration: Uses device camera with fallback support for different camera types
- 🔄 Real-time OCR: Powered by Tesseract.js for accurate text recognition
- 📋 One-Click Copy: Easily copy extracted text to clipboard
- ⚡ Fast & Lightweight: No external dependencies except Tesseract.js CDN
- 🌈 Modern Styling: Gradient backgrounds, hover effects, and micro-interactions
- Clone or download the project files
- Open
index.htmlin your web browser - Allow camera permissions when prompted
- Start capturing text from images, documents, or any text-containing surface!
- Grant Camera Access: Click "Allow" when your browser asks for camera permissions
- Position Text: Point your camera at any text you want to capture
- Capture: Click the "📷 Capture Text" button
- Wait for Processing: The app will scan and extract text using OCR
- Copy Text: Click "📋 Copy Text" to copy the extracted text to your clipboard
- HTML5: Semantic markup with modern standards
- CSS3: Advanced styling with gradients, animations, and responsive design
- Vanilla JavaScript: No frameworks, pure ES6+ JavaScript
- Tesseract.js: OCR library for text recognition
- MediaDevices API: Camera access and control
- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 11+
- ✅ Edge 79+
- ✅ Mobile browsers (iOS Safari, Chrome Mobile)
- Responsive Layout: Works perfectly on desktop, tablet, and mobile
- Glassmorphism: Modern frosted glass effect on the main container
- Gradient Backgrounds: Beautiful purple-blue gradient with overlay effects
- Smooth Animations: Slide-up entrance animation and hover effects
- Touch-Friendly: Optimized button sizes and spacing for mobile devices
- Modern Typography: Clean, readable fonts with proper hierarchy
/
├── index.html # Main HTML file
├── style.css # All styling and responsive design
├── main.js # Application logic and camera handling
├── .gitignore # Git ignore rules
└── README.md # This file
- Camera Management: Intelligent camera selection and fallback handling
- OCR Processing: Real-time text recognition with progress indication
- Responsive Design: Mobile-first approach with breakpoints at 768px, 480px, and 320px
- Modern CSS: CSS Grid, Flexbox, gradients, and animations
Simply open index.html in any modern web browser. No build process required!
- Upload all files to your web server
- Ensure HTTPS is enabled (required for camera access)
- Access via your domain
This project can be easily deployed to GitHub Pages:
- Push to a GitHub repository
- Enable Pages in repository settings
- Access via
https://yourusername.github.io/repository-name
- Camera Permissions: Only requests access when needed
- Local Processing: All OCR processing happens in your browser
- No Data Storage: No images or text are stored on external servers
- HTTPS Required: Camera access requires secure connection
- Ensure HTTPS is enabled (required for camera access)
- Check browser permissions in settings
- Try refreshing the page and re-granting permissions
- Ensure good lighting conditions
- Hold camera steady when capturing
- Make sure text is clearly visible and in focus
- Try different angles or distances
- Grant camera permissions in browser settings
- Ensure you're using a recent version of your mobile browser
- Try different browsers if issues persist
This project is open source and available under the MIT License.
Contributions are welcome! Feel free to:
- Report bugs or issues
- Suggest new features
- Improve the styling or user experience
- Enhance mobile responsiveness
If you encounter any issues or have questions:
- Check the troubleshooting section above
- Ensure your browser supports the required features
- Try with a different device or browser
Made with ❤️ using modern web technologies