From d97bc89d52e59b811097dcca9c5e80831d18a943 Mon Sep 17 00:00:00 2001 From: Jordan-Fielding <107819004+Jordan-Fielding@users.noreply.github.com> Date: Thu, 7 Jul 2022 15:15:46 +1000 Subject: [PATCH] Update main.py --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 7f31ca4..c109933 100644 --- a/main.py +++ b/main.py @@ -36,12 +36,13 @@ def bugmotion(): #Sets Img path and filename, Saves to Working directory of Script # Grab the current time + filePath = cwd + "/Pictures" currentTime = datetime.now() picTime = currentTime.strftime("%Y.%m.%d-%H%M%S") - picName = picTime + '.jpg' + picName = "Capture" + picTime + '.jpg' completeFilePath = filePath + picName - file_name = cwd + "/Pictures/Capture_" + str(time.time()) + ".jpg" - print("\nFile Name is: " + file_name) + #file_name = cwd + "/Pictures/Capture_" + str(time.time()) + ".jpg" + print("\nFile Name is: " + completeFilePath) #Used to wait for 0.1 Seconds for Camera to be ready