Skip to content

Commit 0f42031

Browse files
authored
fixed typo in pyopencv_from Point3d
1 parent fdba548 commit 0f42031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/python/src2/cv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ PyObject* pyopencv_from(const Point2d& p)
10521052
template<>
10531053
PyObject* pyopencv_from(const Point3d& p)
10541054
{
1055-
return Py_BuildValue("(ddd)", p.x, p.y, p.y);
1055+
return Py_BuildValue("(ddd)", p.x, p.y, p.z);
10561056
}
10571057

10581058
template<typename _Tp> struct pyopencvVecConverter

0 commit comments

Comments
 (0)