Package util
Class LoggingPipeline
- java.lang.Object
-
- util.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 overridingprocess(Mat)
-
-
Field Summary
-
Fields inherited from interface util.LightningVisionPipeline
ntinst
-
-
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 afterprocess
by implementing this method.void
process(org.opencv.core.Mat mat)
-
-
-
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 toimgPrefix
- The prefix for the image '.jpg' file
-
-
Method Detail
-
process
public void process(org.opencv.core.Mat mat)
- Specified by:
process
in interfaceedu.wpi.first.vision.VisionPipeline
-
log
public void log()
Description copied from interface:LightningVisionPipeline
Log pipeline information afterprocess
by implementing this method.- Specified by:
log
in interfaceLightningVisionPipeline
-
-