bob::python::setup_python("bindings to flandmark - a library for the localization of facial landmarks");
bob::python::setup_python("bindings to flandmark - a library for the localization of facial landmarks");
class_<Localizer>("Localizer","A key-point localization for faces using flandmark",init<conststd::string&,conststd::string&>((arg("detector"),arg("localizer")),"Initializes with both an OpenCV face detector model and an flandmark model"))
class_<Localizer>("Localizer","A key-point localization for faces using flandmark",init<conststd::string&,conststd::string&>((arg("detector"),arg("localizer")),"Initializes with both an OpenCV face detector model and an flandmark model"))
.def("__call__",&Localizer::operator(),(arg("self"),arg("image")),"Locates (possibly multiple) key-points on the given input image. Returns a list of located faces (by OpenCV's model), each attached to a list of key-points.")
.def("__call__",&Localizer::call1,(arg("image")),"Locates (possibly multiple) key-points on the given input image. Returns a list of located faces (by OpenCV's model), each attached to a list of key-points.")
.def("__call__",&Localizer::call2,(arg("image"),arg("b_y"),arg("b_x"),arg("b_height"),arg("b_width")),"Locates (possibly multiple) key-points on the given input image, given a bounding box and returns them as a list.")