OpenCV 3.0.0-rc1

org.opencv.android
Interface CameraBridgeViewBase.CvCameraViewListener2

Enclosing class:
CameraBridgeViewBase

public static interface CameraBridgeViewBase.CvCameraViewListener2


Method Summary
 Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame)
          This method is invoked when delivery of the frame needs to be done.
 void onCameraViewStarted(int width, int height)
          This method is invoked when camera preview has started.
 void onCameraViewStopped()
          This method is invoked when camera preview has been stopped for some reason.
 

Method Detail

onCameraFrame

Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame)
This method is invoked when delivery of the frame needs to be done. The returned values - is a modified frame which needs to be displayed on the screen. TODO: pass the parameters specifying the format of the frame (BPP, YUV or RGB and etc)


onCameraViewStarted

void onCameraViewStarted(int width,
                         int height)
This method is invoked when camera preview has started. After this method is invoked the frames will start to be delivered to client via the onCameraFrame() callback.

Parameters:
width - - the width of the frames that will be delivered
height - - the height of the frames that will be delivered

onCameraViewStopped

void onCameraViewStopped()
This method is invoked when camera preview has been stopped for some reason. No frames will be delivered via onCameraFrame() callback after this method is called.


OpenCV 3.0.0-rc1 Documentation