Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def draw_bounding_boxes(img, results):
|
|
87 |
def show_preds_image(filepath):
|
88 |
results, img0, dicom_meta = detect_objects(filepath)
|
89 |
img_with_boxes, results = draw_bounding_boxes(img0, results)
|
90 |
-
print("In show_preds_image:Intance Number=", dicom_meta.loc[dicom_meta.Key == '
|
91 |
#return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB)
|
92 |
return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB), results, dicom_meta
|
93 |
|
|
|
87 |
def show_preds_image(filepath):
|
88 |
results, img0, dicom_meta = detect_objects(filepath)
|
89 |
img_with_boxes, results = draw_bounding_boxes(img0, results)
|
90 |
+
print("In show_preds_image:Intance Number=", dicom_meta.loc[dicom_meta.Key == 'Instance Number', 'Value'].iloc[0])
|
91 |
#return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB)
|
92 |
return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB), results, dicom_meta
|
93 |
|