Skip to content

Commit 57a33bd

Browse files
committed
imgs got renamed to ims in ultralytics/yolov5#9024
1 parent 670b5c8 commit 57a33bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monitor/monitor_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def email_text(num_ah, num_eh, frame_id, dt):
200200
if ah_count + eh_count > 0:
201201
print(f'Positive hornet detections in frame #{frame_id}')
202202
results.render() # updates results.imgs with boxes and labels
203-
img = cv2.cvtColor(results.imgs[0], cv2.COLOR_RGB2BGR)
203+
img = cv2.cvtColor(results.ims[0], cv2.COLOR_RGB2BGR)
204204
if args.save:
205205
fname = os.path.join(frame_dir, f'frame-{frame_id}.jpeg')
206206
lname = os.path.join(label_dir, f'frame-{frame_id}.txt')

0 commit comments

Comments
 (0)