Ask Your Question
0

Tracking API with data in GPU memory

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

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?

Thanks.

Alex

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

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

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

Comments

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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 815 times

Last updated: Apr 17 '19