diff --git a/detect.py b/detect.py index 2f3fb940..00e4c977 100644 --- a/detect.py +++ b/detect.py @@ -111,7 +111,7 @@ def detect(save_txt=False, save_img=True, stream_img=False): vid_writer = cv2.VideoWriter(save_path, cv2.VideoWriter_fourcc(*opt.fourcc), fps, (width, height)) vid_writer.write(im0) - if save_img: + if save_txt or save_img: print('Results saved to %s' % os.getcwd() + os.sep + out) if platform == 'darwin': # MacOS os.system('open ' + out + ' ' + save_path)