You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bbox : Bounding box of the area you want to run prediction on
35
-
model_path : Path of your downloaded model checkpoint
36
-
zoom_level : Zoom level of the tiles to be used for prediction
37
-
tms_url : Your Image URL on which you want to detect feature
38
-
tile_size : Optional >> Tile size to be used in pixel default : 256*256
39
-
base_path : Optional >> Basepath for your working dir of prediction
40
-
confidence: Optional >> Threshold probability for filtering out low-confidence predictions, Defaults to 0.5
41
-
area_threshold (float, optional): Threshold for filtering polygon areas. Defaults to 3 sqm.
42
-
tolerance (float, optional): Tolerance parameter for simplifying polygons. Defaults to 0.5 m. Percentage Tolerance = (Tolerance in Meters / Arc Length in Meters )×100
32
+
"""Detect buildings using ML model and return as GeoJSON.
43
33
34
+
Parameters:
35
+
model_path: Path of downloaded model checkpoint
36
+
zoom_level: Zoom level for prediction tiles
37
+
tms_url: Image URL for feature detection
38
+
output_path: Directory to save prediction results (temporary UUID dir if None)
39
+
confidence: Threshold for filtering predictions (0-1)
40
+
area_threshold: Minimum polygon area in sqm (default: 3)
41
+
tolerance: Simplification tolerance in meters (default: 0.5)
42
+
remove_metadata: Whether to delete intermediate files after processing
43
+
orthogonalize: Whether to square building corners
44
+
bbox: Bounding box for prediction area
45
+
geojson: GeoJSON object for prediction area
46
+
merge_input_images_to_single_image: Whether to merge source images
47
+
get_predictions_as_points: Whether to generate point representations
48
+
ortho_skew_tolerance_deg: Max skew angle for orthogonalization (0-45)
49
+
ortho_max_angle_change_deg: Max corner adjustment angle (0-45)
44
50
"""
45
51
ifnotbboxandnotgeojson:
46
52
raiseValueError("Either bbox or geojson must be provided")
47
53
ifconfidence<0orconfidence>1:
48
54
raiseValueError("Confidence must be between 0 and 1")
0 commit comments