Example usage for org.opencv.android CameraBridgeViewBase setMaxFrameSize

List of usage examples for org.opencv.android CameraBridgeViewBase setMaxFrameSize

Introduction

In this page you can find the example usage for org.opencv.android CameraBridgeViewBase setMaxFrameSize.

Prototype

public void setMaxFrameSize(int maxWidth, int maxHeight) 

Source Link

Document

This method sets the maximum size that camera frame is allowed to be.

Usage

From source file:com.raulh82vlc.face_detection_sample.opencv.presentation.FDOpenCVPresenter.java

License:Apache License

public void setCamera(CameraBridgeViewBase openCvCameraView) {
    openCvCameraView.setVisibility(SurfaceView.VISIBLE);
    openCvCameraView.setMaxFrameSize(MAX_WIDTH, MAX_HEIGHT);
    openCvCameraView.setCvCameraViewListener(this);
}