org.opencv.android
Class JavaCameraView
java.lang.Object
SurfaceView
org.opencv.android.CameraBridgeViewBase
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.
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 |
JavaCameraView
public JavaCameraView(Context context,
AttributeSet attrs)
JavaCameraView
public JavaCameraView(Context context,
int cameraId)
onPreviewFrame
public void onPreviewFrame(byte[] frame,
Camera arg1)