當前位置: 首頁>>代碼示例>>Java>>正文


Java LoaderCallbackInterface.SUCCESS屬性代碼示例

本文整理匯總了Java中org.opencv.android.LoaderCallbackInterface.SUCCESS屬性的典型用法代碼示例。如果您正苦於以下問題:Java LoaderCallbackInterface.SUCCESS屬性的具體用法?Java LoaderCallbackInterface.SUCCESS怎麽用?Java LoaderCallbackInterface.SUCCESS使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.opencv.android.LoaderCallbackInterface的用法示例。


在下文中一共展示了LoaderCallbackInterface.SUCCESS屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i("OpenCV", "OpenCV loaded successfully");
            mOpenCvCameraView.setCvCameraViewListener(MainActivity.this);
            load_cascade();
            mOpenCvCameraView.enableView();
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:spacejake,項目名稱:android-age-estimator,代碼行數:16,代碼來源:MainActivity.java

示例2: RNScanDocModule

public RNScanDocModule(ReactApplicationContext reactContext) {
  super(reactContext);
  this.mReactContext = reactContext;
  mOpenCVCallBack = new BaseLoaderCallback(getCurrentActivity()) {
    @Override
    public void onManagerConnected(int status) {
      switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
          rgbMat = new Mat();
          grayMat = new Mat();
          cannyMat = new Mat();
          linesMat = new Mat();
          Log.d(TAG, "OpenCV loaded success");
        } break;
        default:
        {
          super.onManagerConnected(status);
        } break;
      }
    }
  };
}
 
開發者ID:beast,項目名稱:react-native-scan-doc,代碼行數:23,代碼來源:RNScanDocModule.java

示例3: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.d("OCR", "Start loading MNIST and creating classifier");
            mOpenCvCameraView.enableView();
            mnist = new DigitRecognizer("train-images.idx3-ubyte", "train-labels.idx1-ubyte");
            Log.d("OCR", "Loading MNIST done");
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:johnhany,項目名稱:MOAAP,代碼行數:16,代碼來源:MainActivity.java

示例4: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS: {
            Log.i(TAG, "OpenCV loaded successfully");
            mOpenCvCameraView.enableView();
            try {
                initializeOpenCVDependencies();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        break;
        default: {
            super.onManagerConnected(status);
        }
        break;
    }
}
 
開發者ID:akshika47,項目名稱:OpencvAndroid,代碼行數:19,代碼來源:MainActivity.java

示例5: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i(TAG, "OpenCV loaded successfully");

            bw = new Mat();
            hsv = new Mat();
            lowerRedRange = new Mat();
            upperRedRange = new Mat();
            downscaled = new Mat();
            upscaled = new Mat();
            contourImage = new Mat();

            hierarchyOutputVector = new Mat();
            approxCurve = new MatOfPoint2f();

            mOpenCvCameraView.enableView();
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:michaeltroger,項目名稱:shape-detection,代碼行數:26,代碼來源:MainActivity.java

示例6: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS: {
            Log.i("OpenCV", "OpenCV loaded successfully");
            mRgbMat = new Mat();
            mHsvMat = new Mat();
            mMaskMat = new Mat();
            mDilatedMat = new Mat();
            hierarchy = new Mat();
        }
        break;
        default: {
            super.onManagerConnected(status);
        }
        break;
    }
}
 
開發者ID:clementf2b,項目名稱:FaceT,代碼行數:18,代碼來源:SingleMakeupActivity.java

示例7: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
            Log.i(TAG, "OpenCV loaded successfully");

            cameraView.enableView();
            viewModeEnum = ViewModeEnum.MULTIPLE;
            cameraView.setEffect("sepia");

            break;

        default:
            super.onManagerConnected(status);
    }
}
 
開發者ID:rafaelaaraujo,項目名稱:Face-detect-framework,代碼行數:16,代碼來源:MultipleZoomCanny.java

示例8: configOpenCv

/**
 * Config OpenCV (config callback and init OpenCV).
 * When OpenCV is ready, it starts monitoring.
 */
private void configOpenCv() {
    // OpenCV callback
    BaseLoaderCallback loaderCallback = new BaseLoaderCallback(this) {
        @Override
        public void onManagerConnected(final int status) {
            if (status == LoaderCallbackInterface.SUCCESS) {
                openCvLoaded = true;
                startMonitoring();
            } else {
                super.onManagerConnected(status);
            }
        }
    };
    // Init openCV
    OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_2_0, this, loaderCallback);
}
 
開發者ID:davidmigloz,項目名稱:go-bees,代碼行數:20,代碼來源:MonitoringService.java

示例9: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i(TAG, "OpenCV loaded successfully");

            /* Now enable camera view to start receiving frames */
            mOpenCvCameraView.setOnTouchListener(Puzzle15Activity.this);
            mOpenCvCameraView.enableView();
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:xunqun,項目名稱:OpenCV-AndroidSamples-master,代碼行數:17,代碼來源:Puzzle15Activity.java

示例10: onManagerConnected

@Override
public void onManagerConnected(int status)
{
	switch (status)
	{
		case LoaderCallbackInterface.SUCCESS:
		{
			cameraView.enableView();
			break;
		}
		default:
		{
			super.onManagerConnected(status);
			break;
		}
	}
}
 
開發者ID:FBombace,項目名稱:ColorDetector,代碼行數:17,代碼來源:CamMainActivity.java

示例11: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) 
    {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i(TAG, "OpenCV loaded successfully");
            mOpenCvCameraView.enableView();
         //   mCameraView.setOnTouchListener(MainActivity.this);
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:sxxlearn2rock,項目名稱:CallCamera,代碼行數:16,代碼來源:MainActivity.java

示例12: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i(TAG, "OpenCV loaded successfully");

            /* Now enable camera view to start receiving frames */
            cOpenCvCameraView.enableView();
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:JonathanHolland,項目名稱:iSee,代碼行數:16,代碼來源:CameraActivity.java

示例13: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i(TAG, "OpenCV loaded successfully");

            // Load native library after(!) OpenCV initialization
            System.loadLibrary("SmartObjectRecognition");

            mOpenCvCameraView.enableFpsMeter();
            mOpenCvCameraView.enableView();
            mOpenCvCameraView.setOnTouchListener(SmartObjectRecognitionActivity.this);

        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:iisy,項目名稱:SmartObjectRecognition,代碼行數:21,代碼來源:SmartObjectRecognitionActivity.java

示例14: onManagerConnected

@Override
public void onManagerConnected(int status) {
	switch (status) {
	case LoaderCallbackInterface.SUCCESS: {
		_opencvCameraView.enableView();
		_hsvMat = new Mat();
		_processedMat = new Mat();
		_dilatedMat = new Mat();
	}
		break;
	default: {
		super.onManagerConnected(status);
	}
		break;
	}
}
 
開發者ID:IeiuniumLux,項目名稱:AAV,代碼行數:16,代碼來源:AAVActivity.java

示例15: onManagerConnected

@Override
public void onManagerConnected(int status) {
    switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i(TAG, "OpenCV loaded successfully");

            // Load native library after(!) OpenCV initialization
            System.loadLibrary("detection_based_tracker");




            mOpenCvCameraView.enableView();
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
 
開發者ID:sherrardTr4129,項目名稱:Mobile-Haar-Tester-Android,代碼行數:21,代碼來源:FdActivity.java


注:本文中的org.opencv.android.LoaderCallbackInterface.SUCCESS屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。