Skip to content

Commit

Permalink
typo + name
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Jul 20, 2022
1 parent bf1e51b commit ab9fc4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner/src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def capture(ip, CAM_USER, CAM_PWD):

# Save img
if save_img_debug:
file = 'data/' + ip + '/' + time.strftime("%Y%m%d-%H%M%S") + '.jpg'
file = os.path.join("data", ip, f"{time.strftime('%Y%m%d-%H%M%S')}.jpg")
os.makedirs(os.path.split(file)[0], exist_ok=True)
img.save('data/' + ip + '/.jpg')
img.save(file)

time.sleep(max(loop_time - time.time() + start_time, 0))
except Exception:
Expand Down

0 comments on commit ab9fc4d

Please sign in to comment.