Class DetectedObject


  • public class DetectedObject
    extends Object
    An object detected in an image.
    • Constructor Detail

      • DetectedObject

        public DetectedObject()
    • Method Detail

      • rectangle

        public BoundingRect rectangle()
        Get the rectangle value.
        Returns:
        the rectangle value
      • objectProperty

        public String objectProperty()
        Get the objectProperty value.
        Returns:
        the objectProperty value
      • withObjectProperty

        public DetectedObject withObjectProperty​(String objectProperty)
        Set the objectProperty value.
        Parameters:
        objectProperty - the objectProperty value to set
        Returns:
        the DetectedObject object itself.
      • confidence

        public double confidence()
        Get the confidence value.
        Returns:
        the confidence value
      • withConfidence

        public DetectedObject withConfidence​(double confidence)
        Set the confidence value.
        Parameters:
        confidence - the confidence value to set
        Returns:
        the DetectedObject object itself.
      • parent

        public ObjectHierarchy parent()
        Get the parent value.
        Returns:
        the parent value
      • withParent

        public DetectedObject withParent​(ObjectHierarchy parent)
        Set the parent value.
        Parameters:
        parent - the parent value to set
        Returns:
        the DetectedObject object itself.