Re: [Maya-Python] Simple image comparing program using pyside

2018-08-10 Thread Hyuk Ko
Thank you for helping me out! I found PIL might be just the right solution for me def check_equal(imgA, imgB): return ImageChops.difference(img1, img2).getbbox() is None These two lines solved my problems! 2018년 8월 10일 금요일 오후 4시 37분 51초 UTC+9, Justin Israel 님의 말: > > It doesn't look like

Re: [Maya-Python] Simple image comparing program using pyside

2018-08-10 Thread Justin Israel
It doesn't look like that demo is using OpenCV for more than just reading and decoding images into byte arrays. And then a difference between the byte arrays is used to determine if the images are the same. Seems you could probably do the same thing with PySide using QImage

Re: [Maya-Python] Simple image comparing program using pyside

2018-08-10 Thread Marcus Ottosson
You can install OpenCV and NumPy into Maya, but it can't be the packages distributed via their standard installers or `pip` as they need to have been compiled especially for your version of Maya, such as 2018. Do a Google for pre-compiled versions for your platform and version of Maya, I've seen