title: Android + OpenCV: How to set camera resolution when using CameraBridgeViewBase
body: <p>Hello I am using OpenCV4Android face detection sample. I would like to know how can I get my resolution of camera and set it to other value. In this example CameraBridgeViewBase.</p>
  
  <p>I see that on object</p>
  
  <pre><code>private CameraBridgeViewBase   mOpenCvCameraView;
  </code></pre>
  
  <p>I can use </p>
  
  <pre><code>mOpenCvCameraView.setLayoutParams(); 
  </code></pre>
  
  <p>but every time I try to use it in some way I'm doing it wrong and my program crashes. Please help me with that problem.</p>