本文整理汇总了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;
}
}
示例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;
}
}
};
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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);
}
}
示例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);
}
示例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;
}
}
示例10: onManagerConnected
@Override
public void onManagerConnected(int status)
{
switch (status)
{
case LoaderCallbackInterface.SUCCESS:
{
cameraView.enableView();
break;
}
default:
{
super.onManagerConnected(status);
break;
}
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}