Simple set of the camera index to allow the user to change it after the object has been initialized.
This commit is contained in:
parent
aee6a617a6
commit
97e9368e75
@ -81,6 +81,14 @@ public abstract class CameraBridgeViewBase extends SurfaceView implements Surfac
|
|||||||
styledAttrs.recycle();
|
styledAttrs.recycle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the camera index
|
||||||
|
* @param camera index
|
||||||
|
*/
|
||||||
|
public void setCameraIndex(int cameraIndex) {
|
||||||
|
this.mCameraIndex = cameraIndex;
|
||||||
|
}
|
||||||
|
|
||||||
public interface CvCameraViewListener {
|
public interface CvCameraViewListener {
|
||||||
/**
|
/**
|
||||||
* This method is invoked when camera preview has started. After this method is invoked
|
* This method is invoked when camera preview has started. After this method is invoked
|
||||||
|
Loading…
x
Reference in New Issue
Block a user