title: How to use the onCameraFrame function efficiently by not processing every single frame to increase the fps
body: <p>I am working on an Augmented Reality Android application. I am getting the fps of approx 20 frames when no processing is being done and the fps of approx 3 frames when I run my ARFilter (Device: ASUS TRANSFORMER PAD TF700T). I am using ORB, FREAK and BRUTEFORCE HAMMING for detection, description and matching respectively. I have tried to set the resolution by setMaxFrameSize(640, 480); but I could manage only an increase of 1fps. Should I use a counter and what actually happens when a counter runs through the "onCameraFrame" function. </p>
  
  <pre><code>@Override
      public Mat onCameraFrame(final CvCameraViewFrame inputFrame) {
          final Mat rgba = inputFrame.rgba();
  
          if (ARFil != null) {
              // if (counter % 10 == 0) {
              ARFil[ARFilInd].apply(rgba, rgba);
              // }
  
              // addCounter();
          }
  
          return rgba;
      }
  
  
  // Added method addCounter()
      /*
       * private void addCounter() { if (counter &gt; 20) { counter = 0;
       * 
       * } counter++;
       * 
       * }
       */
  </code></pre>
  
  <p>Thanks in advance :)</p>