Ask Your Question

bw4sz's profile - activity

2014-09-02 07:52:53 -0600 commented question TLD Tracking (opencv3.0)

Is there a plan to migrate the additional modules to the python bindings, or are they outside the main open-cv domain? The tracker module would be much appreciated.

2014-06-28 22:23:36 -0600 commented question OpenCV2 python storing frames memory leak?

This seems to be an ongoing issue. It would appear that the memory is not being dropped from cap.grab(). My goal using cap.grab() and not cap.read() was to skip some frames.

2014-06-28 22:13:25 -0600 asked a question OpenCV2 python storing frames memory leak?

Hi all,

I'm doing some motion detection using the accumulated averaging technique using opencv2 and python. My script reads in a frame, compares it to the background and if there has been a threshold of movement, stores the frame to a list. I'm finding that the memory usage on storing each image seems disproportionately large, such that to hold on to 100 images, is taking 1 gb of memory. This makes little sense since written to file each image is about 120 kb.

What is the best way to store a list of images, is there a numpy approach that someone can suggest?

2014-06-19 15:03:24 -0600 asked a question Writing frames to file: bulk or individual?

Hi all,

I have a motion detection approach using accumulated averaging. When motion sensing is triggered, the frame is written to file. My question, would it be faster for me to store all 'triggered' frames in a list, then print the entire list to file at the end? Any reason to think there would be a difference?

The downside would be checkpointing, the video would only return data once its 100% done.

Any python code on writing in a list loop would appreciated.

Thanks