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
ConstructorsConstructorDescriptionCardContour(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 aCardContourrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencv.core.MatOfPoint2fapprox()Returns the value of theapproxrecord component.doublearea()Returns the value of thearearecord component.org.opencv.core.MatOfPointcontour()Returns the value of thecontourrecord component.org.opencv.core.MatOfPoint2fReturns the value of thecontour2frecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.opencv.core.MatReturns the value of theoriginalFramerecord component.doubleReturns the value of theperimeterrecord component.final StringtoString()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 aCardContourrecord class.- Parameters:
originalFrame- the value for theoriginalFramerecord componentcontour- the value for thecontourrecord componentcontour2f- the value for thecontour2frecord componentarea- the value for thearearecord componentperimeter- the value for theperimeterrecord componentapprox- the value for theapproxrecord 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 theoriginalFramerecord component.- Returns:
- the value of the
originalFramerecord component
-
contour
public org.opencv.core.MatOfPoint contour()Returns the value of thecontourrecord component.- Returns:
- the value of the
contourrecord component
-
contour2f
public org.opencv.core.MatOfPoint2f contour2f()Returns the value of thecontour2frecord component.- Returns:
- the value of the
contour2frecord component
-
area
public double area()Returns the value of thearearecord component.- Returns:
- the value of the
arearecord component
-
perimeter
public double perimeter()Returns the value of theperimeterrecord component.- Returns:
- the value of the
perimeterrecord component
-
approx
public org.opencv.core.MatOfPoint2f approx()Returns the value of theapproxrecord component.- Returns:
- the value of the
approxrecord component
-