11 #if defined HIPIPE_BUILD_PYTHON && defined HIPIPE_BUILD_PYTHON_OPENCV
14 #include <hipipe/core/python/initialize.hpp>
17 #include <boost/python.hpp>
18 #include <numpy/ndarrayobject.h>
19 #include <opencv2/core/core.hpp>
21 namespace hipipe::python::utility {
23 struct pointToTupleBoostConverter {
24 static PyObject* convert(
const cv::Point2f& pt);
27 struct pointFromTupleBoostConverter {
29 pointFromTupleBoostConverter();
32 static void* convertible(PyObject*
object);
35 static void construct(PyObject*
object,
36 boost::python::converter::rvalue_from_python_stage1_data* data);
41 #endif // defined HIPIPE_BUILD_PYTHON && defined HIPIPE_BUILD_PYTHON_OPENCV