Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39185
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-02-18 21:49 -0800 |
| Message-ID | <66d9a4fb-2f86-44c2-a393-cf7422ac5f5e@googlegroups.com> (permalink) |
| Subject | PIL ImageChops.difference not working correctly(?) |
| From | Jon Reyes <everystepsayes@gmail.com> |
I have two images generated from ImageMagick that I need to compare through PIL but when I compare them it says that the two images aren't identical. I tried viewing the supposed "difference" but all I see is a black image which means the two image are identical. ImageChops even returns the region where the supposed non - identical marks are, but there's nothing there. Any thoughts?
I just do this to compare if the two images are identical:
diff = ImageChops.difference(img1, img2)
if diff.getbbox() == None:
#then the images must be the same
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
PIL ImageChops.difference not working correctly(?) Jon Reyes <everystepsayes@gmail.com> - 2013-02-18 21:49 -0800 Re: PIL ImageChops.difference not working correctly(?) Jon Reyes <everystepsayes@gmail.com> - 2013-02-18 22:28 -0800
csiph-web