Skip to content

Commit

Permalink
Hide FPS
Browse files Browse the repository at this point in the history
  • Loading branch information
sz3 committed Oct 28, 2020
1 parent b5993e8 commit 7a8ed5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ protected boolean initializeCamera(int width, int height) {
{
params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);
}
//params.setPreviewFpsRange(30000,30000);

mCamera.setParameters(params);
params = mCamera.getParameters();
Expand Down Expand Up @@ -351,7 +350,7 @@ public Mat rgba() {
if (mPreviewFormat == ImageFormat.NV21)
Imgproc.cvtColor(mYuvFrameData, mRgba, Imgproc.COLOR_YUV2RGBA_NV21, 4);
else if (mPreviewFormat == ImageFormat.YV12)
Imgproc.cvtColor(mYuvFrameData, mRgba, Imgproc.COLOR_YUV2RGB_I420, 4); // COLOR_YUV2RGBA_YV12 produces inverted colors
Imgproc.cvtColor(mYuvFrameData, mRgba, Imgproc.COLOR_YUV2RGB_I420, 4);
else
throw new IllegalArgumentException("Preview Format can be NV21 or YV12");

Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/main_surface"
app:show_fps="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand Down

0 comments on commit 7a8ed5b

Please sign in to comment.