OpenCV 2.4.8

org.opencv.android
Class JavaCameraView

java.lang.Object
  extended by SurfaceView
      extended by org.opencv.android.CameraBridgeViewBase
          extended by org.opencv.android.JavaCameraView

public class JavaCameraView
extends CameraBridgeViewBase

This class is an implementation of the Bridge View between OpenCV and Java Camera. This class relays on the functionality available in base class and only implements required functions: connectCamera - opens Java camera and sets the PreviewCallback to be delivered. disconnectCamera - closes the camera and stops preview. When frame is delivered via callback from Camera - it processed via OpenCV to be converted to RGBA32 and then passed to the external callback for modifications if required.


Nested Class Summary
static class JavaCameraView.JavaCameraSizeAccessor
           
 
Nested classes/interfaces inherited from class org.opencv.android.CameraBridgeViewBase
CameraBridgeViewBase.CvCameraViewFrame, CameraBridgeViewBase.CvCameraViewListener, CameraBridgeViewBase.CvCameraViewListener2, CameraBridgeViewBase.ListItemAccessor
 
Field Summary
 
Fields inherited from class org.opencv.android.CameraBridgeViewBase
CAMERA_ID_ANY, CAMERA_ID_BACK, CAMERA_ID_FRONT
 
Constructor Summary
JavaCameraView(Context context, AttributeSet attrs)
           
JavaCameraView(Context context, int cameraId)
           
 
Method Summary
 void onPreviewFrame(byte[] frame, Camera arg1)
           
 
Methods inherited from class org.opencv.android.CameraBridgeViewBase
disableFpsMeter, disableView, enableFpsMeter, enableView, setCameraIndex, SetCaptureFormat, setCvCameraViewListener, setCvCameraViewListener, setMaxFrameSize, surfaceChanged, surfaceCreated, surfaceDestroyed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaCameraView

public JavaCameraView(Context context,
                      AttributeSet attrs)

JavaCameraView

public JavaCameraView(Context context,
                      int cameraId)
Method Detail

onPreviewFrame

public void onPreviewFrame(byte[] frame,
                           Camera arg1)

OpenCV 2.4.8 Documentation