title: Method for cropping an image along color borders?
body: <p>Images such as this one (<a href="https://imgur.com/a/1B7nQnk" rel="nofollow noreferrer">https://imgur.com/a/1B7nQnk</a>) should be cropped into individual cells. Sadly, the vertical distance is not static, so a more complex method needs to be applied. Since the cells have alternating background colors (grey and white, maybe not visible at low contrast monitors), I thought it might be possible to get the coordinates of the boundaries between white and grey, with which accurate cropping can be accomplished. Is there a way to, e.g., transform the image into a giant two dimensional array, with digits corresponding to the color of the pixel ?... so basically:</p>
  
  <p><a href="https://i.stack.imgur.com/fJqoF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fJqoF.png" alt="enter image description here"></a></p>
  
  <p>Or is there another way?</p>