[PySide] QImage: out of memory, returning null image
william.dias at gmail.com
Tue Jun 4 20:51:48 CEST 2013
I've written a program that continuously pools a webcam to grab image
frames through opencv library. Sporadically, when converting the frame to a
QImage object, I get the message: QImage: out of memory, returning null
frame = self.camcapture.read()
image = QImage(frame.data, 1920, 1080,
self.pixmap = QPixmap.fromImage(image)
As you can see, the image is 1920x1080 pixels big and it uses around 6MB of
memory space (3 bytes per pixel * 1920 * 1080), I suppose.
How to solve this problem? Is it possible python is leaking memory? Any
suggestion is welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PySide