From 88d3e7a7ba94220e11eaa410b6ece386e829520e Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 27 Nov 2023 16:12:05 +0300 Subject: [PATCH] Fixed regression in Android Tutorial2 initialization. --- .../src/org/opencv/samples/tutorial2/Tutorial2Activity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java b/samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java index 2f50868f55..a5419c61da 100644 --- a/samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java +++ b/samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java @@ -57,6 +57,9 @@ public class Tutorial2Activity extends CameraActivity implements CvCameraViewLis return; } + // Load native library after(!) OpenCV initialization + System.loadLibrary("mixed_sample"); + getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); setContentView(R.layout.tutorial2_surface_view);