Update detect.py (#629)

* Update detect.py

Update print info for relative path and absolute
otherwise the info below is misleading

Results saved to /workspace//output_path

* Update detect.py

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/1/head
hopesala 5 years ago committed by GitHub
parent b8f3b1b373
commit d0d3dd1040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -137,7 +137,7 @@ def detect(save_img=False):
vid_writer.write(im0) vid_writer.write(im0)
if save_txt or save_img: if save_txt or save_img:
print('Results saved to %s' % os.getcwd() + os.sep + out) print('Results saved to %s' % Path(out))
if platform == 'darwin' and not opt.update: # MacOS if platform == 'darwin' and not opt.update: # MacOS
os.system('open ' + save_path) os.system('open ' + save_path)

Loading…
Cancel
Save