Ask Your Question

Tracking API with data in GPU memory

asked 2019-04-16 10:25:47 -0500

AlexTheGreat gravatar image

Hi all,

looking at the tracking API I was wondering if the init or update methods can be fed with GpuMat data instead of Mat. I.e. if I have decoded data in GPU memory, can I use the tracking API directly or should I copy data from GPU to host first?



edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2019-04-17 01:43:15 -0500

berak gravatar image

you're out of luck, none of the tracking code is CUDA optimized,

so you'll have to download your data to CPU (and use cv::Mat) for the tracking

edit flag offensive delete link more


Thanks, that's what I was thinking. There are some interesting projects like this one which show that the tracking algos like KCF may be GPU optimized to some degree but the overall performance gain doesn't seem to be worth the effort IMHO.

Thanks. A.

AlexTheGreat gravatar imageAlexTheGreat ( 2019-04-17 10:16:26 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-04-16 10:25:47 -0500

Seen: 394 times

Last updated: Apr 17 '19