Class SleeveDetection

java.lang.Object
org.openftc.easyopencv.OpenCvPipeline
org.firstinspires.ftc.teamcode.subsystems.vision.SleeveDetection

public class SleeveDetection extends org.openftc.easyopencv.OpenCvPipeline
OpenCvPipeline to detect sleeves given color ranges (PowerPlay! code)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static int
     
    (package private) int
     
    static int
     
    static int
     
    (package private) org.opencv.core.Point
     
    (package private) org.opencv.core.Point
     
    (package private) static int
     
    (package private) static int
     
    (package private) static int
     

    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
    SleeveDetection(int boundX, int boundY, int width, int height)
    Constructor for SleeveDetection class
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an enum being the current position where the robot will park
    org.opencv.core.Mat
    processFrame(org.opencv.core.Mat input)
     

    Methods inherited from class org.openftc.easyopencv.OpenCvPipeline

    getUserContextForDrawHook, init, onDrawFrame, onViewportTapped, requestViewportDrawHook, saveMatToDisk, saveMatToDiskFullPath

    Methods inherited from class java.lang.Object

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

    • X

      static int X
    • Y

      static int Y
    • W

      static int W
    • REGION_WIDTH

      public static int REGION_WIDTH
    • H

      static int H
    • REGION_HEIGHT

      public static int REGION_HEIGHT
    • sleeve_pointA

      org.opencv.core.Point sleeve_pointA
    • sleeve_pointB

      org.opencv.core.Point sleeve_pointB
    • position

      int position
  • Constructor Details

    • SleeveDetection

      public SleeveDetection(int boundX, int boundY, int width, int height)
      Constructor for SleeveDetection class
      Parameters:
      boundX - The bound in the X direction for camera
      boundY - The bound in the Y direction for camera
      width - Width
      height - Height
  • Method Details

    • processFrame

      public org.opencv.core.Mat processFrame(org.opencv.core.Mat input)
      Specified by:
      processFrame in class org.openftc.easyopencv.OpenCvPipeline
    • getPosition

      public int getPosition()
      Returns an enum being the current position where the robot will park