Update main.py
This commit is contained in:
7
main.py
7
main.py
@@ -36,12 +36,13 @@ def bugmotion():
|
|||||||
|
|
||||||
#Sets Img path and filename, Saves to Working directory of Script
|
#Sets Img path and filename, Saves to Working directory of Script
|
||||||
# Grab the current time
|
# Grab the current time
|
||||||
|
filePath = cwd + "/Pictures"
|
||||||
currentTime = datetime.now()
|
currentTime = datetime.now()
|
||||||
picTime = currentTime.strftime("%Y.%m.%d-%H%M%S")
|
picTime = currentTime.strftime("%Y.%m.%d-%H%M%S")
|
||||||
picName = picTime + '.jpg'
|
picName = "Capture" + picTime + '.jpg'
|
||||||
completeFilePath = filePath + picName
|
completeFilePath = filePath + picName
|
||||||
file_name = cwd + "/Pictures/Capture_" + str(time.time()) + ".jpg"
|
#file_name = cwd + "/Pictures/Capture_" + str(time.time()) + ".jpg"
|
||||||
print("\nFile Name is: " + file_name)
|
print("\nFile Name is: " + completeFilePath)
|
||||||
|
|
||||||
|
|
||||||
#Used to wait for 0.1 Seconds for Camera to be ready
|
#Used to wait for 0.1 Seconds for Camera to be ready
|
||||||
|
|||||||
Reference in New Issue
Block a user