Repository for OpenCV's extra modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
696 B

#ifdef HAVE_OPENCV_BARCODE
typedef std::vector<cv::barcode::BarcodeType> vector_BarcodeType;
template<> struct pyopencvVecConverter<cv::barcode::BarcodeType>
{
static bool to(PyObject* obj, std::vector<cv::barcode::BarcodeType>& value, const ArgInfo& info)
{
return pyopencv_to_generic_vec(obj, value, info);
}
static PyObject* from(const std::vector<cv::barcode::BarcodeType>& value)
{
return pyopencv_from_generic_vec(value);
}
};
template<>
bool pyopencv_to(PyObject *o, std::vector<cv::barcode::BarcodeType>& types, const ArgInfo& info)
{
return pyopencvVecConverter<cv::barcode::BarcodeType>::to(o, types, info);
}
#endif // HAVE_OPENCV_BARCODE