Class FrameProvider

java.lang.Object
org.photonvision.vision.frame.FrameProvider
All Implemented Interfaces:
Supplier<Frame>, Releasable
Direct Known Subclasses:
CpuImageProcessor, LibcameraGpuFrameProvider

public abstract class FrameProvider extends Object implements Supplier<Frame>, Releasable
  • Field Details

    • sequenceID

      protected int sequenceID
    • cameraPropertiesCached

      public boolean cameraPropertiesCached
  • Constructor Details

    • FrameProvider

      public FrameProvider()
  • Method Details

    • onCameraConnected

      protected void onCameraConnected()
    • isConnected

      public abstract boolean isConnected()
    • checkCameraConnected

      public abstract boolean checkCameraConnected()
    • hasConnected

      public boolean hasConnected()
      Returns if the camera has connected at some point. This is not if it is currently connected.
    • getName

      public abstract String getName()
    • requestFrameThresholdType

      public abstract void requestFrameThresholdType(FrameThresholdType type)
      Ask the camera to produce a certain kind of processed image (e.g. HSV or greyscale)
    • requestFrameRotation

      public abstract void requestFrameRotation(ImageRotationMode rotationMode)
      Ask the camera to rotate frames it outputs
    • requestFrameCopies

      public abstract void requestFrameCopies(boolean copyInput, boolean copyOutput)
      Ask the camera to provide either the input, output, or both frames.
    • requestHsvSettings

      public abstract void requestHsvSettings(HSVPipe.HSVParams params)
      Ask the camera to rotate frames it outputs