Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2019-09-02 16:09:05 +02:00
parent bfe6d560c0
commit 39c198579f
1 changed files with 1 additions and 1 deletions

View File

@ -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)