Update main.py

This commit is contained in:
Jordan-Fielding
2022-07-07 15:15:46 +10:00
parent bf80f9230c
commit d97bc89d52

View File

@@ -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