本文整理匯總了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;
}
}