Ask Your Question
0

Opencv4Android: are the opencv calls running on gpu or cpu?

asked 2013-09-17 13:32:22 -0600

I am using opencv4Android under Android right now. Yet my findContours is really slow, 70~100ms. Does the opencv calls already taking advantage of gpu if the device has one?

What options I have to make my opencv calls run faster?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-09-17 14:04:22 -0600

Moster gravatar image

updated 2013-09-17 14:05:04 -0600

No, they all run on the CPU. Cuda will only come with the tegra 5 and also OpenCL isnt available on android. There was some unofficial opencl for the nexus devices, but it got blocked with the latest firmware updates.

The only option I see to make everything faster is to completely rely on the NDK (c++) and dont use java. In your opencv package you find an example called "native-activity" that shows how to do that

edit flag offensive delete link more

Comments

Thanks for your answer. I will give it try

William gravatar imageWilliam ( 2013-09-18 01:35:57 -0600 )edit

Question Tools

Stats

Asked: 2013-09-17 13:32:22 -0600

Seen: 643 times

Last updated: Sep 17 '13