fix(extract): Kartenbeschriftung nicht mehr als Geometrie ausgeben
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0bf2c29061
commit
f3abb5e803
92 files changed
+161
-96
No files matched your search
@@ -3,7 +3,7 @@ import json
|
||||
from pathlib import Path
|
||||
|
||||
from leonida.buildings import building_polygons
|
||||
from leonida.classify import CLASSES, class_shares, classify
|
||||
from leonida.classify import CLASSES, class_shares, classify, drop_map_labels
|
||||
from leonida.emit import (chunk_box_of, chunk_payload, in_chunk, split_by_chunk_all,
|
||||
write_chunks, write_debug_png)
|
||||
from leonida.heights import assign_heights, palm_points
|
||||
@@ -20,6 +20,7 @@ def main() -> None:
|
||||
download_tiles(cache)
|
||||
mosaic = load_mosaic(cache)
|
||||
labels, unknown_share = classify(mosaic, report_unknown=True)
|
||||
labels = drop_map_labels(labels)
|
||||
if unknown_share > 0.05:
|
||||
raise SystemExit(f"{unknown_share:.1%} der Pixel unbekannt. Palette kalibrieren, nicht die Grenze anheben.")
|
||||
shares = class_shares(labels)
|
||||
|
||||
Reference in new issue
Block a user