wangjin2000
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -91,8 +91,7 @@ def draw_bounding_boxes(img, results, dicom_meta):
|
|
91 |
def show_preds_image(filepath):
|
92 |
results, img0, dicom_meta = detect_objects(filepath)
|
93 |
img_with_boxes, results = draw_bounding_boxes(img0, results, dicom_meta)
|
94 |
-
|
95 |
-
#return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB)
|
96 |
return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB), results, dicom_meta
|
97 |
|
98 |
def read_and_preprocess_dicom(file_path: str):
|
|
|
91 |
def show_preds_image(filepath):
|
92 |
results, img0, dicom_meta = detect_objects(filepath)
|
93 |
img_with_boxes, results = draw_bounding_boxes(img0, results, dicom_meta)
|
94 |
+
print("Detections:", dicom_meta.loc[dicom_meta.Key == 'Series Instance UID', 'Value'].iloc[0], results)
|
|
|
95 |
return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB), results, dicom_meta
|
96 |
|
97 |
def read_and_preprocess_dicom(file_path: str):
|