Skip to content

onkaryadav2541/EcoChain_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 EcoChain AI: Supply Chain Carbon Calculator

Status AI Tech Focus License

EcoChain AI is an intelligent logistics tool that helps companies automate carbon footprint analysis. It replaces manual spreadsheet work by using AI to read PDF invoices and Geospatial Engines to calculate precise shipment routes.


🚀 Key Features

  • 📄 AI Invoice Extraction: Uses Google Gemini 1.5 to extract Origin, Destination, Weight, and Mode from raw PDF files.
  • 🗺️ Smart Routing Logic:
    • Trucks: Queries OSRM (Open Source Routing Machine) for real road distances.
    • Planes/Ships: Calculates Geodesic (Great Circle) distance for air/sea routes.
  • 📊 Live Visualization: Displays the shipment route on an interactive map.
  • 🌱 ISO-Compliant Math: Calculates CO2e emissions using mode-specific emission factors.

🛠️ Technology Stack

  • Frontend: Streamlit (Python)
  • Backend: FastAPI
  • AI Model: Google Gemini 1.5 Flash
  • Mapping: Geopy, OSRM API, Pandas
  • Deployment: Localhost

📦 Installation & Setup

  1. Clone the Repository

    git clone [https://github.com/onkaryadav2541/EcoChain_AI.git](https://github.com/onkaryadav2541/EcoChain_AI.git)
    cd EcoChain_AI
  2. Install Dependencies

    pip install -r requirements.txt
  3. Run the Backend (Terminal 1)

    uvicorn main:app --reload
  4. Run the Frontend (Terminal 2)

    streamlit run app.py

📸 How It Works

  1. Upload: User drags & drops a logistics invoice (PDF).
  2. Analyze: AI extracts the city names and weight.
  3. Route: The app calculates the exact km (Road vs Air) and shows it on a map.
  4. Result: The precise Carbon Footprint (kg CO2) is displayed.

Author: Onkar | Built during the 10-Day AI Engineer Challenge

About

AI-powered supply chain carbon calculator. Automates logistics analysis using Google Gemini and Geodesic mapping.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages