title: Convert an image into digits with PHP?
body: <p>I am trying to figure out how I can convert a <code>color image</code> into numbers. </p>
  
  <p>For example, if I have an image like the one shown in <code>figure (b)</code>, how can I get a output like <code>figure (a)</code> in to a text file? </p>
  
  <p><img src="https://i.stack.imgur.com/1vvMK.jpg" alt="enter image description here"></p>