|
|
|
@ -97,6 +97,7 @@ using namespace cv; |
|
|
|
|
typedef cv::softcascade::ChannelFeatureBuilder softcascade_ChannelFeatureBuilder; |
|
|
|
|
|
|
|
|
|
typedef std::vector<uchar> vector_uchar; |
|
|
|
|
typedef std::vector<char> vector_char; |
|
|
|
|
typedef std::vector<int> vector_int; |
|
|
|
|
typedef std::vector<float> vector_float; |
|
|
|
|
typedef std::vector<double> vector_double; |
|
|
|
@ -112,6 +113,8 @@ typedef std::vector<KeyPoint> vector_KeyPoint; |
|
|
|
|
typedef std::vector<Mat> vector_Mat; |
|
|
|
|
typedef std::vector<DMatch> vector_DMatch; |
|
|
|
|
typedef std::vector<String> vector_String; |
|
|
|
|
|
|
|
|
|
typedef std::vector<std::vector<char> > vector_vector_char; |
|
|
|
|
typedef std::vector<std::vector<Point> > vector_vector_Point; |
|
|
|
|
typedef std::vector<std::vector<Point2f> > vector_vector_Point2f; |
|
|
|
|
typedef std::vector<std::vector<Point3f> > vector_vector_Point3f; |
|
|
|
@ -830,7 +833,7 @@ template<typename _Tp> struct pyopencvVecConverter |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
template <typename _Tp> |
|
|
|
|
template<typename _Tp> |
|
|
|
|
bool pyopencv_to(PyObject* obj, std::vector<_Tp>& value, const ArgInfo info) |
|
|
|
|
{ |
|
|
|
|
return pyopencvVecConverter<_Tp>::to(obj, value, info); |
|
|
|
@ -888,9 +891,9 @@ template<typename _Tp> static inline PyObject* pyopencv_from_generic_vec(const s |
|
|
|
|
|
|
|
|
|
template<typename _Tp> struct pyopencvVecConverter<std::vector<_Tp> > |
|
|
|
|
{ |
|
|
|
|
static bool to(PyObject* obj, std::vector<std::vector<_Tp> >& value, const char* name="<unknown>") |
|
|
|
|
static bool to(PyObject* obj, std::vector<std::vector<_Tp> >& value, const ArgInfo info) |
|
|
|
|
{ |
|
|
|
|
return pyopencv_to_generic_vec(obj, value, name); |
|
|
|
|
return pyopencv_to_generic_vec(obj, value, info); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static PyObject* from(const std::vector<std::vector<_Tp> >& value) |
|
|
|
|