cselester/Rooftop_Solar_Calculator
0
Solar Rooftop Analyzer
Interactive tool for analyzing rooftop solar potential using AI. Upload a satellite or aerial image to get:
- Usable rooftop area calculation
- Solar energy production estimates
- Return on investment analysis
- AI-generated recommendations
Architecture
The application follows a modular architecture with distinct processing stages:
graph TD
A[Upload Image] --> B[Image Processing]
B --> C[Rooftop Segmentation]
C --> D[Area Calculation]
D --> E[Solar Potential Analysis]
E --> F[ROI Calculation]
F --> G[LLM Summary]
G --> H[Display Results]
subgraph Image Processing
B --> B1[Convert to PIL]
B1 --> B2[Preprocess Image]
end
subgraph Analysis Pipeline
E --> E1[Calculate kWh/year]
F --> F1[Estimate Costs]
F1 --> F2[Calculate Payback]
end
subgraph AI Integration
C --> C1[OpenRouter Vision API]
G --> G1[OpenRouter LLM API]
endProcess Flow
- Image Upload
- User uploads satellite/aerial image
- Image is validated and preprocessed
- Rooftop Analysis
- Image sent to OpenRouter Vision API
- AI segments usable rooftop area
- Area calculation in square meters
- Energy Calculation
- Solar potential estimated based on area
- Local solar irradiance factors applied
- Annual kWh production calculated
- Financial Analysis
- Installation costs estimated
- Energy savings projected
- ROI and payback period calculated
- AI Summary
- Data sent to OpenRouter LLM
- Generates human-friendly analysis
- Provides recommendations
Features
- 🏠 Rooftop area segmentation
- ⚡ Energy production calculation
- 💰 ROI estimation
- 🤖 AI-powered analysis
- 📊 Interactive visualization
How to Use
- Upload a clear satellite/aerial image of a rooftop
- Click "Analyze Rooftop"
- View results and recommendations
Tech Stack
- Gradio for the web interface
- OpenRouter API for vision analysis
- Python for calculations and processing
