import_landmark_files¶
-
menpo.io.
import_landmark_files
(pattern, max_landmarks=None, verbose=False)[source]¶ Multiple landmark file import generator.
Note that this is a generator function.
Parameters: - pattern (str) – A glob path pattern to search for landmark files. Every
landmark file found to match the glob will be imported one by one.
See
landmark_file_paths
for more details of what landmark files will be found. - max_landmark_files (positive int, optional) – If not
None
, only import the firstmax_landmark_files
found. Else, import all. - verbose (bool, optional) – If
True
progress of the importing will be dynamically reported.
Returns: generator (generator yielding
LandmarkGroup
) – Generator yieldingLandmarkGroup
instances found to match the glob pattern provided.Raises: ValueError
– If no landmarks are found at the provided glob.- pattern (str) – A glob path pattern to search for landmark files. Every
landmark file found to match the glob will be imported one by one.
See