Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

python frame grabbing from ip camera and process in a different thread

Hi,

When I grab frames with VideoCapture, the stream slows down while grabbing, so if in the beginning it runs smoothly, after a minute it gets super slow. I believe this happens because of some sort of buffer where the VideoCapture stores the images, while the processing piece of code is doing its magic. (speed grabber > speed processing).

I am thinking to have a thread that is solely grabbing the frames from the camera and another that is fetching the current frame, does some processing and browse the processed image. However, passing this image through threads does not seem quite easy. Does anyone have an idea how to put me on the right way?

PS: I'm using python interface