How can I pass List[float] to pybind11 (deepstream-python)?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I am implementing custom_bind by looking at the link below

But what I’m curious about is, when something like List[float] is structured like this, how should the variable that receives the float pointer be passed in Python? Please explain with an example both pybind11 and pyds_deepstream

struct NvDsInferFaceLandmarkMeta {
  float *data;
  int size;
  int num_landmark;

Thank you

It is not DeepStream related. Smart pointers - pybind11 documentation

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.