Ask Your Question
0

How to use a timer to test performance of android opencv samples on several android devices?

asked 2012-12-29 05:30:39 -0600

KristoF124 gravatar image

I would like to test performance of android opencv samples on several android devices. I read that timer is a good way to test performance but I really don't know how to implement it and what it could measure. I haven't developed anything on Android before. Are there any other ways of testing performance of the android opencv samples on several devices?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-12-30 08:39:08 -0600

  1. If you use OpenCV 2.4.3.1 or newer you can enable built-in fps-meter in application layout. See tutorial-1 for more detailes.
  2. If you want to get precise processing time you can use cv::getTickCount) function in C++ and Core.getTickCount() in Java.
  3. In most cases the best solution is to measure processing time only. Camera performance may differ from frame to frame and depends on a lot of parameters, i.e. lightning.
edit flag offensive delete link more

Comments

I'm using OpenCV 2.4.2 and I also have an fps meter in the samples. Is the fps-meter in OpenCV 2.4.3.1 different from the fps-meter in OpenCV 2.4.2? My aim is to prepare a table with test results of my modified image-manipulations app working on several devices. Can you tell me something more about Java Core.getTickCount() ? As I said in my question, I'm a beginner developer and some more detailed instructions would be really helpful. Can you show me a sample code, which uses Core.getTickCount() ? Anyway, thanks for your answer, I'm also expecting other helpful answers.

KristoF124 gravatar imageKristoF124 ( 2012-12-30 09:50:55 -0600 )edit

Question Tools

Stats

Asked: 2012-12-29 05:30:39 -0600

Seen: 851 times

Last updated: Dec 30 '12