本文整理匯總了Java中org.opencv.android.OpenCVLoader.initDebug方法的典型用法代碼示例。如果您正苦於以下問題:Java OpenCVLoader.initDebug方法的具體用法?Java OpenCVLoader.initDebug怎麽用?Java OpenCVLoader.initDebug使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.opencv.android.OpenCVLoader
的用法示例。
在下文中一共展示了OpenCVLoader.initDebug方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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);
}
}
示例2: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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_0_0, this, mLoaderCallback);
} else {
Log.d("OpenCV", "OpenCV library found inside package. Using it!");
mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
}
FaceConsumer consumer = new FaceConsumer(faceProcessQueue);
mProcessThread = new Thread(consumer);
mProcessThread.start();
System.out.println("faceConsumer has been started");
}
示例3: startCamera
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
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();
}
}
示例4: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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);
}
示例5: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@Override
public void onResume() {
super.onResume();
if (!OpenCVLoader.initDebug()) {
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_2_0,
this, mLoaderCallback);
} else {
mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
}
}
示例6: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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);
}
}
示例7: initializeOpenCVLibrary
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
private void initializeOpenCVLibrary() {
if (!OpenCVLoader.initDebug()) {
Log.e(this.getClass().getSimpleName(), " OpenCVLoader.initDebug(), not working.");
} else {
Log.d(this.getClass().getSimpleName(), " OpenCVLoader.initDebug(), working.");
}
}
示例8: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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);
}
}
示例9: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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);
}
init();
CameraProcessActivity.this.processState = false;
}
示例10: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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);
}
}
示例11: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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_0_0, this, mLoaderCallback);
} else {
Log.d(TAG, "OpenCV library found inside package. Using it!");
mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
}
JniManager.start();
mOpenCvCameraView.enableView();
}
示例12: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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_2_4_10, this, mLoaderCallback);
} else {
Log.d(TAG, "OpenCV library found inside package. Using it!");
mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
}
}
示例13: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@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_2_0, this, mLoaderCallback);
} else {
Log.d(TAG, "OpenCV library found inside package. Using it!");
mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
}
RobotLog.vv(TAG, "onResume()");
}
示例14: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@Override
public void onResume() {
super.onResume();
if (!OpenCVLoader.initDebug()) {
Log.d(TAG, "onResume :: Internal OpenCV library not found.");
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_2_0, this, mLoaderCallback);
} else {
Log.d(TAG, "onResume :: OpenCV library found inside package. Using it!");
}
}
示例15: onResume
import org.opencv.android.OpenCVLoader; //導入方法依賴的package包/類
@Override
protected void onResume() {
super.onResume();
if (!OpenCVLoader.initDebug()) {
Log.d(LOG_TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization");
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback);
} else {
Log.d(LOG_TAG, "OpenCV library found inside package. Using it!");
mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
}
Log.d(DEBUG_TAG, "on resume");
}