Skip to content

Boost.Python.ArgumentError #86

Description

@Shaw-Q

When I am using OpenPose.detectHands():

rgb = cv2.imread('/data/cropped/%d.png' %i)
rgb = cv2.flip(rgb,1)
vec = np.array(handBB + [0, 0, 0, 0], dtype=np.int32).reshape((1, 8))       
op.detectHands(rgb, vec)

It gives an error:

Boost.Python.ArgumentError: Python argument types in
OpenPose.detectHands(OpenPose, NoneType, numpy.ndarray)
did not match C++ signature:
detectHands(class OpenPoseWrapper {lvalue}, class cv::Mat, class cv::Mat)
detectHands(class OpenPoseWrapper {lvalue}, class cv::Mat)

Does anyone know the reason or how to solve this problem?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions