Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

CameraSettings

Kyle Corry edited this page Jan 8, 2019 · 2 revisions

Camera settings are used by several layers of the Robot Vision API to create accurate estimates for target locations.

Creating a CameraSettings object

  • inverted: Determines whether the camera is upside down or not. If your camera is upright, you can set this to false.
  • fov: The field of view of your camera in degrees, use the camera's documentation to determine these values. Here is the WPILib documentation on calibration your camera.
  • resolution: This is the resolution of your camera's image in pixels. You can set the resolution of your camera in Java using camera.setResolution(width, height)
CameraSettings cameraSettings = new CameraSettings(inverted, fov, resolution);
Clone this wiki locally