The wxglvideo package allows rapid display of numpy arrays into wxPython OpenGL contexts. In particular, it defines a class DynamicImageCanvas, which is a subclass of wx.glcanvas.GLCanvas into which arrays are blitted. By using the pygarrayimage module, it is possible to enforce that no copy is made of the data on its way to OpenGL, ensuring minimal resource use.
See also motmot.wxvideo.wxvideo for a similar module that does not make use of OpenGL.
Screenshot of the wxglvideo_demo program, included with wxglvideo:
Bases: wx.glcanvas.GLCanvas
Display image data to OpenGL using as few resources as possible
update the view transformation to include a left-right image flip for all images
Arguments val : boolean
Whether to flip the image
update the view transformation to include a 180 degree rotation for all images
Arguments
Bases: wx._windows.Panel
This class mimics the behavior of motmot.wxvideo.wxvideo.DynamicImageCanvas, allowing multiple image sources and the simple overlay of points and lines.
update the view transformation to include a left-right image flip for all images
Arguments val : boolean
Whether to flip the image
update the view transformation to include a 180 degree rotation for all images
Arguments
update the displayed image
Arguments
Optional keyword arguments
Bases: motmot.wxglvideo.wxglvideo.DynamicImageCanvas
A single image view with overlaid points and line segments