title: How to draw a picture by OpenCV within Gtk in Python
body: <p>I am struggling with the integration of OpenCV with in my Python Gtk application. What I am trying to do, is to load a picture like this:</p>
  
  <pre><code>pic = cv2.imread("image.jpg") #pic is a numpy.ndarray
  </code></pre>
  
  <p>Afterwards, I would like to display this image using a GtkWidget. But actually I have no idea how. My first idea was to use something like GtkImage, but GtkImage can only work directly with an image file. Since my plan is to manipulate a video-stream this is not practicable.</p>
  
  <p>Maybe one of you has an idea how to proceed. Thank you very much.</p>