I print a row of my output image and it is binary obviously
However, when I read it in another function and print this row again, it becomes non-binary. What happened?
img = plt.imread(two_image,0)
I print a row of my output image and it is binary obviously
However, when I read it in another function and print this row again, it becomes non-binary. What happened?
img = plt.imread(two_image,0)
You’re probably saving it as a JPEG file, which is a lossy format. It changes the data slightly to be able to reduce the size on disk. To avoid this, save it as a PNG file.