Remove image open on macos (#1086)
* added option to not open on save * Update detect.py Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
1 parent
5b8cf247af
commit
d11504aee1
1 file changed
-2
@@ -140,8 +140,6 @@ def detect(save_img=False):
|
|||||||
|
|
||||||
if save_txt or save_img:
|
if save_txt or save_img:
|
||||||
print('Results saved to %s' % Path(out))
|
print('Results saved to %s' % Path(out))
|
||||||
if platform.system() == 'Darwin' and not opt.update: # MacOS
|
|
||||||
os.system('open ' + save_path)
|
|
||||||
|
|
||||||
print('Done. (%.3fs)' % (time.time() - t0))
|
print('Done. (%.3fs)' % (time.time() - t0))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user