@Override
        public void onManagerConnected(int status) {
          switch (status) {
            case LoaderCallbackInterface.SUCCESS:
              {

                // mOpenCvCameraView.enableView();
                initializeOpenCVDependencies();
              }
              break;
            default:
              {
                super.onManagerConnected(status);
              }
              break;
          }
        }
示例#2
0
        @Override
        public void onManagerConnected(int status) {
          switch (status) {
            case LoaderCallbackInterface.SUCCESS:
              {
                cameraView.enableView();

                cameraView.setOnClickListener(
                    new View.OnClickListener() {
                      @Override
                      public void onClick(View v) {
                        captureBackground = true;
                      }
                    });
              }
              break;
            default:
              {
                super.onManagerConnected(status);
              }
              break;
          }
        }