devansh-lodha's picture
Refine and finalize project codebase
c679660
metadata
title: Alpha Earth Pixel Similarity Finder
emoji: 🌍
colorFrom: green
colorTo: blue
sdk: docker
app_port: 8501
pinned: true

🌍 Alpha Earth Pixel Similarity Finder

An interactive, production-level tool to find similar features in satellite imagery using Google's Alpha Earth embeddings, built with Streamlit and Google Earth Engine.

✨ Features

  • Interactive Analysis: Click on the map, manually enter coordinates, or use pre-built demos to select reference points.
  • Visual Results Panel: After analysis, view an interactive panel of all detected locations, each with a satellite image preview and a "Zoom to" button.
  • Fine-Grained Control: Manage your list of reference points, with options to remove individual points or clear all.
  • Pre-built Demos: Get started instantly with demos for finding Brick Kilns, Solar Farms, and Salt Pans in India.
  • Adjustable Parameters: Fine-tune the search with adjustable year, similarity threshold, and minimum detection area.
  • Data Export: Download the coordinates of detected locations as both CSV and KML files.

πŸ› οΈ Configuration

This Space requires two secrets to be configured in the Settings tab:

  1. GOOGLE_APPLICATION_CREDENTIALS_JSON: For Earth Engine.
  2. GOOGLE_MAPS_API_KEY: For generating preview images in the detection panel. This must have the "Maps Static API" enabled in your Google Cloud project.

πŸ“ Project Structure

.
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
└── src
    β”œβ”€β”€ app.py
    β”œβ”€β”€ assets
    β”‚   └── style.css
    β”œβ”€β”€ components
    β”‚   β”œβ”€β”€ __init__.py
    β”‚   β”œβ”€β”€ map.py
    β”‚   └── sidebar.py
    └── services
        β”œβ”€β”€ __init__.py
        └── earthengine.py