diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index a64ff50a43..e0609dd570 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -1052,7 +1052,7 @@ PyObject* pyopencv_from(const Point2d& p) template<> PyObject* pyopencv_from(const Point3d& p) { - return Py_BuildValue("(ddd)", p.x, p.y, p.y); + return Py_BuildValue("(ddd)", p.x, p.y, p.z); } template struct pyopencvVecConverter