An innovative system designed to optimize energy consumption in campus buildings by monitoring real-time classroom occupancy. Using OpenCV and a Persistence Coordinate System, EcoCampus automatically controls lights, fans, and air conditioners to reduce energy waste and promote sustainability.
- Occupancy Detection: Tracks classroom usage with computer vision.
- Energy Optimization: Automatically manages lighting, HVAC, and other energy systems.
- Real-Time Dashboard: Monitors energy usage and savings dynamically.
- Customizability: Adapts to different campus layouts and configurations.
- Sustainability Focus: Helps institutions reduce energy waste and costs.
- Python 3.8 or higher
- A computer with a webcam (or mobile device using DroidCam for video feed)
- A smartphone with the DroidCam app installed for external video feed setup.
-
Clone this repository:
git clone https://github.com/HarshilMalhotra/Eco-Campus.git
cd EcoCampus
-
Install the required dependencies:
pip install -r requirements.txt
-
Download the DroidCam app on your smartphone (available on iOS and Android). Start the app and note the IP address displayed.
-
Open main.py and set the IP address provided by DroidCam:
video_source = "http://<DroidCam_IP>:<Port>/video"
EcoCampus/
βββ esp_calibration.py # ESP Calibration Sequencing Script
βββ main.py # Main Flask Application Server
βββ requirements.txt # Python Dependencies
βββ templates/ # HTML Templates for Dashboard
βββ static/ # Static Files (CSS, JS, Images)
βββ README.md # Project Documentation
-
Calibrate ESP Device:
Run the ESP calibration script before starting the main application.python esp_calibration.py
-
Start the Flask Server: Lunch the Flask application.
python main.py
-
Access the application in your browser at:
- πΌ Portfolio: www.harshil.co
- π± LinkedIn: harshilmalhotra
- π» GitHub: Harshilmalhotra
Thank you to all hackathon organizers and teammates for contributing to the success of this project!
Let me know if youβd like to tweak any section or add more details!