File size: 1,416 Bytes
d1ac326
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dad9a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export interface ModelSummary {
  id: string;
  input_size: number;
  dynamic_hw: boolean;
  threshold: number;
  band_order: string[];
  is_placeholder: boolean;
  fixed_grid: boolean;
}

export interface CuratedPair {
  id: string;
  title: string;
  description: string;
  source: string;
  width: number;
  height: number;
}

export interface PredictStats {
  changed_fraction: number;
  changed_percent: number;
  mean_confidence_changed: number;
  mean_confidence_overall: number;
  changed_pixels: number;
  total_pixels: number;
}

export interface PredictResult {
  overlay_png: string;
  threshold: number;
  is_placeholder: boolean;
  stats: PredictStats;
  elapsed_ms: number;
  input_size: number;
  pair_id: string;
  model_id: string;
  n_tiles?: number;
}

// A curated Sentinel-2 AOI: metadata + the offline-baked prediction summary (overlay served as a
// PNG file, not embedded). Everything here comes straight from the cache — no runtime inference.
export interface Sentinel2AOI {
  id: string;
  title: string;
  description: string;
  source: string;
  tile: string;
  center: [number, number]; // [lng, lat]
  width: number;
  height: number;
  date_before: string;
  date_after: string;
  cloud_before: number;
  cloud_after: number;
  model_id: string;
  threshold: number;
  is_placeholder: boolean;
  n_tiles: number;
  input_size: number;
  elapsed_ms: number;
  stats: PredictStats;
}