Simple set of the camera index to allow the user to change it after the object has...
authorograycode <jason.alan.gray@gmail.com>
Mon, 20 May 2013 02:04:56 +0000 (22:04 -0400)
committerograycode <jason.alan.gray@gmail.com>
Mon, 20 May 2013 02:04:56 +0000 (22:04 -0400)
modules/java/generator/src/java/android+CameraBridgeViewBase.java

index 6c5c329..b15ae2b 100644 (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 {
         /**