First time here? Check out the FAQ!

Ask Your Question
0

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

asked Dec 29 '12

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?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Dec 30 '12

  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.
Preview: (hide)

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 (Dec 30 '12)edit

Question Tools

Stats

Asked: Dec 29 '12

Seen: 851 times

Last updated: Dec 30 '12