geaxgx / tello-openpose

MIT License
299 stars 87 forks source link

pybind11 error #17

Open S4dr opened 4 years ago

S4dr commented 4 years ago

I got errors when I try to test OP.py

The error I get is:

Traceback (most recent call last): File "OP.py", line 454, in nb_persons,body_kps,face_kps = my_op.eval(frame) File "OP.py", line 215, in eval self.opWrapper.emplaceAndPop([self.datum]) TypeError: emplaceAndPop(): incompatible function arguments. The following argument types are supported:

  1. (self: openpose.pyopenpose.WrapperPython, arg0: std::vector<std::shared_ptr, std::allocator<std::shared_ptr > >) -> bool Invoked with: <openpose.pyopenpose.WrapperPython object at 0x7f86d8a14ed8>, [<openpose.pyopenpose.Datum object at 0x7f86d8a14f10>] Did you forget to #include <pybind11/stl.h>? Or <pybind11/complex.h>, <pybind11/functional.h>, <pybind11/chrono.h>, etc. Some automatic conversions are optional and require extra headers to be included when compiling your pybind11 module.

How can I resolve this?