Skip to content

A simple next application made for ESCAP United Nation. This application uses Gemini API to list all objects in a picture and list down thier respective carbon footprints.

License

Notifications You must be signed in to change notification settings

2105789/FootPrinto

Repository files navigation

FootPrinto - Your Personal Carbon Footprint Analyzer

FootPrinto Home Page

🌱 About FootPrinto

FootPrinto is an innovative web application that leverages AI technology to analyze images and determine the carbon footprint of objects captured within them. By simply uploading or capturing an image, users can gain valuable insights into the environmental impact of everyday items, helping them make more sustainable choices.

✨ Key Features

  • 📸 Multiple Image Input Methods:

    • Upload images directly from your device
    • Capture real-time photos using your device's camera
    • Choose from our curated collection of sample images
  • 🔄 Smart Camera Controls: Seamlessly switch between front and rear cameras on mobile devices

  • 🧠 Advanced AI Analysis: Powered by Google Gemini API for accurate object recognition and carbon impact assessment

  • 📊 Comprehensive Reporting: Detailed breakdown of carbon footprint data with actionable insights

  • 🌍 Environmental Impact Visualization: Visual representations to better understand your carbon footprint

📊 Detailed Reporting

FootPrinto Report Page

🛠️ Technologies Used

  • Next.js: React framework for production-ready applications
  • React: Frontend library for building user interfaces
  • TypeScript: Static typing for more reliable code
  • Tailwind CSS: Utility-first CSS framework for rapid UI development
  • Google Gemini API: Advanced AI for image analysis and carbon footprint calculation

🚀 Getting Started

  1. Clone the repository

    git clone https://github.com/yourusername/footprinto.git
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file with your Google Gemini API key:

    NEXT_PUBLIC_GEMINI_API_KEY=your_api_key_here
    
  4. Run the development server:

    npm run dev
    
  5. Open http://localhost:3000 in your browser

📱 Usage Guide

  1. Choose your preferred method for image input:

    • 📤 Upload an image from your device
    • 📷 Capture a new image using your camera
    • 🖼️ Select from our sample images
  2. Wait momentarily while our AI analyzes the image

  3. Review your detailed carbon footprint report with:

    • Identified objects and their environmental impact
    • Suggestions for reducing your carbon footprint
    • Comparative analysis with sustainable alternatives

📋 Mobile Camera Troubleshooting

If you experience issues with camera functionality on mobile devices:

  • Ensure camera permissions are granted to the application
  • Try stopping and restarting the camera
  • Some devices may require multiple attempts to switch between cameras

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A simple next application made for ESCAP United Nation. This application uses Gemini API to list all objects in a picture and list down thier respective carbon footprints.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages