Package boofcv.io

Interface VideoCallBack<T extends ImageBase<T>>


public interface VideoCallBack<T extends ImageBase<T>>
Callback for video streams.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    init(int width, int height, ImageType<T> imageType)
    Called when the camera has been initialized and the image properties are known.
    void
    nextFrame(T frame, Object sourceData, long timeStamp)
    Passes in the next frame in the sequence.
    void
    Called when the video stream has stopped.
    boolean
    Used to inform the video stream if a request has been made to stop processing the video sequence.
  • Method Details

    • init

      void init(int width, int height, ImageType<T> imageType)
      Called when the camera has been initialized and the image properties are known.
    • nextFrame

      void nextFrame(T frame, Object sourceData, long timeStamp)
      Passes in the next frame in the sequence. Time in this function should be minimized to avoid causing a back log in the video image buffer.
      Parameters:
      frame - New image frame in BoofCV image format.
      sourceData - Platform specific image data.
      timeStamp - Time the video frame was collected.
    • stopped

      void stopped()
      Called when the video stream has stopped.
    • stopRequested

      boolean stopRequested()
      Used to inform the video stream if a request has been made to stop processing the video sequence. This function is checked after each call to nextFrame(boofcv.struct.image.ImageBase,Object, long).
      Returns:
      true if a request has been made to stop the steam