FreshTrack AI
"Scan Fast. Track Smarter. Waste Never." A smart expiry date tracker that uses OCR and barcode scanning to auto-capture product details and expiry dates — helping you manage inventory, reduce waste.
Created on 12th April 2025
•
FreshTrack AI
"Scan Fast. Track Smarter. Waste Never." A smart expiry date tracker that uses OCR and barcode scanning to auto-capture product details and expiry dates — helping you manage inventory, reduce waste.
The problem FreshTrack AI solves
Keeping track of product expiry dates is something most people either forget or find too tedious to manage. Whether at home or in a business, expired products often go unnoticed until it's too late — leading to unnecessary waste, potential health risks, and even financial losses.
Manually noting down expiry dates or maintaining spreadsheets isn't practical, especially when dealing with multiple products or bulk inventory.
This project automates expiry tracking using OCR and barcode scanning. Instead of entering details manually, users can simply scan the product and let the system fetch both the product name and expiry date in seconds.
It helps:
Prevent accidental use of expired items
Reduce waste through timely alerts
Improve inventory accuracy
Save time and avoid the mental burden of manual tracking
Whether you're managing your kitchen, a small store, or warehouse stock, this tool makes expiry tracking simple, reliable, and stress-free.
Challenges we ran into
One of the biggest challenges was extracting clean and accurate expiry dates using OCR (Tesseract.js). Since product packaging varies a lot — fonts, layouts, lighting, and image quality — the OCR engine sometimes picked up wrong dates or missed them completely.
To solve this, we:
Preprocessed the images using contrast enhancement and resizing for better OCR performance
Used regular expressions to extract date-like patterns (e.g. DD/MM/YYYY) and filter out irrelevant text
Added fallback logic to let the user manually confirm or input the date if OCR fails
Another hurdle was syncing barcode data with expiry information. Barcodes don’t usually contain expiry data, so we had to combine OCR output with user prompts to get the complete picture.
Through trial, testing, and a bit of jugaad, we made it reliable enough for daily use.
Tracks Applied (1)
Groq track
Groq

