Skip to content

Commit

Permalink
Remove image open on macos (ultralytics#1086)
Browse files Browse the repository at this point in the history
* added option to not open on save

* Update detect.py

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
faaip and glenn-jocher authored Oct 7, 2020
1 parent 5b8cf24 commit d11504a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ def detect(save_img=False):

if save_txt or save_img:
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))

Expand Down

0 comments on commit d11504a

Please sign in to comment.