Video Processing-Marker Detection slow?

asked 2015-03-17 05:00:15 -0600

updated 2015-03-17 06:59:15 -0600

thdrksdfthmn gravatar image

Hi there! I am trying to build a program using ArUco Library which tracks markers and renders virtual objects on them. However,whenever marker detection process takes place, the frame rate drops a lot. What can I do to decrease processing time? Right now I build on Debug.Will it be better on release or not? Also, what else could I do to have real time video processing? I tried using pyrdown function, but the results are almost the same.

Any advice for video processing in real time is welcome!

edit retag flag offensive close merge delete

Comments

for realistic timing, use a release build.

berak gravatar imageberak ( 2015-03-17 05:02:38 -0600 )edit

Ok I used Release mode. It is much better,however I still need something faster.Any other ideas? Is it true that by using OpenCV 3.0 video processing may be better? Right now I use 2.4.10

marios.b gravatar imagemarios.b ( 2015-03-17 05:57:20 -0600 )edit

no, that won't make much difference.

berak gravatar imageberak ( 2015-03-17 06:04:36 -0600 )edit

What resolution do you work on? I am sure that the processing (detection) may be done on a lower resolution, and this will make a big difference in time (except if you have done this already)

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-17 07:02:03 -0600 )edit

640x480 You mean using pyrdown right? Or just by passing to the processing function a smaller image?Isn't that what pyrdown does?

marios.b gravatar imagemarios.b ( 2015-03-17 07:20:03 -0600 )edit

I was thinking at the resize. It seems that pyrDown does something else (a little bit)

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-17 07:43:07 -0600 )edit

Oh then you think I should resize and add a resized image for processing huh? Ok I will try it!

marios.b gravatar imagemarios.b ( 2015-03-17 08:08:23 -0600 )edit

I have done that for making faster the face detection, so I suppose that it will improve speed in your case, too

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-17 10:17:06 -0600 )edit