Interface LandmarksIO
public interface LandmarksIO
IO services for landmarks and feature points.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic void
Method calls either @see FeaturePointCsvExporter or @see FeaturePointFpExporter based on the format given as parameterimportFeaturePoints
(String path, String fileName) Load feature points associated with a face from either CSV or FP file.
-
Method Details
-
importFeaturePoints
Load feature points associated with a face from either CSV or FP file.- Parameters:
path
- Path to the filefileName
- 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 pointspath
- Path to the directory with the face datafileName
- Name of the faceformat
- Either "CSV" or "FP"- Throws:
IOException
- on error
-