},"Constructs a new landmark mapper from a file containing mappings from one set of landmark identifiers to another.",py::arg("filename"))
},"Constructs a new landmark mapper from a file containing mappings from one set of landmark identifiers to another.",py::arg("filename"))
// We can't expose the convert member function yet - need std::optional (or some trick with self/this and a lambda)
// We can't expose the convert member function yet - need std::optional (or some trick with self/this and a lambda)
.def("get_vertex_id",&core::LandmarkMapper::get_vertex_id,"Returns the vertex id given a landmark name")
;
;
py::class_<core::Mesh>(core_module,"Mesh","This class represents a 3D mesh consisting of vertices, vertex colour information and texture coordinates.")
py::class_<core::Mesh>(core_module,"Mesh","This class represents a 3D mesh consisting of vertices, vertex colour information and texture coordinates.")
...
@@ -187,12 +188,21 @@ PYBIND11_PLUGIN(eos) {
...
@@ -187,12 +188,21 @@ PYBIND11_PLUGIN(eos) {
py::class_<fitting::ContourLandmarks>(fitting_module,"ContourLandmarks","Defines which 2D landmarks comprise the right and left face contour.")
py::class_<fitting::ContourLandmarks>(fitting_module,"ContourLandmarks","Defines which 2D landmarks comprise the right and left face contour.")
.def_static("load",&fitting::ContourLandmarks::load,"Helper method to load contour landmarks from a text file with landmark mappings, like ibug_to_sfm.txt.",py::arg("filename"))
.def_static("load",&fitting::ContourLandmarks::load,"Helper method to load contour landmarks from a text file with landmark mappings, like ibug_to_sfm.txt.",py::arg("filename"))