Package dev.ioliver.dtos
Record Class CardContour
java.lang.Object
java.lang.Record
dev.ioliver.dtos.CardContour
public record CardContour(org.opencv.core.Mat originalFrame, org.opencv.core.MatOfPoint contour, org.opencv.core.MatOfPoint2f contour2f, double area, double perimeter, org.opencv.core.MatOfPoint2f approx)
extends Record
-
Constructor Summary
ConstructorDescriptionCardContour
(org.opencv.core.Mat originalFrame, org.opencv.core.MatOfPoint contour, org.opencv.core.MatOfPoint2f contour2f, double area, double perimeter, org.opencv.core.MatOfPoint2f approx) Creates an instance of aCardContour
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencv.core.MatOfPoint2f
approx()
Returns the value of theapprox
record component.double
area()
Returns the value of thearea
record component.org.opencv.core.MatOfPoint
contour()
Returns the value of thecontour
record component.org.opencv.core.MatOfPoint2f
Returns the value of thecontour2f
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.opencv.core.Mat
Returns the value of theoriginalFrame
record component.double
Returns the value of theperimeter
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CardContour
public CardContour(org.opencv.core.Mat originalFrame, org.opencv.core.MatOfPoint contour, org.opencv.core.MatOfPoint2f contour2f, double area, double perimeter, org.opencv.core.MatOfPoint2f approx) Creates an instance of aCardContour
record class.- Parameters:
originalFrame
- the value for theoriginalFrame
record componentcontour
- the value for thecontour
record componentcontour2f
- the value for thecontour2f
record componentarea
- the value for thearea
record componentperimeter
- the value for theperimeter
record componentapprox
- the value for theapprox
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
originalFrame
public org.opencv.core.Mat originalFrame()Returns the value of theoriginalFrame
record component.- Returns:
- the value of the
originalFrame
record component
-
contour
public org.opencv.core.MatOfPoint contour()Returns the value of thecontour
record component.- Returns:
- the value of the
contour
record component
-
contour2f
public org.opencv.core.MatOfPoint2f contour2f()Returns the value of thecontour2f
record component.- Returns:
- the value of the
contour2f
record component
-
area
public double area()Returns the value of thearea
record component.- Returns:
- the value of the
area
record component
-
perimeter
public double perimeter()Returns the value of theperimeter
record component.- Returns:
- the value of the
perimeter
record component
-
approx
public org.opencv.core.MatOfPoint2f approx()Returns the value of theapprox
record component.- Returns:
- the value of the
approx
record component
-