This commit is contained in:
赵楚洋
2022-10-02 17:06:07 +08:00
committed by Vadim Levin
parent bc6544c0bc
commit f1055a7e91
4 changed files with 32 additions and 0 deletions
+3
View File
@@ -62,6 +62,9 @@ PyObject* pyopencv_from(const T& src) { return PyOpenCV_Converter<T>::from(src);
template<typename _Tp, int m, int n>
bool pyopencv_to(PyObject* o, cv::Matx<_Tp, m, n>& mx, const ArgInfo& info)
{
if (!o || o == Py_None)
return true;
cv::Mat tmp;
if (!pyopencv_to(o, tmp, info)) {
return false;