Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def perform_object_detection(image, model_name, threshold):
|
|
104 |
try:
|
105 |
# Perform object detection and draw bounding boxes
|
106 |
processed_image, detected_objects = detector.detect_and_draw_objects(image, model_name, threshold)
|
107 |
-
|
108 |
return processed_image, detected_objects
|
109 |
except Exception as e:
|
110 |
# Print the error for debugging
|
@@ -125,7 +125,7 @@ if detect_button:
|
|
125 |
# Perform object detection
|
126 |
processed_image, detected_objects = perform_object_detection(image, detect_model, threshold)
|
127 |
st.write("333333333333333")
|
128 |
-
st.write(
|
129 |
#if processed_image:
|
130 |
# Display the image with detected objects
|
131 |
st.image(processed_image, use_column_width=True, caption="Image with Detected Objects")
|
|
|
104 |
try:
|
105 |
# Perform object detection and draw bounding boxes
|
106 |
processed_image, detected_objects = detector.detect_and_draw_objects(image, model_name, threshold)
|
107 |
+
st.write("66666666666666")
|
108 |
return processed_image, detected_objects
|
109 |
except Exception as e:
|
110 |
# Print the error for debugging
|
|
|
125 |
# Perform object detection
|
126 |
processed_image, detected_objects = perform_object_detection(image, detect_model, threshold)
|
127 |
st.write("333333333333333")
|
128 |
+
st.write(type(processed_image))
|
129 |
#if processed_image:
|
130 |
# Display the image with detected objects
|
131 |
st.image(processed_image, use_column_width=True, caption="Image with Detected Objects")
|