An innovative app to scan food items, track nutritional information, expiry dates, and check for allergens. Chat with AI to get personalized dietary advice!
- Python - Backend logic and AI integration
- Flask - Web framework
- OpenCV - Image processing and barcode scanning
- pyzbar - Barcode decoding
- OpenAI API - AI chat integration
-
Clone the repository:
git clone https://github.com/yourusername/nutrition-tracker-app.git
-
Navigate to the project directory:
cd nutrition-tracker-app
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # For Windows use `venv\Scripts\activate`
-
Install the required libraries:
pip install -r requirements.txt
-
Create a
.env
file in the project root and add your API keys:touch .env
-
Add the following to your
.env
file:OPENAI_API_KEY=your_openai_api_key
-
Run the application:
python app.py
-
Open your web browser and navigate to:
http://localhost:5000
- Enter your personal dietary information, including allergens and nutritional preferences.
- Scan the barcode of a food item using your phone's camera.
- View detailed nutritional information, expiry dates, and allergens in a well-organized format.
- Chat with the AI to get personalized dietary advice based on the scanned data.
- Scan barcodes to fetch detailed nutritional information, expiry dates, and allergens.
- Track your dietary intake and manage your nutritional goals.
- Chat with AI to get personalized dietary advice based on scanned data.
In today's fast-paced world, managing one's diet and ensuring food safety can be challenging. The Nutrition Tracker App aims to simplify this by providing an easy way to scan food items, instantly access vital information, and get personalized advice, ensuring a healthier lifestyle without the constant need for professional consultations.
We welcome contributions from the community to make this project better! Feel free to fork the repository, make your changes, and submit a pull request. Please ensure your contributions align with the project's goals and adhere to our coding standards.
Here's how you can contribute:
- Fork the repository: https://github.com/BENi-Aditya/BENi-AI-Nutritional-Tracker
- Create a new branch:
git checkout -b feature-branch-name
- Make your changes and commit them:
git commit -m 'Description of your changes'
- Push to the branch:
git push origin feature-branch-name
- Submit a pull request