Merge pull request #24600 from asmorkalov:as/tutorial2_fix

Fixed regression in Android Tutorial2 initialization.
pull/24598/head
Alexander Smorkalov 1 year ago committed by GitHub
commit 1ef8175c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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);

Loading…
Cancel
Save