A Flask-based web application that uses PaddleOCR to detect and extract prices from images of market boards in multiple Indian languages.
- 🔍 Real-time price detection from images
- 🌐 Support for 10 Indian languages:
- English
- Hindi (हिंदी)
- Marathi (मराठी)
- Gujarati (ગુજરાતી)
- Punjabi (ਪੰਜਾਬੀ)
- Bengali (বাংলা)
- Tamil (தமிழ்)
- Telugu (తెలుగు)
- Kannada (ಕನ್ನಡ)
- Malayalam (മലയാളം)
- 📱 Mobile-friendly interface with camera support
- 📊 Historical price tracking with CSV storage
- 🖼️ Drag-and-drop image upload
- 📝 Raw text extraction display
- Clone the repository:
git clone [repository-url]
cd Hackaton_Frint- Install the required dependencies:
pip install -r requirements.txt- Start the Flask application:
python app.py- Open your web browser and navigate to:
http://localhost:5000
-
Upload an image using one of these methods:
- Drag and drop an image onto the upload area
- Click the upload area to select a file
- Use the "Take Photo" button to capture using your device's camera
-
Select your preferred language from the dropdown menu
-
View the results:
- Detected prices will be displayed in a list format
- Raw extracted text is shown below the prices
- Historical data is stored in
market_prices.csv
Hackaton_Frint/
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── market_prices.csv # Historical price data
├── uploads/ # Temporary image storage
└── templates/
└── index.html # Frontend interface
- Python 3.8+
- Flask 2.3.3
- PaddleOCR 2.9.1
- PaddlePaddle 2.5.1
- NumPy 1.26.4
- Pandas
- Other dependencies listed in requirements.txt
The application stores detected prices in market_prices.csv with the following format:
- Product: Name of the item
- Price: Detected price in INR
- Date: Date of detection (YYYY-MM-DD)
- Chrome 80+
- Firefox 75+
- Safari 13+
- Edge 80+
- Mobile browsers with camera support
Feel free to open issues and pull requests for:
- Adding support for more languages
- Improving price detection accuracy
- Enhancing the user interface
- Adding new features
[Your License Here]