Overview Package Class Tree Index Help
OpenCV 2.4.3 (RC)
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.opencv.android
Class NativeCameraView

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

public class NativeCameraView
extends CameraBridgeViewBase

This class is an implementation of a bridge between SurfaceView and native OpenCV camera. Due to the big amount of work done, by the base class this child is only responsible for creating camera, destroying camera and delivering frames while camera is enabled


Nested Class Summary
static class NativeCameraView.OpenCvSizeAccessor
Nested classes/interfaces inherited from class org.opencv.android.CameraBridgeViewBase
CameraBridgeViewBase.CvCameraViewListener, CameraBridgeViewBase.ListItemAccessor
Field Summary
static java.lang.String TAG
Fields inherited from class org.opencv.android.CameraBridgeViewBase
mFrameHeight, mFrameWidth, mMaxHeight, mMaxWidth, mPreviewFormat
Constructor Summary
NativeCameraView(Context context, AttributeSet attrs)
Method Summary
protected boolean connectCamera(int width, int height)
This method is invoked shall perform concrete operation to initialize the camera.
protected void disconnectCamera()
Disconnects and release the particular camera object being connected to this surface view.
Methods inherited from class org.opencv.android.CameraBridgeViewBase
AllocateCache, calculateCameraFrameSize, deliverAndDrawFrame, disableView, enableView, SetCaptureFormat, setCvCameraViewListener, setMaxFrameSize, surfaceChanged, surfaceCreated, surfaceDestroyed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

TAG

public static final java.lang.String TAG
See Also:
Constant Field Values
Constructor Detail

NativeCameraView

public NativeCameraView(Context context,
 AttributeSet attrs)
Method Detail

connectCamera

protected boolean connectCamera(int width,
 int height)
Description copied from class: CameraBridgeViewBase
This method is invoked shall perform concrete operation to initialize the camera. CONTRACT: as a result of this method variables mFrameWidth and mFrameHeight MUST be initialized with the size of the Camera frames that will be delivered to external processor.

Specified by:
connectCamera in class CameraBridgeViewBase
Parameters:
width - - the width of this SurfaceView
height - - the height of this SurfaceView

disconnectCamera

protected void disconnectCamera()
Description copied from class: CameraBridgeViewBase
Disconnects and release the particular camera object being connected to this surface view. Called when syncObject lock is held

Specified by:
disconnectCamera in class CameraBridgeViewBase

Overview Package Class Tree Index Help
Official OpenCV 2.4 Documentation
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /