title: How can I convert Otaliastudios Frame object into OpenCV Mat object?
body: <p>I am using com.otaliastudios.cameraview.CameraView component from otaliastudios Library. I need to convert some of the frames to Mat objects to process using OpenCV. How can I convert Otaliastudios Frame object into OpenCV Mat object?</p>
  
  <p>Edit: The frame class I am using is located here: github.com/natario1/CameraView/blob/master/cameraview/src/main/java/com/otaliastudios/cameraview/Frame.java</p>
  
  <p>How can I know which Image format this is? Does it make a difference?</p>