glenn-jocher commited on
Commit
bd29a1c
1 Parent(s): 1542cca

PosixPath to str webcam bug fix (#1437)

Browse files
Files changed (1) hide show
  1. detect.py +1 -1
detect.py CHANGED
@@ -115,7 +115,7 @@ def detect(save_img=False):
115
 
116
  # Stream results
117
  if view_img:
118
- cv2.imshow(p, im0)
119
  if cv2.waitKey(1) == ord('q'): # q to quit
120
  raise StopIteration
121
 
 
115
 
116
  # Stream results
117
  if view_img:
118
+ cv2.imshow(str(p), im0)
119
  if cv2.waitKey(1) == ord('q'): # q to quit
120
  raise StopIteration
121