Skip to content
Snippets Groups Projects
Commit a9051f4e authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Update documentation

parent c753a7d4
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,9 @@ static auto s_class = xbob::extension::ClassDoc( ...@@ -31,6 +31,9 @@ static auto s_class = xbob::extension::ClassDoc(
"You input an image and a bounding-box specification and it returns you the " "You input an image and a bounding-box specification and it returns you the "
"positions for multiple key-points for the given face image.\n" "positions for multiple key-points for the given face image.\n"
"\n" "\n"
"Consult http://cmp.felk.cvut.cz/~uricamic/flandmark/index.php for more "
"information.\n"
"\n"
) )
.add_constructor( .add_constructor(
xbob::extension::FunctionDoc( xbob::extension::FunctionDoc(
...@@ -219,6 +222,8 @@ static PyObject* PyBobIpFlandmark_call_single(PyBobIpFlandmarkObject* self, ...@@ -219,6 +222,8 @@ static PyObject* PyBobIpFlandmark_call_single(PyBobIpFlandmarkObject* self,
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&iiii", kwlist, if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&iiii", kwlist,
&PyBlitzArray_Converter, &image, &y, &x, &height, &width)) return 0; &PyBlitzArray_Converter, &image, &y, &x, &height, &width)) return 0;
auto image_ = make_safe(image);
//check //check
if (image->type_num != NPY_UINT8 || image->ndim != 2) { if (image->type_num != NPY_UINT8 || image->ndim != 2) {
PyErr_Format(PyExc_TypeError, "`%s' input `image' data must be a 2D array with dtype `uint8' (i.e. a gray-scaled image), but you passed a %" PY_FORMAT_SIZE_T "d array with data type `%s'", Py_TYPE(self)->tp_name, image->ndim, PyBlitzArray_TypenumAsString(image->type_num)); PyErr_Format(PyExc_TypeError, "`%s' input `image' data must be a 2D array with dtype `uint8' (i.e. a gray-scaled image), but you passed a %" PY_FORMAT_SIZE_T "d array with data type `%s'", Py_TYPE(self)->tp_name, image->ndim, PyBlitzArray_TypenumAsString(image->type_num));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment