webcam multiple bounding box bug fix #1188
This commit is contained in:
parent
64b8960074
commit
82f653b0f5
|
@ -104,7 +104,7 @@ def detect(save_img=False):
|
||||||
# Process detections
|
# Process detections
|
||||||
for i, det in enumerate(pred): # detections for image i
|
for i, det in enumerate(pred): # detections for image i
|
||||||
if webcam: # batch_size >= 1
|
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:
|
else:
|
||||||
p, s, im0 = path, '', im0s
|
p, s, im0 = path, '', im0s
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue