title: How can i get the RGB values of an image as numpy array using OpenCV, Python
body: <p>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.</p>
  <pre><code>    import cv2
      img = cv2.imread('camel.jpeg')
  </code></pre>
  <p>For example</p>
  <p>For this picture (
  <a href="https://i.stack.imgur.com/IkOqK.jpg" rel="nofollow noreferrer">camel.jpg</a>
  ) everything is correct but for this picture (<a href="https://i.stack.imgur.com/wgBhF.jpg" rel="nofollow noreferrer">result.jpg</a>) 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?</p>