mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 02:19:12 +08:00
24 lines
671 B
C++
24 lines
671 B
C++
#ifdef HAVE_OPENCV_VIDEOIO
|
|
typedef std::vector<VideoCaptureAPIs> vector_VideoCaptureAPIs;
|
|
|
|
template<> struct pyopencvVecConverter<cv::VideoCaptureAPIs>
|
|
{
|
|
static bool to(PyObject* obj, std::vector<cv::VideoCaptureAPIs>& value, const ArgInfo& info)
|
|
{
|
|
return pyopencv_to_generic_vec(obj, value, info);
|
|
}
|
|
|
|
static PyObject* from(const std::vector<cv::VideoCaptureAPIs>& value)
|
|
{
|
|
return pyopencv_from_generic_vec(value);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
bool pyopencv_to(PyObject *o, std::vector<cv::VideoCaptureAPIs>& apis, const ArgInfo& info)
|
|
{
|
|
return pyopencvVecConverter<cv::VideoCaptureAPIs>::to(o, apis, info);
|
|
}
|
|
|
|
#endif // HAVE_OPENCV_VIDEOIO
|