Package util

Class LoggingPipeline

  • All Implemented Interfaces:
    edu.wpi.first.vision.VisionPipeline, LightningVisionPipeline

    public class LoggingPipeline
    extends java.lang.Object
    implements LightningVisionPipeline
    Logging pipeline writes images to /mnt/log on a USB device. By default, the raw image from the camera wil be used but this can be changed by overriding process(Mat)
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggingPipeline​(java.lang.String dirName, java.lang.String imgPrefix)
      Creates a new logging pipeline that logs to `img/log-dirName-unixTimeStamp/imagePrefix-imageNumber.jpg
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void log()
      Log pipeline information after process by implementing this method.
      void process​(org.opencv.core.Mat mat)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoggingPipeline

        public LoggingPipeline​(java.lang.String dirName,
                               java.lang.String imgPrefix)
        Creates a new logging pipeline that logs to `img/log-dirName-unixTimeStamp/imagePrefix-imageNumber.jpg
        Parameters:
        dirName - The directory name to write the files to
        imgPrefix - The prefix for the image '.jpg' file
    • Method Detail

      • process

        public void process​(org.opencv.core.Mat mat)
        Specified by:
        process in interface edu.wpi.first.vision.VisionPipeline