Ecomitra is a smart waste reporting system that allows users to capture waste images using a Flutter mobile app, automatically geotag the location, and send reports to a Flask-based backend. The web dashboard then displays reported waste locations using an interactive map.
Waste mismanagement is a growing issue in urban areas. Many communities struggle to report and track waste efficiently. Ecomitra simplifies the process by allowing users to capture waste images with location data and submit reports for proper action.
✅ Flutter Mobile App – Capture and upload waste images with GPS location.
✅ Flask Backend – Handles API requests, stores data, and processes images.
✅ Interactive Web Dashboard – Displays reports with images and maps.
✅ Leaflet.js Mapping – Shows reported waste locations for easy tracking.
✅ Google Maps API – Converts coordinates to readable addresses.
Before running Ecomitra, ensure you have the following:
📌 Backend Requirements Python 3.9+
Flask == 2.2.2
Flask-CORS == 3.0.10
Pillow == 9.2.0
Werkzeug == 2.2.2
📌 Frontend Requirements HTML, CSS, JavaScript
Leaflet.js (for mapping)
Bootstrap 5
📌 Other Tools Google Maps API (for address conversion)
Geolocation API (for user location tracking)
Install dependencies:
The repository for the EcoMitra WebClient with the backend, frontend and flask files can be found here.
pip install flask flask-cors pillow werkzeugpython app.pyFlask will start at http://192.168.x.x:5000/
Download Flutter SDK from: Flutter Installation Guide
Ensure Flutter is installed by running:
flutter doctor✅ Install VS Code or Android Studio
✅ Install the Flutter & Dart extensions in VS Code
📱 Option 1: Use Android Emulator
- Open Android Studio
- Go to AVD Manager (Android Virtual Device Manager)
- Create & run a Pixel 5 (or any device) with API level 30+
📱 Option 2: Use a Physical Android Device
- Enable USB Debugging in Developer Options
- Connect phone via USB cable
git clone https://github.com/your-repo/ecomitra.git
cd ecomitra/flutter_appflutter pub getflutter run1️⃣ Open the Flutter app
2️⃣ Tap "Scan Image"
3️⃣ Capture a photo of the waste
4️⃣ Click "Send" to upload
5️⃣ The image and GPS location are sent to the Flask backend
6️⃣ View the report in the Web Dashboard
Simply open index.html in a browser to view reported waste locations.
curl -X POST -F "image=@path/to/test/image" -F "latitude=12.34" -F "longitude=56.78" http://192.168.x.x:5000/uploadecomitra/
│── backend/ # Flask API (Python)
│ ├── app.py # Main backend script
│ ├── uploads/ # Stores uploaded images
│ └── requirements.txt # Backend dependencies
│
│── flutter_app/ # Flutter Mobile App
│ ├── lib/
│ │ ├── main.dart # Flutter entry point
│ │ ├── scan_screen.dart # Image capture & upload
│ ├── pubspec.yaml # Flutter dependencies
│
│── web_dashboard/ # Web Dashboard
│ ├── index.html # Frontend UI
│ ├── script.js # Handles API calls
│ ├── styles.css # Styling
│
└── README.md # Documentation
- Danish – Flutter & Backend Developer
- Varun – Web Devleloper
- Rahul – UI/UX Designer
This project is licensed under the GNU License and can be found here.
🔹 AI-based waste classification for better waste analysis.
🔹 Push notifications for authorities to respond quickly.
🔹 Mobile app integration with Google Maps for live tracking.
🔹 Allowing users to add comments to the images they send.
We welcome contributions! Fork the repo, make changes, and submit a pull request.
🚀 Ecomitra - Making Waste Management Smarter!