Documentation of 'boofcv.io.VideoCallBack' Java class
VideoCallBack
boofcv.io

Interface VideoCallBack<T extends ImageBase>



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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and 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, java.lang.Object sourceData, long timeStamp)
      Passes in the next frame in the sequence.
      void stopped()
      Called when the video stream has stopped.
      boolean stopRequested()
      Used to inform the video stream if a request has been made to stop processing the video sequence.
    • Method Detail

      • 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,
                       java.lang.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

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.