Daniel983
November 26, 2007, 12:54:21
Hi!
I'm making an appllication for image processing. Exactly I've to track the position of a moving object into a static background, as fast as possible: in particular I would like working at 30fps and process every frame.
I've follwed the callback example and I'm able to call frameready() method for each frame. I convert every frame in Ipl image to use OpenCV library. If I do simple background-foreground subtraction for detect the object, the application appears to work fine, but if I looking for the position of the object
(using connected component) the time processing grow up.
My question are not about opencv but I want know:
1. To process every frame is faster and more indicate using a listener or a frame filter?
2. My images are 1024x768, you suggest to reduce the size of the image to process using a ROI filter? If yes how I can do this?
3. For create the Sink I use the follow
smart_ptr<FrameHandlerSink> pSink = FrameHandlerSink::create( acceptedTypes , 1);
but I've not clear the function of the number of buffer (I set it to 1), it influences the speed of the application?
___________
Thanks,
Daniel
I'm making an appllication for image processing. Exactly I've to track the position of a moving object into a static background, as fast as possible: in particular I would like working at 30fps and process every frame.
I've follwed the callback example and I'm able to call frameready() method for each frame. I convert every frame in Ipl image to use OpenCV library. If I do simple background-foreground subtraction for detect the object, the application appears to work fine, but if I looking for the position of the object
(using connected component) the time processing grow up.
My question are not about opencv but I want know:
1. To process every frame is faster and more indicate using a listener or a frame filter?
2. My images are 1024x768, you suggest to reduce the size of the image to process using a ROI filter? If yes how I can do this?
3. For create the Sink I use the follow
smart_ptr<FrameHandlerSink> pSink = FrameHandlerSink::create( acceptedTypes , 1);
but I've not clear the function of the number of buffer (I set it to 1), it influences the speed of the application?
___________
Thanks,
Daniel