Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39185 > unrolled thread
| Started by | Jon Reyes <everystepsayes@gmail.com> |
|---|---|
| First post | 2013-02-18 21:49 -0800 |
| Last post | 2013-02-18 22:28 -0800 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.lang.python
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
| From | Jon Reyes <everystepsayes@gmail.com> |
|---|---|
| Date | 2013-02-18 21:49 -0800 |
| Subject | PIL ImageChops.difference not working correctly(?) |
| Message-ID | <66d9a4fb-2f86-44c2-a393-cf7422ac5f5e@googlegroups.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
[toc] | [next] | [standalone]
| From | Jon Reyes <everystepsayes@gmail.com> |
|---|---|
| Date | 2013-02-18 22:28 -0800 |
| Message-ID | <27e25b0f-73ed-4094-b05e-c6c159bc222b@googlegroups.com> |
| In reply to | #39185 |
Wow, what the heck, I just learned that using beyond compare if I compare the two images then I'll see a different section under tolerance mode. Anyone an expert on images? The two images have whites on that same image but they're different according to BeyondCompare. What's more, if I do a binary comparison the two images are the same. Guess I'll just find a way to compare images through binary in Python.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web