Package trclib.vision

Interface TrcVideoSource<O>

Type Parameters:
O - specifies the type of the video frame.
All Known Subinterfaces:
TrcVisionProcessor<I,O>
All Known Implementing Classes:
TrcOpenCvDetector, TrcOpenCvFaceDetector

public interface TrcVideoSource<O>
This interface provides methods to get a video frame from a video source and render a video frame to a display surface.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    getFrame(O frame)
    This method takes a snapshot of the video frame.
    void
    putFrame(O frame)
    This method displays a frame buffer to the display surface.
  • Method Details

    • getFrame

      boolean getFrame(O frame)
      This method takes a snapshot of the video frame.
      Parameters:
      frame - specifies the frame buffer to hold the video snapshot.
      Returns:
      true if successful, false otherwise.
    • putFrame

      void putFrame(O frame)
      This method displays a frame buffer to the display surface.
      Parameters:
      frame - specifies the video frame to be displayed.