public class Detection
Single result of object detection.
Constructor and Description |
---|
Detection(android.graphics.RectF boundingBox,
DetectionClass detectionClass,
double confidence)
Single result of object detection.
|
Modifier and Type | Method and Description |
---|---|
android.graphics.RectF |
component1()
Relative coordinates of rectangle bounding the detected object on the image.
|
DetectionClass |
component2()
Class of the detected object.
|
double |
component3()
Confidence of determining a detection class.
|
Detection |
copy(android.graphics.RectF boundingBox,
DetectionClass detectionClass,
double confidence)
Single result of object detection.
|
boolean |
equals(java.lang.Object p) |
android.graphics.RectF |
getBoundingBox()
Relative coordinates of rectangle bounding the detected object on the image.
|
double |
getConfidence()
Confidence of determining a detection class.
|
DetectionClass |
getDetectionClass()
Class of the detected object.
|
int |
hashCode() |
java.lang.String |
toString() |
public Detection(android.graphics.RectF boundingBox, DetectionClass detectionClass, double confidence)
Single result of object detection.
boundingBox
- Relative coordinates of rectangle bounding the detected object on the image.Expressed in points in 0;1 range relative to image rectangledetectionClass
- Class of the detected object.confidence
- Confidence of determining a detection class.boundingBox
- Relative coordinates of rectangle bounding the detected object on the image.
Expressed in points in 0;1 range relative to image rectangledetectionClass
- Class of the detected object.confidence
- Confidence of determining a detection class.public android.graphics.RectF getBoundingBox()
Relative coordinates of rectangle bounding the detected object on the image.
Expressed in points in 0;1 range relative to image rectangle
public DetectionClass getDetectionClass()
Class of the detected object.
public double getConfidence()
Confidence of determining a detection class.
public android.graphics.RectF component1()
Relative coordinates of rectangle bounding the detected object on the image.
Expressed in points in 0;1 range relative to image rectangle
public DetectionClass component2()
Class of the detected object.
public double component3()
Confidence of determining a detection class.
public Detection copy(android.graphics.RectF boundingBox, DetectionClass detectionClass, double confidence)
Single result of object detection.
boundingBox
- Relative coordinates of rectangle bounding the detected object on the image.
Expressed in points in 0;1 range relative to image rectangledetectionClass
- Class of the detected object.confidence
- Confidence of determining a detection class.public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)