Interface Landmarks

All Superinterfaces:
Serializable
All Known Implementing Classes:
LandmarksImpl

public interface Landmarks extends Serializable
Object that contains all landmarks of the face. Provides methods for working with landmarks on the face.
  • Method Details

    • getAllLandmarks

      List<Landmark> getAllLandmarks()
      Returns all feature points or empty list.
      Returns:
      All landmarks of the face or empty list if no landmarks are present.
    • getStandardFeaturePoints

      List<Landmark> getStandardFeaturePoints()
      Returns:
      list of standard feature points
    • getCustomLandmarks

      List<Landmark> getCustomLandmarks()
      Returns:
      list of custom feature points
    • addLandmark

      boolean addLandmark(Landmark landmark)
      Adds all types of Landmark (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

      boolean removeLandmark(Landmark landmark)
      Removes any type of Landmark 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 from ID 501.
      Returns:
      a new unique ID for a user-defined landmark
    • clone

      Landmarks clone()
      Clones the landmarks
      Returns:
      a clone of the landmarks