Update app.py
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ def object_detection(image, conf_threshold=0.25, iou_threshold=0.45):
|
|
218 |
json_response = json.dumps(final_bounding_boxes, indent=4)
|
219 |
return image_with_boxes, json_response
|
220 |
|
221 |
-
|
222 |
def object_detection_with_edge_enhancement(image, conf_threshold=0.25, iou_threshold=0.45):
|
223 |
image = Image.fromarray(image)
|
224 |
image_enhanced = apply_edge_enhancement(image)
|
|
|
218 |
json_response = json.dumps(final_bounding_boxes, indent=4)
|
219 |
return image_with_boxes, json_response
|
220 |
|
221 |
+
|
222 |
def object_detection_with_edge_enhancement(image, conf_threshold=0.25, iou_threshold=0.45):
|
223 |
image = Image.fromarray(image)
|
224 |
image_enhanced = apply_edge_enhancement(image)
|