Implementation of Deepstream's Smart Record in Python by myself/ourself

I have confirmed that Deepstream’s Smart Record is not yet implemented in Python.

[1]
I’m thinking of implementing that function myself with Pybind11. However, I feel that it will not be easy.
So here’s the question. Is it possible for individuals/organizations to implement Python bindings for Smart Records with the current version of Deepstream (v6.2) ?

I’m having difficulty implementing the following callback in particular.

typedef struct NvDsSRInitParams
{
  /** callback function gets called once recording is complete */
  NvDsSRCallbackFunc callback;
...
  };
} NvDsSRInitParams;

[2]
Also, when do you plan to provide the Python version of Deepstream Smart Record?

Regards,
Yosuke

Yes. It is possible. You need to generate bindings for all smart recording APIs. There is instructions: deepstream_python_apps/BINDINGSGUIDE.md at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

If it is available, we will announce in the forum.

Thank you for your comment.

Let me know if there is an instructions or a sample of how to implement when the structs element has a callback function like the following:

typedef struct NvDsSRInitParams
{
  /** callback function gets called once recording is complete */
  NvDsSRCallbackFunc callback;
...
  };
} NvDsSRInitParams;

Thank you.
Yosuke

Since the callback is defined in c structure, so you need to implement the callback with c/c++, and binding them into python. Please refer to Python resources for more details.

Thank you for your reply.

you need to implement the callback with c/c++, and binding them into python. Please refer to Python resources for more details.

I’ll check that. Thank you.

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

In my case deep stream test-5 smart it does not store event based instead of that it storing whole video and if i give a duration of the smart record it is storing continuously.

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