labeller¶
- menpo.landmark.labels.labeller(landmarkable, group_label, label_func)[source]¶
Takes a landmarkable object and a group label indicating which set of landmarks should have semantic meaning attached to them. The labelling function will add a new landmark group to each object that have been semantically annotated.
Parameters: landmarkable: :class:`menpo.landmark.base.Landmarkable` :
Landmarkable object
group_label: string :
The group label of the landmark group to apply semantic labels to.
label_func: func :
A labelling function taken from this module. func should take a LandmarkGroup and return a new LandmarkGroup with semantic labels applied.
Returns: landmarkable : Landmarkable
landmarkable with label (this is just for convenience, the object will actually be modified in place)