Skip to content Skip to sidebar Skip to footer

Opencv Didn't Output Images Correctly

I have debugging my code and here is what I found: img = cv2.resize(img, (224, 224)) cv2.imshow('img',img) cv2.waitKey(0) cv2.destroyAllWindows() img = (img / 127.5) - 1 cv2.ims

Solution 1:

Try checking the dtype each time you display:

print(img.dtype)

Post a Comment for "Opencv Didn't Output Images Correctly"