title: How to match cv2.imread to the keras image.img_load output
body: <p>I'm studying deep learning. Trained an image classification algorithm. The problem is, however, that to train images I used:</p>
  
  <pre><code>test_image = image.load_img('some.png', target_size = (64, 64))
  test_image = image.img_to_array(test_image)
  </code></pre>
  
  <p>While for actual application I use:</p>
  
  <pre><code>test_image = cv2.imread('trick.png')
  test_image = cv2.resize(test_image, (64, 64))
  </code></pre>
  
  <p>But I found that those give a different ndarray (different data):</p>
  
  <p>Last entries from load_image:</p>
  
  <pre><code>  [ 64.  71.  66.]
    [ 64.  71.  66.]
    [ 62.  69.  67.]]]
  </code></pre>
  
  <p>Last entries from cv2.imread:</p>
  
  <pre><code>  [ 15  23  27]
    [ 16  24  28]
    [ 14  24  28]]]
  </code></pre>
  
  <p>, so the system is not working. Is there a way to match results of one to another?</p>