Reputation: 113
I'm developing money recognition system for blind people based on android mobile phone. For this I'm using OpenCV as image processing framework. I implemented a square detection module and it's working perfectly.
The phone camera releases 30 frames per second, so the processing is really slow. I use a canny edge detection algorithm (for square detection). The output result is drawn in Android SurfaceView
. Any suggestion to speed this up? What about replacing SurfaceView
with GLSurfaceView
? Will it increase speed?
my device has dual core processor. how about multi core programming??(for android)
My device is Samsung Galaxy S2.
Upvotes: 3
Views: 2195
Reputation: 8725
It's hard to say if OpenGL will highly increase speed (yes, OpenGL is definitely faster).
Why don't you benchmark your application to find out how much time spents on drawing and on OpenCV computation?
For example:
Compare results. If OpenCV takes (about) 80% of time then you definitely have to improve your OpenCV algorithm. Otherwise try to show image using OpenGL.
Upvotes: 5