Class SpotDetectionPipeline

java.lang.Object
org.openftc.easyopencv.OpenCvPipeline
com.pocolifo.robobase.vision.AbstractResultCvPipeline<SpikePosition>
com.pocolifo.robobase.vision.SpotDetectionPipeline

public class SpotDetectionPipeline extends AbstractResultCvPipeline<SpikePosition>
  • Field Summary

    Fields inherited from class com.pocolifo.robobase.vision.AbstractResultCvPipeline

    result

    Fields inherited from class org.openftc.easyopencv.OpenCvPipeline

    MEMLEAK_DETECTION_ENABLED, MEMLEAK_DETECTION_PIPELINE_SETTLE_DELAY_SECONDS, MEMLEAK_THRESHOLD_MB
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the current result of the pipeline.
    void
    Runs when the pipeline is first set.
    void
    init(org.opencv.core.Mat firstFrame)
     
    org.opencv.core.Mat
    processFrame(org.opencv.core.Mat input)
     

    Methods inherited from class org.openftc.easyopencv.OpenCvPipeline

    getUserContextForDrawHook, onDrawFrame, onViewportTapped, requestViewportDrawHook, saveMatToDisk, saveMatToDiskFullPath

    Methods inherited from class java.lang.Object

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

    • SpotDetectionPipeline

      public SpotDetectionPipeline(Alliance alliance)
  • Method Details

    • init

      public void init(org.opencv.core.Mat firstFrame)
      Overrides:
      init in class org.openftc.easyopencv.OpenCvPipeline
    • processFrame

      public org.opencv.core.Mat processFrame(org.opencv.core.Mat input)
      Specified by:
      processFrame in class org.openftc.easyopencv.OpenCvPipeline
      Parameters:
      input - Mat to be processed
      Returns:
      Processed Mat
    • getResult

      public SpikePosition getResult()
      Description copied from class: AbstractResultCvPipeline
      Get the current result of the pipeline.
      Overrides:
      getResult in class AbstractResultCvPipeline<SpikePosition>
      Returns:
      The result of the pipeline.
    • init

      public void init()
      Description copied from class: AbstractResultCvPipeline
      Runs when the pipeline is first set.
      Specified by:
      init in class AbstractResultCvPipeline<SpikePosition>