Skip to content

Commit

Permalink
Merge pull request #8 from T9Air/Python-Script-Additions
Browse files Browse the repository at this point in the history
Update compare_images.py
  • Loading branch information
T9Air committed Jul 5, 2024
2 parents f9b0041 + f897136 commit a79d858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compare_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def choose_images():
# Check if there are at least two images
if len(os.listdir('/home/USER/klipper-camera-watchdog/Image-files/')) > 1:
# Sort image paths by creation time (newest first)
image_paths = sorted(glob.glob('/home/USER/klipper-camera-watchdog/Image-files/*.jpg'), key=os.path.getctime, reverse=True)
image_paths = sorted(glob.glob('/home/USER/klipper-camera-watchdog/Image-files/*'), key=os.path.getctime, reverse=True)

# Load the two most recent images
image1 = cv2.imread(image_paths[0])
Expand Down

0 comments on commit a79d858

Please sign in to comment.