Ejemplo n.º 1
0
  @Override
  public void onCameraViewStarted(int width, int height) {
    cameraView.setResolution(cameraView.getResolutionList().get(10));

    // creates a new BackgroundSubtractorMOG class with the arguments

    // creates matrices to hold the different frames
    mRgb = new Mat();
    mFGMask = new Mat();
    mGray = new Mat();

    // arraylist to hold individual contours
    contours = new ArrayList<MatOfPoint>();
  }