Skip to content

Commit

Permalink
fixed PoseNet Python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Aug 9, 2021
1 parent fd67593 commit 1b3ad00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/bindings/PyPoseNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static int PyPoseKeypoint_SetX( PyPoseKeypoint_Object* self, PyObject* value, vo
// GetY
static PyObject* PyPoseKeypoint_GetY( PyPoseKeypoint_Object* self, void* closure )
{
return PyFloat_FromDouble(self->keypoint.x);
return PyFloat_FromDouble(self->keypoint.y);
}

// SetY
Expand Down Expand Up @@ -706,7 +706,7 @@ static PyObject* PyObjectPose_FindKeypoint( PyObjectPose_Object* self, PyObject
if( !PyObjectPose_Sync(self, pose) )
return NULL;

PYLONG_FROM_LONG(pose.FindKeypoint(id));
return PYLONG_FROM_LONG(pose.FindKeypoint(id));
}

// FindLink
Expand Down Expand Up @@ -757,7 +757,7 @@ static PyObject* PyObjectPose_FindLink( PyObjectPose_Object* self, PyObject *arg
if( !PyObjectPose_Sync(self, pose) )
return NULL;

PYLONG_FROM_LONG(pose.FindLink(a,b));
return PYLONG_FROM_LONG(pose.FindLink(a,b));
}


Expand Down

0 comments on commit 1b3ad00

Please sign in to comment.