Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[Android] Get camera frame but show no preview

Hi guys,

I'd like to process frames from front camera on my Android device. But I've seen that if I don't have org.opencv.android.JavaCameraView visible, OnCameraFrame method of CameraBridgeViewBase.CvCameraViewListener2 is not being called.

I've found same problem on StackOverflow, but the solution sadly doesn't work for me.

[Android] Get camera frame but show no preview

Hi guys,

I'd like to process frames from front camera on my Android device. But I've seen that if I don't have org.opencv.android.JavaCameraView JavaCameraView (it's defined in layout XML file) visible, OnCameraFrame OnCameraFrame() method of CameraBridgeViewBase.CvCameraViewListener2 CameraBridgeViewBase.CvCameraViewListener2 (my Activity implements it) is not being called.

I've found same problem on StackOverflow, but the solution sadly doesn't work for me.