Interface LandmarksIO


public interface LandmarksIO
IO services for landmarks and feature points.
  • Method Details

    • importFeaturePoints

      static List<Landmark> importFeaturePoints(String path, String fileName) throws IOException
      Load feature points associated with a face from either CSV or FP file.
      Parameters:
      path - Path to the file
      fileName - CSV or FP file with feature points of the face
      Returns:
      List of feature points
      Throws:
      IOException - on error
    • exportFeaturePoints

      static void exportFeaturePoints(List<Landmark> featurePointList, String path, String fileName, String format) throws IOException
      Method calls either @see FeaturePointCsvExporter or @see FeaturePointFpExporter based on the format given as parameter
      Parameters:
      featurePointList - List of feature points
      path - Path to the directory with the face data
      fileName - Name of the face
      format - Either "CSV" or "FP"
      Throws:
      IOException - on error