title: Convert a binary image to 2D array or Matrix in Python?
body: <p>I'm new to image processing and I'm really having a hard time understanding stuff...so the idea is that how do you create a matrix from a binary image in python?</p>
  
  <p><img src="https://i.stack.imgur.com/MFBuS.jpg" width="400" height="400"></p>
  
  <p>to something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/rTM6Q.jpg" width="400" height="400"></p>
  
  <p>It not the same image though the point is there.
  Thank you for helping, I appreciate it cheers</p>