title: Grabbing <canvas> pixels through Selenium / Python
body: <p>I am doing some  automation on the sever side. I'd like to somehow interact with the HTML page through Python code and access the  pixel data. What kind of options Selenium offers for his kind of approaches?</p>
  
  <p>Possible considerations</p>
  
  <ul>
  <li><p>Raw pixel data access in in-process memory</p></li>
  <li><p>Get pixels by saving them to a local image file (PNG)</p></li>
  <li><p>Get pixels by saving them to a memory, listening port on localhost and pushing the data there over AJAX</p></li>
  <li><p>Creating an image file and accessing it directly in-process memory</p></li>
  </ul>