Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/Find image difference requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pillow==7.2.0
9 changes: 9 additions & 0 deletions bin/Find image difference.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# importing dependecies
from PIL import Image ,ImageChops
img1=Image.open("Image Difference/img1.jpg")
img2=Image.open("Image Difference/img2.jpg")

#returns the new image with pixel-by-pixel difference between the two images
newImage=ImageChops.difference(img1,img2)
if newImage.getbbox():
newImage.show()
Binary file added bin/Image Difference/img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Image Difference/img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.