acquire an instance of NvDsUserMeta by calling user_meta = nvds_acquire_user_meta_from_pool(batch_meta)
initialize user meta
add the user meta to an object meta by calling nvds_add_user_meta_to_obj(obj_meta, user_meta)
It works OK but only until I get a new frame.
After getting a new frame obj_meta->obj_user_meta_list == NULL always returns true, so I cannot access the user_meta.
What should I do to access the previously saved user_meta after getting a new frame?
The meta is bound with the current frame. So if you want to get the previously saved user_meta, you can bind this to the new frame by yourself and get that.
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
You can create a list of the meta of all frames by yourself and copy the metas in it. When you need that, you can search and obtain it in the list.