2018-07-19 21:14:50 +08:00
|
|
|
#ifdef HAVE_OPENCV_VIDEOIO
|
|
|
|
typedef std::vector<VideoCaptureAPIs> vector_VideoCaptureAPIs;
|
|
|
|
|
|
|
|
template<> struct pyopencvVecConverter<cv::VideoCaptureAPIs>
|
|
|
|
{
|
2019-11-15 22:29:51 +08:00
|
|
|
static bool to(PyObject* obj, std::vector<cv::VideoCaptureAPIs>& value, const ArgInfo& info)
|
2018-07-19 21:14:50 +08:00
|
|
|
{
|
|
|
|
return pyopencv_to_generic_vec(obj, value, info);
|
|
|
|
}
|
|
|
|
|
|
|
|
static PyObject* from(const std::vector<cv::VideoCaptureAPIs>& value)
|
|
|
|
{
|
|
|
|
return pyopencv_from_generic_vec(value);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
template<>
|
2019-11-15 22:29:51 +08:00
|
|
|
bool pyopencv_to(PyObject *o, std::vector<cv::VideoCaptureAPIs>& apis, const ArgInfo& info)
|
2018-07-19 21:14:50 +08:00
|
|
|
{
|
2019-11-15 22:29:51 +08:00
|
|
|
return pyopencvVecConverter<cv::VideoCaptureAPIs>::to(o, apis, info);
|
2018-07-19 21:14:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // HAVE_OPENCV_VIDEOIO
|