Java Code Examples for org.opencv.android.OpenCVLoader#initDebug()
The following examples show how to use
org.opencv.android.OpenCVLoader#initDebug() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VisionEnabledActivity.java From FTCVision with MIT License | 8 votes |
@Override protected void onResume() { super.onResume(); if (opMode == null) return; if (!OpenCVLoader.initDebug()) { Log.d("OpenCV", "Internal OpenCV library not found. Using OpenCV Manager for initialization"); boolean success = OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, openCVLoaderCallback); if (!success) Log.e("OpenCV", "Asynchronous initialization failed!"); else Log.d("OpenCV", "Asynchronous initialization succeeded!"); } else { Log.d("OpenCV", "OpenCV library found inside package. Using it!"); openCVLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 2
Source File: FdActivity.java From open-quartz with Apache License 2.0 | 6 votes |
@Override public void onResume() { super.onResume(); // Load default libopencv_java.so if (OpenCVLoader.initDebug()) { Toast.makeText(getApplicationContext(), "Libraries Loaded!", Toast.LENGTH_SHORT).show(); if (mLoaderCallback != null) { mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } } else { Toast.makeText(getApplicationContext(), "failed to load libraries", Toast.LENGTH_SHORT) .show(); } // Usual OpenCV Loader // OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, this, mLoaderCallback); }
Example 3
Source File: FtcTestOpenCv.java From FtcSamples with MIT License | 6 votes |
private void startCamera() { final String funcName = "startCamera"; if (cameraEnabled) { if (!OpenCVLoader.initDebug()) { tracer.traceInfo( funcName, "Internal OpenCV library not found, using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, activity, loaderCallback); } else { tracer.traceInfo(funcName, "OpenCV library found inside package, use it!"); loaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } // setCameraDisplayOrientation(activity, Camera.CameraInfo.CAMERA_FACING_FRONT); // cameraPreview.onResume(); } }
Example 4
Source File: MainActivity.java From OpenCV-Android-Object-Detection with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 5
Source File: StepByStepTestActivity.java From CVScanner with GNU General Public License v3.0 | 5 votes |
@Override protected void onResume() { super.onResume(); if(!OpenCVLoader.initDebug()){ //OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_1_0, getApplicationContext(), mCallback); } else mCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); }
Example 6
Source File: BaseFragment.java From CVScanner with GNU General Public License v3.0 | 5 votes |
protected void loadOpenCV(){ if(!OpenCVLoader.initDebug()){ //OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_1_0, getActivity().getApplicationContext(), mLoaderCallback); } else{ mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 7
Source File: Puzzle15Activity.java From OpenCV-AndroidSamples with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 8
Source File: SingleMakeupActivity.java From FaceT with Mozilla Public License 2.0 | 5 votes |
public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d("OpenCV", "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_1_0, this, mLoaderCallback); } else { Log.d("OpenCV", "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 9
Source File: Tutorial1Activity.java From OpenCV-AndroidSamples with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 10
Source File: Tutorial3Activity.java From OpenCV-AndroidSamples with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 11
Source File: ShowCameraViewActivity.java From FaceT with Mozilla Public License 2.0 | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 12
Source File: CaptureActivity.java From FaceT with Mozilla Public License 2.0 | 5 votes |
public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d("OpenCV", "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_1_0, this, mLoaderCallback); } else { Log.d("OpenCV", "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 13
Source File: FaceRecognitionAppActivity.java From FaceRecognitionApp with GNU General Public License v2.0 | 5 votes |
private void loadOpenCV() { if (!OpenCVLoader.initDebug(true)) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_1_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 14
Source File: CameraCalibrationActivity.java From OpenCV-AndroidSamples with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 15
Source File: FDOpenCVActivity.java From Image-Detection-Samples with Apache License 2.0 | 5 votes |
@Override protected void onResume() { super.onResume(); Log.e(TAG, "onResume"); initPresenter(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, presenter.getLoader(getApplicationContext(), openCvCameraView)); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); presenter.getLoader(getApplicationContext(), openCvCameraView).onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 16
Source File: ColorBlobDetectionActivity.java From OpenCV-AndroidSamples with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 17
Source File: MainActivity.java From OpenCvFaceDetect with Apache License 2.0 | 5 votes |
@Override protected void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_4_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 18
Source File: FaceDetectionActivity.java From OpenCV-AndroidSamples with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 19
Source File: CameraActivity.java From AndroidObjectDetection-OpenCV with MIT License | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_4_0, this, mLoaderCallback); } else { Log.d(TAG, "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }
Example 20
Source File: LPRActivity.java From LPR with Apache License 2.0 | 5 votes |
@Override public void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Log.d("OpenCV", "Internal OpenCV library not found. Using OpenCV Manager for initialization"); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_4_0, this, mLoaderCallback); } else { Log.d("OpenCV", "OpenCV library found inside package. Using it!"); mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS); } }