Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,13 +84,13 @@ geographic_bounds = {
|
|
| 84 |
'lon_min': 77.5946,
|
| 85 |
'lon_max': 77.5986,
|
| 86 |
}
|
| 87 |
-
input_image_path = "
|
| 88 |
|
| 89 |
final_image, calculated_area = process_rooftop_image(input_image_path, geographic_bounds)
|
| 90 |
print(f"Calculated Rooftop Area: {calculated_area:.2f} square meters")
|
| 91 |
|
| 92 |
# Save the final image with contours
|
| 93 |
-
cv2.imwrite("processed_image_with_boundaries.
|
| 94 |
|
| 95 |
# Display the final image
|
| 96 |
cv2.imshow("Rooftop Detection", final_image)
|
|
|
|
| 84 |
'lon_min': 77.5946,
|
| 85 |
'lon_max': 77.5986,
|
| 86 |
}
|
| 87 |
+
input_image_path = "behindpmi.png"
|
| 88 |
|
| 89 |
final_image, calculated_area = process_rooftop_image(input_image_path, geographic_bounds)
|
| 90 |
print(f"Calculated Rooftop Area: {calculated_area:.2f} square meters")
|
| 91 |
|
| 92 |
# Save the final image with contours
|
| 93 |
+
cv2.imwrite("processed_image_with_boundaries.png", final_image)
|
| 94 |
|
| 95 |
# Display the final image
|
| 96 |
cv2.imshow("Rooftop Detection", final_image)
|