当前位置: 首页>>代码示例>>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;未经允许,请勿转载。