using python3, gtk3. I am working on a computer vision application that needs to manipulate and display (playback) the frames from a video.
Currently, I create a new Pixbuf
with the static method new_from_data
, fed by a sequence of bytes created from a numpy array that contained the manipulated frame, and I am having performance problems, such as not being able to play the video at 20fps.
I wonder: is this the way to go for this kind of problem? Is creating a new Pixbuf for every frame relatively cheap or expensive? Should I use other methods, such as using new_from_stream
? (not familiar with it)