NvDsPersonObject

class pyds.NvDsPersonObject

Holds a person object’s parameters.

Variables:
  • genderstr, Person’s gender.

  • hairstr, Person’s hair color.

  • capstr, Type of cap the person is wearing, if any.

  • apparelstr, Description of the person’s apparel.

  • ageint, Person’s age.

Example usage:

data = pyds.alloc_nvds_person_object() #Allocate NvDsPersonObject
obj = pyds.NvDsPersonObject.cast(data)
#Set attributes
obj.age = 45
obj.cap = "none"
obj.hair = "black"
obj.gender = "male"
obj.apparel= "formal"
cast(*args, **kwargs)

Overloaded function.

  1. cast(self: capsule) -> pyds.NvDsPersonObject

casts to NvDsPersonObject object, call pyds.NvDsPersonObject(data)

  1. cast(self: int) -> pyds.NvDsPersonObject

casts to NvDsPersonObject object, call pyds.NvDsPersonObject(data)