mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Android tutorials refresh
- Use Android Studio instead of Ecliplse. - Use new Gradle-based OpenCV for Android SDK.
This commit is contained in:
committed by
Alexander Smorkalov
parent
bf72e9d625
commit
5498f419df
+2
@@ -34,6 +34,7 @@ public class Tutorial1Activity extends CameraActivity implements CvCameraViewLis
|
||||
Log.i(TAG, "called onCreate");
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
//! [ocv_loader_init]
|
||||
if (OpenCVLoader.initLocal()) {
|
||||
Log.i(TAG, "OpenCV loaded successfully");
|
||||
} else {
|
||||
@@ -41,6 +42,7 @@ public class Tutorial1Activity extends CameraActivity implements CvCameraViewLis
|
||||
(Toast.makeText(this, "OpenCV initialization failed!", Toast.LENGTH_LONG)).show();
|
||||
return;
|
||||
}
|
||||
//! [ocv_loader_init]
|
||||
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user