I need to RGB values of an image using OpenCV, but when I read an image as below, sometimes it does not return exact values.
import cv2
img = cv2.imread('camel.jpeg')
For example
For this picture ( camel.jpg ) everything is correct but for this picture (result.jpg) it returns 255 for every pixel. But if try to read a specific pixel, I can reach the RGB value of the pixel. I tried to use a for loop but the result was not correct, it returned again 255 for every pixel. What should i do?