Ask Your Question

Revision history [back]

How do I make the method onCameraFrame() be called more frequently

I'm using java in Android Studio. Currently onCameraFrame() is called about every 1/30th of a second, likely because the camera is set to 30fps. How do I make it called every 1/60th of a second, or change to the camera framerate to 60fps.

This is the method I'm referring to (class implements CameraBridgeViewBase.CvCameraViewListener2):

@Override
public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {
}