LastBite AI is an AI-powered food rescue platform built in 24 hours at ScarletHacks. It detects soon-to-expire food items using barcode/OCR scanning, predicts shelf life with ML, and connects users with donation centers using smart geolocation-based routing—all to reduce food waste and empower community giving.
Food waste is a significant issue that impacts the environment and community. LastBite AI aims to tackle this problem by leveraging AI and machine learning to detect food items that are nearing expiration and facilitate their donation to local centers.
- Barcode/OCR Scanning: Detects and reads barcodes and text on food labels.
- Shelf Life Prediction: Uses machine learning to predict the remaining shelf life of food items.
- Smart Routing: Connects users with nearby donation centers using geolocation-based routing.
- User-Friendly Interface: Easy-to-use interface for both individuals and organizations.
- Backend: Python
- Frontend: JavaScript, React
- Styling: CSS, HTML
- Scripts: Shell
- Ensure you have Python and Node.js installed on your system.
-
Clone the repository:
git clone https://github.com/Gunjaomprakash/lastbite-ai.git cd lastbite-ai -
Navigate to the backend directory and install dependencies:
cd backend pip install -r requirements.txt -
Run the backend server:
python app.py
-
Navigate to the frontend directory and install dependencies:
cd ../frontend npm install -
Run the frontend server:
npm start
To use LastBite AI, follow these steps:
- Open your browser and navigate to
http://localhost:3000to access the frontend. - Use the barcode scanner to detect food items.
- View the predicted shelf life and suggested donation centers.
We welcome contributions! Please read our contributing guidelines for more details.
This project is licensed under the MIT License - see the LICENSE file for details.