title: OpenCV Native Camera Library for Android 5.0 onwards?
body: <p>I am building an android application using OpenCV when I noticed some discrepancies in how the OpenCV library takes the video input of the Android Device. I am using a Nexus 5 Second Generation.</p>
  <p>Below, I have a screenshot from the OpenCV Application, showing a square:</p>
  <p><img src="https://i.stack.imgur.com/GRPXV.jpg" alt="OpenCV Screenshot" /></p>
  <p>And as you can see, the square seems to be stretched, and is now a rectangle. For comparison, here is a screenshot from the Camera application:</p>
  <p><img src="https://i.stack.imgur.com/a3YHO.jpg" alt="Camera Application Screenshot" /></p>
  <p>However, from this screenshot taken from the native camera application, the squares are really squares. I then changed my code from:</p>
  <pre><code>&lt;org.opencv.android.JavaCameraView 
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;fill_parent&quot;
      android:id=&quot;@+id/color_blob_detection_activity_surface_view&quot; /&gt;
  </code></pre>
  <p>to</p>
  <pre><code>&lt;org.opencv.android.NativeCameraView 
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;fill_parent&quot;
      android:id=&quot;@+id/color_blob_detection_activity_surface_view&quot; /&gt;
  </code></pre>
  <p>This works fine on devices running Android 4.0-4.4, however, when I ran it on my Nexus 5 running on Lollipop (5.0), it gave me the <code>&quot;It seems that your device does not support camera (or it is locked).&quot;</code> error. I have the camera permissions in my Android Manifest. I then checked the files in the libs folders, and then I noticed that I had the libnative_camera_r2.2.0.so until libnative_camera_r4.4.0.so, I inferred that the rx.x.x.so refers to the version number, and the reason why it does not work is because there's no native camera library for Android 5.0.</p>
  <p>My question now is:</p>
  <p>When will a libnative_camera_r5.0.0.so be released? I just can't use a lower version because I am also using some features unique to Android Lollipop.</p>