From bd29a1c94672d6e5c5e5735549ad2f88ab787012 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 18 Nov 2020 10:03:41 +0100 Subject: [PATCH] PosixPath to str webcam bug fix (#1437) --- detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect.py b/detect.py index 90d01ea37..fc48b204c 100644 --- a/detect.py +++ b/detect.py @@ -115,7 +115,7 @@ def detect(save_img=False): # Stream results if view_img: - cv2.imshow(p, im0) + cv2.imshow(str(p), im0) if cv2.waitKey(1) == ord('q'): # q to quit raise StopIteration