Ask Your Question

variablexxx's profile - activity

2017-01-15 07:33:17 -0600 received badge  Popular Question (source)
2013-10-19 10:42:37 -0600 received badge  Nice Question (source)
2013-07-02 11:46:32 -0600 received badge  Student (source)
2013-06-05 12:47:11 -0600 asked a question Using default BaseLoaderCallback in an android service

0 down vote favorite

I want to use OpenCV in an android service. In the OpenCV documentation I found the following information:

Default BaseLoaderCallback implementation treats application context as Activity and calls Activity.finish() method to exit in case of initialization failure. To override this behavior you need to override finish() method of BaseLoaderCallback class and implement your own finalization method.

But now I don't now how I should implement my own finalization method. What should I do in this method?

And another question: Where should I place the following line of code:

OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_4, this, mOpenCVCallBack)

In an android activity this line of code should be in the onResume(), but in an android service I don't an onResume() method.

2013-06-04 05:05:57 -0600 asked a question Capturing frames after certain time intervals

Is it possible to use the CameraBridgeViewBase to capture frames only after certain time intervals (for example evey 5 seconds)? I'm only interested to process these single frames and i don't have the requirement to show them to the user.