Monday, July 22, 2013

OpenCV in Android - First app

This should be short. The tutorial here is straightforward and worked fine for me. Only thing is that it doesn't explain some minor details that then I found in another sample code and pasted over:
  1. The activity should implement CvViewFrameListener2: "public class HelloOpenCvActivity extends Activity implements CvCameraViewListener2 {"...
  2. They do not show some of the creation/initialization of variables in the class: "    private static final String TAG = "OCVSample::Activity";    private CameraBridgeViewBase mOpenCvCameraView;"
That should do... We get about 8fps... Wonder if that is all I can get...  
Notice that no use of the NDK was necessary...

Another sample/tutorial here

PS.: Click here to see the index of these series of posts on OpenCV

No comments:

Post a Comment