Class FaceMask
java.lang.Object
cz.fidentis.analyst.engines.face.facemasksapi.model.FaceMask
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.10.0")
public class FaceMask
extends Object
Detected face mask part. Contains the name of the detected face mask part and the 2D points that define the mask. Attributes: name: The name of the detected face mask part. points: The 2D points that define the mask
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPointsItem
(List<BigDecimal> pointsItem) boolean
static FaceMask
Create an instance of FaceMask given an JSON stringgetName()
Get nameGet pointsint
hashCode()
name
(FaceMaskVariant name) points
(List<List<BigDecimal>> points) void
setName
(FaceMaskVariant name) void
setPoints
(List<List<BigDecimal>> points) toJson()
Convert an instance of FaceMask to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FaceMask
public FaceMask()
-
-
Method Details
-
name
-
getName
Get name- Returns:
- name
-
setName
-
points
-
addPointsItem
-
getPoints
Get points- Returns:
- points
-
setPoints
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to FaceMask
-
fromJson
Create an instance of FaceMask given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of FaceMask
- Throws:
IOException
- if the JSON string is invalid with respect to FaceMask
-
toJson
Convert an instance of FaceMask to an JSON string- Returns:
- JSON string
-