Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boost.Python.ArgumentError #86

Open
Shaw-Q opened this issue Jul 27, 2021 · 0 comments
Open

Boost.Python.ArgumentError #86

Shaw-Q opened this issue Jul 27, 2021 · 0 comments

Comments

@Shaw-Q
Copy link

Shaw-Q commented Jul 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant