title: Trouble using OpenCV in Android
body: <p>I used <a href="https://android.jlelse.eu/a-beginners-guide-to-setting-up-opencv-android-library-on-android-studio-19794e220f3c" rel="nofollow noreferrer">A Beginner’s Guide to Setting up OpenCV Android Library on Android Studio</a> as a guide to setup OpenCV in an Android Studio project. I have got the project to build and install on my phone but I am not getting a video feed from the camera (that is the <code>JavaCameraView</code> is empty).  </p>
  
  <p>The main issues seems to be that the  <a href="https://play.google.com/store/apps/details?id=org.opencv.engine" rel="nofollow noreferrer">OpenCV Manager</a> has been pulled from the google play store. :,( </p>
  
  <p>I have tried the solution from the <a href="https://stackoverflow.com/questions/40681578/how-to-run-opencv-code-without-opencv-manager">this SO question</a> to try to use opencv without needing to get it off the play store, but that didn't help either. </p>
  
  <p>I have all the required permissions to use use the camera on my app. </p>
  
  <p>My code is pretty similar to the one from the Beginner’s Guide tutorial, but let me know if you need to see any more of my code. </p>
  
  <p>My onResume: </p>
  
  <pre><code>public override fun onResume() {
      super.onResume()
      if (!OpenCVLoader.initDebug()) {
          OpenCVLoader.initDebug()
      }
      loaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS)
  }
  </code></pre>
  
  <p>BaseLoadCallback:</p>
  
  <pre><code>private val loaderCallback = object : BaseLoaderCallback(this) {
      override fun onManagerConnected(status: Int) {
          when (status) {
              LoaderCallbackInterface.SUCCESS -&gt; {
                  Log.i(TAG, "OpenCV loaded successfully")
                  opencv_camera_view.enableView()
                  opencv_camera_view.setOnTouchListener(this@MainActivity)
              }
              else -&gt; {
                  super.onManagerConnected(status)
              }
          }
      }
  }
  </code></pre>