From 1434f55cb917eaf15fe2966f02be83791302889f Mon Sep 17 00:00:00 2001 From: qubick Date: Tue, 15 Dec 2015 11:38:56 -0700 Subject: [PATCH] camera view was enabled to visible when the app launched --- .../samples/colorblobdetect/ColorBlobDetectionActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java b/samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java index 97d348c9d..d2ddad6ae 100644 --- a/samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java +++ b/samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java @@ -73,6 +73,7 @@ public class ColorBlobDetectionActivity extends Activity implements OnTouchListe setContentView(R.layout.color_blob_detection_surface_view); mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.color_blob_detection_activity_surface_view); + mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE); mOpenCvCameraView.setCvCameraViewListener(this); }