annayding
commited on
Commit
·
bfad7a6
1
Parent(s):
f77e3aa
debug
Browse files- owl_core.py +3 -2
owl_core.py
CHANGED
@@ -117,8 +117,9 @@ def owl_full_video(
|
|
117 |
df = pd.concat([df, row], ignore_index=True)
|
118 |
|
119 |
# if there are detections, save the frame replacing the original frame
|
120 |
-
|
121 |
-
|
|
|
122 |
|
123 |
# save the df to a csv
|
124 |
csv_path = f"{results_dir}/{filename}_{threshold}.csv"
|
|
|
117 |
df = pd.concat([df, row], ignore_index=True)
|
118 |
|
119 |
# if there are detections, save the frame replacing the original frame
|
120 |
+
if len(labels[j]) > 0:
|
121 |
+
annotated_frame = plot_predictions(image, labels[j], scores, boxes)
|
122 |
+
cv2.imwrite(image, annotated_frame)
|
123 |
|
124 |
# save the df to a csv
|
125 |
csv_path = f"{results_dir}/{filename}_{threshold}.csv"
|