webcam multiple bounding box bug fix #1188

This commit is contained in:
Glenn Jocher 2020-06-02 23:59:03 -07:00
parent 64b8960074
commit 82f653b0f5
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def detect(save_img=False):
# Process detections
for i, det in enumerate(pred): # detections for image i
if webcam: # batch_size >= 1
p, s, im0 = path[i], '%g: ' % i, im0s[i]
p, s, im0 = path[i], '%g: ' % i, im0s[i].copy()
else:
p, s, im0 = path, '', im0s