Simple set of the camera index to allow the user to change it after the object has been initialized.

This commit is contained in:
ograycode 2013-05-19 22:04:56 -04:00
parent aee6a617a6
commit 97e9368e75

View File

@ -80,6 +80,14 @@ public abstract class CameraBridgeViewBase extends SurfaceView implements Surfac
mMaxHeight = MAX_UNSPECIFIED;
styledAttrs.recycle();
}
/**
* Sets the camera index
* @param camera index
*/
public void setCameraIndex(int cameraIndex) {
this.mCameraIndex = cameraIndex;
}
public interface CvCameraViewListener {
/**