Spaces:
Runtime error
Runtime error
Commit
·
5a67d38
1
Parent(s):
08d4311
update
Browse files
app.py
CHANGED
@@ -222,7 +222,7 @@ def process_image(image_path, flag_lower, flag_upper, plant_lower, plant_upper,
|
|
222 |
|
223 |
# Initial quadrilateral index
|
224 |
selected_quad_index = 0
|
225 |
-
centroids = get_points_from_contours(valid_quadrilaterals[selected_quad_index])
|
226 |
# Function to update displayed quadrilateral based on selected index
|
227 |
def update_displayed_quadrilateral(index):
|
228 |
# Extract the four points of the current quadrilateral
|
|
|
222 |
|
223 |
# Initial quadrilateral index
|
224 |
selected_quad_index = 0
|
225 |
+
centroids = get_points_from_contours(valid_quadrilaterals[selected_quad_index])
|
226 |
# Function to update displayed quadrilateral based on selected index
|
227 |
def update_displayed_quadrilateral(index):
|
228 |
# Extract the four points of the current quadrilateral
|