Welcome to EcoStep, the AI-powered detective that sniffs out your carbon footprint from receipts! Ever wondered how much your shopping habits contribute to the planet's well-being (or destruction)? EcoStep analyzes your receipts, calculates carbon emissions, and gives you tailored suggestions to save the environment—without making you feel like a guilty penguin.
Think of it as a fusion of Sherlock Holmes and Captain Planet—but in Python! 🕵️♂️🌍

You can access the project on GitHub:
EcoStep on GitHub
Clone the repo like a pro hacker:
git clone https://github.com/Tech-Avinya-07/EcoStep.git cd EcoStep
Install the required dependencies:
pip install -r requirements.txt
Update WatsonX credentials in these files:
chatbot_main.pyreceipt_processing.pyreport_generator.pyadd your api key here with your actual key. No key, no AI magic! 🪄)Run the app and watch the magic happen!
Run the chatbot interface and start asking eco-friendly questions!
streamlit run streamlit_chatbot.py
💬 Example: "How much CO₂e did my last grocery trip generate?"
Want to upload your receipts and see how much they’re harming the planet?
streamlit run streamlit_ocr.py
📸 Upload your receipt → Watch as EcoStep does its AI wizardry → Get your carbon footprint insights!
Turn raw data into an official-looking environmental report (great for showing off at parties 🥳).
python report_generator.py
📄 Your report will be saved as report_carbon_footprint_user.docx.
IBM WatsonX is the AI brain behind this eco-venture. It helps:
| Module | Purpose |
|---|---|
chatbot_main.py | Handles WatsonX AI queries and responses. |
database.py | Manages SQLite storage of receipt data. |
databasetowordconverter.py | Converts database entries into Word documents. |
image_preprocessing.py | Enhances images for OCR processing. |
ocr_main.py | Runs the full receipt-to-data pipeline. |
ocr_processing.py | Extracts text from images using PaddleOCR. |
pdf_processing.py | Converts PDFs into processable images. |
receipt_processing.py | Analyzes receipts, calculates carbon footprints. |
report_generator.py | Creates reports with charts and sustainability advice. |
streamlit_chatbot.py | Streamlit-based chatbot interface. |
streamlit_ocr.py | Streamlit-based OCR and receipt processing. |
EcoStep is your friendly AI-powered eco-accountant, keeping track of your carbon sins while helping you atone for them. Whether you’re a sustainability nerd or just want to brag about your green lifestyle, EcoStep has your back!
Now go forth and reduce that footprint! 🦶💚