title: Using JavaCV with Kotlin
body: <p>I'm currently attempting to start a project using JavaCV in Kotlin. I'm using IntelliJ Idea as my IDE. I'm using JavaCV 1.3.2 and OpenCV 3.20. 
  This is my setup for the module's dependancies for OpenCV:</p>
  
  <p><a href="https://i.stack.imgur.com/Ycmwx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ycmwx.jpg" alt="OpenCV Project Library Configuration"></a></p>
  
  <p>and for JavaCV:</p>
  
  <p><a href="https://i.stack.imgur.com/QFboF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QFboF.jpg" alt="JavaCV Project Library Configuration"></a></p>
  
  <p>I have opencv before javacv in the dependancies.
  To test that OpenCV is present and valid, I wrote the below to test. As I can loadLibrary and the version number shows correctly I can assume that OpenCV is actually working. </p>
  
  <pre><code>import org.opencv.core.Core
  import org.opencv.core.Mat
  import org.opencv.core.CvType
  import org.opencv.core.Scalar
  import org.bytedeco.javacv.OpenCVFrameGrabber
  
  fun main(args : Array&lt;String&gt;) {
      println("Test Built Successfully")
      System.loadLibrary(Core.NATIVE_LIBRARY_NAME)
      println("Running OpenCV Version ${Core.VERSION}")
      val grabber = OpenCVFrameGrabber(1)
  }
  </code></pre>
  
  <p>The line where we initialize the grabber rasies the following exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
  Caused by: java.lang.UnsatisfiedLinkError: no opencv_imgproc320 in java.library.path
  </code></pre>
  
  <p>Perhaps I am missing something here, but I have followed the instructions provided by the README.md in the Git repository for JavaCV. I haven't seen anybody else trying to use this library with Kotlin on StackOverflow, though have checked out some posts about the same exception being raised using java.</p>