Skip to content Skip to sidebar Skip to footer

Glass Camera Preview Display Is Garbled

I am trying to get a live camera preview to display in Google Glass. I'm using all of the camera defaults (and have also tried using a few different image formats; ideally, I can u

Solution 1:

This has been answered here: https://stackoverflow.com/a/19257078/950427

Longterm:

Camera.Parameters params = camera.getParameters();
params.setPreviewFpsRange(30000, 30000);
camera.setParameters(params);

Shorterm(testing):

For quick testing and usage, simply add to your outermost view:

android:layout_margin="1dp"

For example:

<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_margin="1dp"android:layout_height="match_parent" ><org.opencv.android.JavaCameraViewandroid:layout_width="fill_parent"android:layout_height="fill_parent"android:id="@+id/tutorial2_activity_surface_view" /></LinearLayout>

Post a Comment for "Glass Camera Preview Display Is Garbled"