Datasets:
Tasks:
Image Segmentation
Modalities:
Image
Formats:
imagefolder
Size:
1K - 10K
Tags:
building
License:
File size: 4,552 Bytes
7264f20 a7d7157 |
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
---
license: mit
task_categories:
- image-segmentation
tags:
- building
size_categories:
- 1K<n<10K
---
# Building Contour Detection and Height Estimation Problem
## Dataset Summary
The **building_height_estimation** dataset is a collection of satellite images with annotated building footprints (polygons) and corresponding building heights.
It is designed for the **joint tasks of building contour detection (segmentation)** and **height estimation (regression)** from monocular aerial images.
* **Source & Owner**: The dataset originates from the [AlgoTester Building Contour Detection & Height Estimation Contest](https://algotester.com/en/ContestProblem/DisplayWithFile/135254).
* **Hugging Face Host**: [MElHuseyni / building_height_estimation](https://huggingface.co/datasets/MElHuseyni/building_height_estimation).
* **License**: MIT
* **Tags**: `building`, `segmentation`, `regression`, `remote sensing`

*Example of a dataset sample: a 512Γ512 satellite image with annotated building footprints (polygon overlays) and their corresponding height values.*
---
## Dataset Description
Each sample consists of:
* **Image**: RGB satellite image (512Γ512 px).
* **Annotations**: A LabelMe-like JSON containing:
* `points`: Polygon vertices (x, y) marking building footprints
* `group_id`: Numeric building height (meters)
The dataset supports training and evaluation for:
* Building footprint extraction
* Height estimation from monocular imagery
* Joint segmentation + regression architectures
---
## Dataset Structure
```
/
βββ images/ # Training images
β βββ img0001.png
β βββ ...
β
βββ ground_truth_files/ # Training labels (JSON)
β βββ img0001.json
β βββ ...
β
βββ test_images/ # Test set (no ground truth provided)
βββ test0001.png
βββ ...
```
**Example Label (JSON):**
```json
{
"shapes": [
{
"points": [[316, 486], [307, 510], [312, 512]],
"group_id": 9
},
{
"points": [[416, 457], [435, 446], [421, 423], [402, 434]],
"group_id": 7
}
]
}
```
---
## Evaluation & Scoring
The official contest defines the score as:
```
Score = max(0, β (Precision + Recall β 4 Γ HeightError) Γ 5 Γ 10β΄ β)
```
* **Precision**: Correct predicted building area Γ· total predicted area
* **Recall**: Correctly matched ground truth area Γ· total ground truth area
* **HeightError**: Weighted RMSE of predicted vs. true heights for matched buildings
**Important constraints:**
* β€ 1,000 buildings per image
* β€ 300 vertices per polygon
* Total vertices per JSON β€ 5,000
* Height β [0, 1000] meters
* Coordinates within [0, 512]
* No self-intersecting polygons
* Overlap between two buildings β€ 10% of smaller area
---
## Usage
```python
from datasets import load_dataset
ds = load_dataset("MElHuseyni/building_height_estimation")
sample = ds["train"][0]
print(sample["image"])
print(sample["buildings"])
```
Each `building` entry contains a list of polygon points and a height value.
---
## Limitations
* **Monocular Input**: Heights are inferred from a single RGB image, no stereo or LiDAR.
* **Annotation Noise**: Minor misalignments or errors in footprints may exist.
* **Imbalance**: Height distribution may be skewed (low-rise dominant).
* **Test Labels**: Hidden; only evaluable via AlgoTester scoring scripts.
---
## Citation
If you use this dataset, please cite both the Hugging Face dataset and the original AlgoTester contest:
```
@misc{building_height_estimation_MElHuseyni,
title = {building_height_estimation},
author = {MElHuseyni},
year = {2025},
howpublished = {Hugging Face Dataset},
url = {https://huggingface.co/datasets/MElHuseyni/building_height_estimation}
}
@online{algotester_building_height,
title = {Building Contour Detection & Height Estimation Contest},
author = {AlgoTester},
year = {2024},
url = {https://algotester.com/en/ContestProblem/DisplayWithFile/135254}
}
```
---
## Acknowledgements
* Dataset originally prepared and hosted by **AlgoTester** for their contest.
* Curated and published on Hugging Face by **[MElHuseyni](https://huggingface.co/MElHuseyni)**.
* Licensed under MIT for research and development purposes.
---
|