Using Selenium you can query the canvas for its image data using Selenium's getEval method (ref) with some smartly designed js code.
getEval
You can do it pixel by pixel if that's what you want, or just grab the entire canvas using the toDataURL method.
toDataURL