Ask Your Question

Revision history [back]

Android Camera/Program control

I am writing a simple augmented reality application would like to structure the program differently than any of the provided examples that use CvCameraViewListener. I require a layer of control above the continuous acquire-process-display frame process and I'm not sure how to accomplish my goal (my programming experience is limited to programs with simple structures).

I have my code prototyped in OpenCV 2.3 for Android and the code structure there is much simpler. I'm trying to implement the latest version of OpenCV and it appears like I need to make my existing code fit into a more current supported app structure.

I would like to start off by acquiring frames, processing the frames (searching for AR fiducials), and displaying the frames. When a fiducial is found I'd like to stop acquiring frames, display only the last camera frame (with recognized fiducial), and overlay AR content over the last frame.

I'm not sure where to implement this layer of control. I started poking around CameraBridgeBaseView but this doesn't capture all of the control I require. I can't seem to find anything that implements a traditional control loop that I am familiar with.

Anyone have any suggestions on where to start? I'd love to find an example with a framework I can modify or work from. Thanks in advance.