Record Class YoloDetector.Detection
java.lang.Object
java.lang.Record
org.episteme.core.media.vision.detection.YoloDetector.Detection
- Enclosing class:
YoloDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.toString()Returns a string representation of this record class.floatx1()Returns the value of thex1record component.floatx2()Returns the value of thex2record component.floaty1()Returns the value of they1record component.floaty2()Returns the value of they2record component.
-
Constructor Details
-
Detection
Creates an instance of aDetectionrecord class.- Parameters:
label- the value for thelabelrecord componentconfidence- the value for theconfidencerecord componentx1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
confidence
public float confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
x1
public float x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public float y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
x2
public float x2()Returns the value of thex2record component.- Returns:
- the value of the
x2record component
-
y2
public float y2()Returns the value of they2record component.- Returns:
- the value of the
y2record component
-