Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,8 @@ def draw_bounding_boxes(img, results):
|
|
116 |
|
117 |
def show_preds_image(filepath):
|
118 |
#dicom_image, dicom_meta = read_and_preprocess_dicom(image_path)
|
119 |
-
results, img0 = detect_objects(filepath)
|
|
|
120 |
img0 = cv2.imread(filepath)
|
121 |
#img_with_boxes = draw_bounding_boxes(img0, results)
|
122 |
img_with_boxes = draw_bounding_boxes(img0, results)
|
|
|
116 |
|
117 |
def show_preds_image(filepath):
|
118 |
#dicom_image, dicom_meta = read_and_preprocess_dicom(image_path)
|
119 |
+
#results, img0 = detect_objects(filepath)
|
120 |
+
results = detect_objects(filepath)
|
121 |
img0 = cv2.imread(filepath)
|
122 |
#img_with_boxes = draw_bounding_boxes(img0, results)
|
123 |
img_with_boxes = draw_bounding_boxes(img0, results)
|