Enhancement: Added objStatus to pyds.NvDsAnalyticsObjInfo

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson / GPU
• DeepStream Version
7.0
• JetPack Version (valid for Jetson only)
• TensorRT Version
N/A
• NVIDIA GPU Driver Version (valid for GPU only)
N/A
• Issue Type( questions, new requirements, bugs)
new requirements
• 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)

Hi Team,

I have made an enhancement to the pyds.NvDsAnalyticsObjInfo class by adding a new attribute, objStatus. This addition allows us to include the status of an object, providing more detailed information and improving our analytics capabilities.

Example usage:

# Extract object level meta data from NvDsAnalyticsObjInfo
l_user_meta = obj_meta.obj_user_meta_list #Get glist containing NvDsUserMeta objects from given NvDsObjectMeta
# Extract object level meta data from NvDsAnalyticsObjInfo
while l_user_meta:
	try:
		user_meta = pyds.NvDsUserMeta.cast(l_user_meta.data) #Must cast glist data to NvDsUserMeta object
		if user_meta.base_meta.meta_type == pyds.nvds_get_user_meta_type("NVIDIA.DSANALYTICSOBJ.USER_META"):             
		user_meta_data = pyds.NvDsAnalyticsObjInfo.cast(user_meta.user_meta_data) #Must cast user metadata to NvDsAnalyticsObjInfo
		#Access NvDsAnalyticsObjInfo attributes with user_meta_data.{attribute name}
		if user_meta_data.objStatus: print("Object {0} status: {1}".format(obj_meta.object_id, user_meta_data.objStatus))
	except StopIteration:
		break

	try:
		l_user_meta = l_user_meta.next
		except StopIteration:
		break;

Please review the changes and let me know if you have any questions or require further adjustments.

Thank you for sharing the code!

Your patch will be included in the future release.

Thank you! I’m sure the community will greatly appreciate it.