updates
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
bfe6d560c0
commit
39c198579f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue