How acdeena1994/smart-energy-management-system-using-yolov8-and-iot works
This is an intelligent-building occupancy and appliance-control system. Its main workflow acquires an IP-camera stream, uses YOLOv8 to count people, applies automatic thresholds, and sends appliance commands to an ESP32; counts are also persisted. The Flask application exposes count, stream, device, and network functions, with Socket.IO updates visible in the sampled source. README-described capabilities include delayed switching and relay control, but the excerpts do not establish their precise implementation or the template’s client-side wiring.
Main entry points: main.py Occupancy Count · index.html Web Interface · human_count.ino ESP32 Firmware · headcount.db Count Database
Components 12
Occupancy Detection
- Stream and YOLO
main.py - Occupancy Count
main.py
Building Control
- Automatic Decisions
main.py - Device State
main.py
Application Services
- Count Database
headcount.db - Flask and Socket.IO
main.py - Web Interface
templates/index.html
Controller Hardware
- Lights and Fans
- ESP32 Firmware
human_count/human_count.ino - ESP32 Controller
Other components
- IP Camera
- Building Operator
Connections 11
- IP Camera → Stream and YOLO: streams video
README.md - Stream and YOLO → Occupancy Count: counts people
main.py - Occupancy Count → Flask and Socket.IO: emits updates
main.py - Occupancy Count → Count Database: writes counts
main.py - Occupancy Count → Automatic Decisions: supplies count
main.py - Automatic Decisions → Device State: updates state
main.py - Automatic Decisions → ESP32 Controller: sends commands
main.py - ESP32 Controller → ESP32 Firmware: controls remotely
README.md - ESP32 Firmware → Lights and Fans: switches relays
README.md - Building Operator → Web Interface: uses interface
- Web Interface → Flask and Socket.IO: requests services