Package trclib.vision
Interface TrcVisionTargetInfo.ObjectInfo
- All Known Implementing Classes:
FtcLimelightVision.DetectedObject
,FtcVisionAprilTag.DetectedObject
,TrcOpenCvColorBlobPipeline.DetectedObject
,TrcOpenCvDetector.DetectedObject
,TrcOpenCvFaceDetector.DetectedObject
- Enclosing class:
- TrcVisionTargetInfo<O extends TrcVisionTargetInfo.ObjectInfo>
public static interface TrcVisionTargetInfo.ObjectInfo
This interface implements a method to get the rectangle of the detected object. This should be implemented by
a vision detector class.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
This method returns the area of the detected object.This method returns the object's real world depth.This method returns the projected 2D pose on the ground of the detected object relative to the camera.org.opencv.core.Rect
This method returns the rect of the detected object.This method returns the object's real world width.This method returns the object's pixel height.This method returns the object's pixel width.This method returns the object's rotated rectangle angle.org.opencv.core.Point[]
This method returns the rotated rect vertices of the detected object.
-
Method Details
-
getObjectRect
org.opencv.core.Rect getObjectRect()This method returns the rect of the detected object.- Returns:
- rect of the detected object.
-
getObjectArea
double getObjectArea()This method returns the area of the detected object.- Returns:
- area of the detected object.
-
getPixelWidth
Double getPixelWidth()This method returns the object's pixel width.- Returns:
- object pixel width, null if not supported.
-
getPixelHeight
Double getPixelHeight()This method returns the object's pixel height.- Returns:
- object pixel height, null if not supported.
-
getRotatedAngle
Double getRotatedAngle()This method returns the object's rotated rectangle angle.- Returns:
- rotated rectangle angle.
-
getObjectPose
TrcPose2D getObjectPose()This method returns the projected 2D pose on the ground of the detected object relative to the camera.- Returns:
- pose of the detected object relative to camera.
-
getObjectWidth
Double getObjectWidth()This method returns the object's real world width.- Returns:
- object real world width, null if not supported.
-
getObjectDepth
Double getObjectDepth()This method returns the object's real world depth.- Returns:
- object real world depth, null if not supported.
-
getRotatedRectVertices
org.opencv.core.Point[] getRotatedRectVertices()This method returns the rotated rect vertices of the detected object.- Returns:
- rotated rect vertices.
-