Wednesday, April 15, 2015

Android : Xamarin OpenCV ICvCameraViewListener



For a while I'm having issue trying to implement ICvCameraViewListener. I inherit it , implement its methods, yet they're not called at all. Tried on both Activity and JavaCameraView.


Looking at the OpenCV for Android java sample code, there is a line: mOpenCvCameraView.setCvCameraViewListener(this); but there is no such a method in JavaCameraView nor in CameraBridgeViewBase.


I can go via OnPreviewFrame() callback method, but then what is the point of ICvCameraViewListener interface if I have to convert byte[] to Mat myself.


Also this alternative approach gives some unexpected results.


No comments:

Post a Comment