CoolFace
Apppublic

cselester/Rooftop_Solar_Calculator

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

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:

mermaid
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]
    end

Process Flow

  1. 1.Image Upload
  • —User uploads satellite/aerial image
  • —Image is validated and preprocessed
  1. 1.Rooftop Analysis
  • —Image sent to OpenRouter Vision API
  • —AI segments usable rooftop area
  • —Area calculation in square meters
  1. 1.Energy Calculation
  • —Solar potential estimated based on area
  • —Local solar irradiance factors applied
  • —Annual kWh production calculated
  1. 1.Financial Analysis
  • —Installation costs estimated
  • —Energy savings projected
  • —ROI and payback period calculated
  1. 1.AI Summary
  2. 2.Data sent to OpenRouter LLM
  3. 3.Generates human-friendly analysis
  4. 4.Provides recommendations

Features

  • —🏠 Rooftop area segmentation
  • —⚡ Energy production calculation
  • —💰 ROI estimation
  • —🤖 AI-powered analysis
  • —📊 Interactive visualization

How to Use

  1. 1.Upload a clear satellite/aerial image of a rooftop
  2. 2.Click "Analyze Rooftop"
  3. 3.View results and recommendations

Tech Stack

  • —Gradio for the web interface
  • —OpenRouter API for vision analysis
  • —Python for calculations and processing