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 -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static int(package private) intstatic intstatic int(package private) org.opencv.core.Point(package private) org.opencv.core.Point(package private) static int(package private) static int(package private) static intFields inherited from class org.openftc.easyopencv.OpenCvPipeline
MEMLEAK_DETECTION_ENABLED, MEMLEAK_DETECTION_PIPELINE_SETTLE_DELAY_SECONDS, MEMLEAK_THRESHOLD_MB -
Constructor Summary
ConstructorsConstructorDescriptionSleeveDetection(int boundX, int boundY, int width, int height) Constructor for SleeveDetection class -
Method Summary
Modifier and TypeMethodDescriptionintReturns an enum being the current position where the robot will parkorg.opencv.core.MatprocessFrame(org.opencv.core.Mat input) Methods inherited from class org.openftc.easyopencv.OpenCvPipeline
getUserContextForDrawHook, init, onDrawFrame, onViewportTapped, requestViewportDrawHook, saveMatToDisk, saveMatToDiskFullPath
-
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 cameraboundY- The bound in the Y direction for camerawidth- Widthheight- Height
-
-
Method Details
-
processFrame
public org.opencv.core.Mat processFrame(org.opencv.core.Mat input) - Specified by:
processFramein classorg.openftc.easyopencv.OpenCvPipeline
-
getPosition
public int getPosition()Returns an enum being the current position where the robot will park
-