Here is a sample program from the OpenCv code.
initAsync
is called from onResume
which uses BaseLoaderCallback
. Then you could use your compare
from CvCameraViewListener2
interface methods like onCameraFrame
.
You can find similar examples in the android samples directory.