Package inputOutput

Class LivestreamSource


public class LivestreamSource extends AbstractImageSource
provides the livestream footage from a webcam, ultrasound device or any other suitable devices.
  • Method Details Link icon

    • forDevice Link icon

      public static LivestreamSource forDevice(int id)
    • openConnection Link icon

      public boolean openConnection()
      initializes a new VideoCapture object using the deviceID. The webcam (or other video devices) is opened.
      Specified by:
      openConnection in class AbstractImageSource
      Returns:
      whether the connection was successful or not
    • getNextMat Link icon

      public org.opencv.core.Mat getNextMat()
      Transmits the matrix of the picture
      Specified by:
      getNextMat in class AbstractImageSource
      Returns:
      frameMatrix
    • closeConnection Link icon

      public boolean closeConnection()
      closes connection to the device and sets isConnected = false
      Specified by:
      closeConnection in class AbstractImageSource
      Returns:
      isConnected = false