Skip to content

Commit

Permalink
Excised Policy for Webcam
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioToniolo authored Nov 29, 2020
1 parent 588e926 commit 6b1fa03
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ public void runOpMode()
webcam = OpenCvCameraFactory.getInstance().createWebcam(hardwareMap.get(WebcamName.class, "Webcam 1"), cameraMonitorViewId);
webcam.setPipeline(new SkystoneDeterminationPipeline());

// We set the viewport policy to optimized view so the preview doesn't appear 90 deg
// out when the RC activity is in portrait. We do our actual image processing assuming
// landscape orientation, though.
webcam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);

webcam.openCameraDeviceAsync(new OpenCvCamera.AsyncCameraOpenListener()
{
@Override
Expand Down

0 comments on commit 6b1fa03

Please sign in to comment.