This commit is contained in:
Glenn Jocher 2019-04-26 12:16:33 +02:00
parent 3535c401bb
commit 674feb91f2
1 changed files with 3 additions and 2 deletions

View File

@ -109,9 +109,10 @@ def detect(
else: else:
cv2.imwrite(save_path, im0) cv2.imwrite(save_path, im0)
if save_images and platform == 'darwin': # macos if save_images:
os.system('open ' + output + ' ' + save_path)
print('Results saved to %s' % os.getcwd() + os.sep + output) print('Results saved to %s' % os.getcwd() + os.sep + output)
if platform == 'darwin': # macos
os.system('open ' + output + ' ' + save_path)
if __name__ == '__main__': if __name__ == '__main__':