Facing issues while trying to create python bindings for smart recording

• Hardware Platform: dGPU
• DeepStream Version: 5.0
• TensorRT Version: 7.0.0-1+cuda10.2
• NVIDIA GPU Driver Version: 465.19.01

Hello,
I am trying to create python bindings for deepstream’s smart recording feature,
this is the first time I am using pybindings11 and also never worked much on c++ so probably I am doing something wrong here… I am able to create a .so file with the functions used in the example of deepstream_test_sr_app.c in deepstream5.1 (I am currently using deepstream5.0) I am able to the .so file but getting the following error while trying to import that package ie. ImportError:path_to_the_so/pyds_nvdssr.so: undefined symbol: NvDsSRCreate

Also, this line NvDsSRStatus NvDsSRCreate (NvDsSRContext **ctx, NvDsSRInitParams *params); in gst-nvdssr.h was giving me error for the double pointer which I removed by changing it to NvDsSRStatus NvDsSRCreate (NvDsSRContext *ctx, NvDsSRInitParams *params);

looking forward to hearing from you …

Regards,
Isaac

Is there any clue to show the failure is caused by DeepStream implementation?
We can not debug your code for you.

There is a 3rd party sample of creating your own python bindings. GitHub - mrtj/pyds_tracker_meta: pybind11 wrapper to access Nvidia DeepStream tracker meta info from Python.

@Fiona.Chen I’ve checked that repo already, and used that for reference thanks.

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