I have written an optic flow detection application which based on OpenCV for Android tutorials and source code of Barry Thomas's application OpenCV Demo 2. Now I want to make this application a background task so I can pass the detection result to my main activity via listener interface.
All the application samples in OpenCV totorials extends Activity
and implements CvCameraViewListener
and shows camera input on the scrren. I want to able to capture camera frames and do optic flow detection on frames in background without showing them on the screen.
How can I get frames from camera in background witout showing camera input?