Skip to content

Scan food items to instantly get detailed nutritional information, track expiry dates, and check for allergens. Chat with AI to get personalized dietary advice based on your nutritional preferences and health needs.

Notifications You must be signed in to change notification settings

BENi-Aditya/BENi_AI_Nutritional_Tracker

Repository files navigation

BENi AI Nutritional Tracker App

An innovative app to scan food items, track nutritional information, expiry dates, and check for allergens. Chat with AI to get personalized dietary advice!

Nutritional Tracker App

Tech Stack

  • Python - Backend logic and AI integration
  • Flask - Web framework
  • OpenCV - Image processing and barcode scanning
  • pyzbar - Barcode decoding
  • OpenAI API - AI chat integration

How to Run

  1. Clone the repository:

    git clone https://github.com/yourusername/nutrition-tracker-app.git
  2. Navigate to the project directory:

    cd nutrition-tracker-app
  3. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # For Windows use `venv\Scripts\activate`
  4. Install the required libraries:

    pip install -r requirements.txt
  5. Create a .env file in the project root and add your API keys:

    touch .env
  6. Add the following to your .env file:

    OPENAI_API_KEY=your_openai_api_key
  7. Run the application:

    python app.py
  8. Open your web browser and navigate to:

    http://localhost:5000

Usage

  • 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.

Features

  • 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.

Need for the Idea

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.

Contributions

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

About

Scan food items to instantly get detailed nutritional information, track expiry dates, and check for allergens. Chat with AI to get personalized dietary advice based on your nutritional preferences and health needs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published