Interface Landmarks
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
LandmarksImpl
Object that contains all landmarks of the face.
Provides methods for working with landmarks on the face.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addLandmark
(Landmark landmark) Adds all types ofLandmark
(including standard or custom) to the face if they are not already present.clone()
Clones the landmarksReturns all feature points or empty list.int
Generates a new unique ID for a user-defined landmark.boolean
Checks if HumanFace has feature pointsboolean
removeLandmark
(Landmark landmark) Removes any type ofLandmark
from the face.
-
Method Details
-
getAllLandmarks
Returns all feature points or empty list.- Returns:
- All landmarks of the face or empty list if no landmarks are present.
-
getStandardFeaturePoints
- Returns:
- list of standard feature points
-
getCustomLandmarks
- Returns:
- list of custom feature points
-
addLandmark
Adds all types ofLandmark
(including standard or custom) to the face if they are not already present.- Parameters:
landmark
-Landmark
to add- Returns:
true
if the landmark was added,false
otherwise
-
removeLandmark
Removes any type ofLandmark
from the face.- Parameters:
landmark
- Landmark to remove- Returns:
- true if the landmark was removed, false otherwise
-
hasLandmarks
boolean hasLandmarks()Checks if HumanFace has feature points- Returns:
- true if yes and false if not
-
getNextUserLandmarkId
int getNextUserLandmarkId()Generates a new unique ID for a user-defined landmark. The ID series for user-defined landmarks starts fromID 501
.- Returns:
- a new unique ID for a user-defined landmark
-
clone
Landmarks clone()Clones the landmarks- Returns:
- a clone of the landmarks
-