This bug appears to have been introduced in version 0.1.29. When opencv is installed the locateAll methods don't work correctly, failing to find the needle image, even though it is in pixel-for-pixel present at position (0,0) in the haystack.
How to reproduce
Haystack:
Needle:
The pillow version finds it, but the cv2 version does not:
This bug appears to have been introduced in version 0.1.29. When opencv is installed the locateAll methods don't work correctly, failing to find the needle image, even though it is in pixel-for-pixel present at position (0,0) in the haystack.
How to reproduce
The pillow version finds it, but the cv2 version does not:
But the image is present in the upper left corner:
System information
This also reproduced on MacOS (Python 3.9.12).