'Why does my PNG image look different in OpenCV?

enter image description here

The image is downloaded from a slide captcha and I'm trying to find the gap in this image with OpenCV.

But the gap is missing in the image opened with cv2.imshow() . I am not familiar with PNG nor OpenCV so I'm so confused right now. I searched a lot but found nothing useful maybe caused by using wrong keywords.

image opened with Windows Viewer: enter image description here

image opened with cv2.imshow() : enter image description here

I'm wondering why the same image in image viewer and OpenCV looks different and is there an easy way to locate the difference?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source