robokudo.types.annotation¶
Annotation types for robokudo.
This module provides various annotation types used for object classification, semantic information, location data, geometric shapes, and pose information. All annotation types inherit from the base Annotation class.
Classes¶
Classification annotation for objects. |
|
Semantic color annotation. |
|
Location annotation for objects. |
|
Plane annotation for surface detection. |
|
Base class for shape annotations. |
|
Cuboid shape annotation. |
|
Sphere shape annotation. |
|
Color histogram annotation. |
|
Pose annotation combining transform and annotation functionality. |
|
Position annotation combining position and annotation functionality. |
|
Timestamped pose annotation. |
|
Timestamped position annotation. |
|
Timestamped transform annotation. |
|
An abstract Encoding Type. |
|
3D bounding box annotation. |
|
Point cloud annotation. |
|
Annotation to describe the spatially nearest object to the camera. |
Module Contents¶
- class robokudo.types.annotation.Classification¶
-
Bases:
robokudo.types.core.AnnotationClassification annotation for objects.
This class represents a classification result, including the type of classification (instance, class, or shape), the class name, confidence score, and class ID.
- Variables:
-
classification_type – Type of classification (INSTANCE, CLASS, or SHAPE)
classname – Name of the classified class
confidence – Confidence score of the classification
class_id – Numeric identifier for the class
- classification_type = ''¶
- classname = ''¶
- confidence = 0.0¶
- class_id = 0¶
- class robokudo.types.annotation.SemanticColor¶
-
Bases:
robokudo.types.core.AnnotationSemantic color annotation.
This class represents semantic color information, including the color name and its ratio/proportion in the annotated object or region.
- Variables:
-
color – Name of the color
ratio – Proportion/ratio of this color in the object/region
- color = ''¶
- ratio = 0.0¶
- class robokudo.types.annotation.LocationAnnotation¶
-
Bases:
robokudo.types.core.AnnotationLocation annotation for objects.
This class represents a named location in the environment.
- Variables:
-
name – Name of the location
- name = ''¶
- class robokudo.types.annotation.Plane¶
-
Bases:
robokudo.types.core.AnnotationPlane annotation for surface detection.
This class represents a detected plane in 3D space, including its model parameters and inlier points.
- Variables:
-
model – 4-dimensional plane equation parameters [a, b, c, d] for ax + by + cz + d = 0
inliers – List of point indices that belong to this plane
- model = []¶
- inliers = []¶
- class robokudo.types.annotation.Shape¶
-
Bases:
robokudo.types.core.AnnotationBase class for shape annotations.
This class serves as a base for specific shape types like Cuboid and Sphere.
- Variables:
-
inliers – List of point indices that belong to this shape
type – Type of the shape (e.g., ‘Cuboid’, ‘Sphere’)
- inliers = []¶
- type = ''¶
- class robokudo.types.annotation.Cuboid¶
-
Bases:
ShapeCuboid shape annotation.
This class represents a cuboid shape defined by three plane equations.
- Variables:
-
model – Three plane equations defining the cuboid, shape (3,4)
- model = []¶
- class robokudo.types.annotation.Sphere¶
-
Bases:
ShapeSphere shape annotation.
This class represents a sphere shape defined by its center and radius.
- Variables:
-
radius – Radius of the sphere
center – Center coordinates of the sphere
- radius = 0.0¶
- center¶
- class robokudo.types.annotation.ColorHistogram¶
-
Bases:
robokudo.types.core.AnnotationColor histogram annotation.
This class represents a 2D color histogram, typically containing hue and saturation information.
- Variables:
-
hist – 2D histogram array
normalized – Whether the histogram is normalized
- hist = None¶
- normalized = False¶
- class robokudo.types.annotation.PoseAnnotation¶
-
Bases:
robokudo.types.tf.Pose,robokudo.types.core.AnnotationPose annotation combining transform and annotation functionality.
This class inherits from both Pose and Annotation to provide pose information as an annotation type.
- class robokudo.types.annotation.PositionAnnotation¶
-
Bases:
robokudo.types.tf.Position,robokudo.types.core.AnnotationPosition annotation combining position and annotation functionality.
This class inherits from both Position and Annotation to provide position information as an annotation type.
- class robokudo.types.annotation.StampedPoseAnnotation¶
-
Bases:
robokudo.types.tf.StampedPose,robokudo.types.core.AnnotationTimestamped pose annotation.
This class combines timestamped pose information with annotation functionality.
- class robokudo.types.annotation.StampedPositionAnnotation¶
-
Bases:
robokudo.types.tf.StampedPosition,robokudo.types.core.AnnotationTimestamped position annotation.
This class combines timestamped position information with annotation functionality.
- class robokudo.types.annotation.StampedTransformAnnotation¶
-
Bases:
robokudo.types.tf.StampedTransform,robokudo.types.core.AnnotationTimestamped transform annotation.
This class combines timestamped transform information with annotation functionality.
- class robokudo.types.annotation.Encoding¶
-
Bases:
robokudo.types.core.AnnotationAn abstract Encoding Type.
This class represents various types of encodings such as feature vectors, latent space representations, or other variables.
- Variables:
-
encoding – The encoded representation
- encoding = None¶
- class robokudo.types.annotation.BoundingBox3DAnnotation¶
-
Bases:
robokudo.types.cv.BoundingBox3D,robokudo.types.core.Annotation3D bounding box annotation.
This class combines 3D bounding box functionality with annotation capabilities.
- class robokudo.types.annotation.CloudAnnotation¶
-
Bases:
robokudo.types.cv.Points3D,robokudo.types.core.AnnotationPoint cloud annotation.
This class combines 3D point cloud functionality with annotation capabilities.
- class robokudo.types.annotation.SpatiallyNearestAnnotation¶
-
Bases:
robokudo.types.core.AnnotationAnnotation to describe the spatially nearest object to the camera. Supposed to be unique for an amount of objects or humans.