Ask Your Question

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

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

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

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

Moster gravatar image

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

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


Thanks for your answer. I will give it try

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

Question Tools


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

Seen: 517 times

Last updated: Sep 17 '13