NvDsPersonObject¶
- class pyds.NvDsPersonObject¶
Holds a person object’s parameters.
- Variables:
gender – str, Person’s gender.
hair – str, Person’s hair color.
cap – str, Type of cap the person is wearing, if any.
apparel – str, Description of the person’s apparel.
age – int, 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.
cast(self: capsule) -> pyds.NvDsPersonObject
casts to
NvDsPersonObject
object, call pyds.NvDsPersonObject(data)cast(self: int) -> pyds.NvDsPersonObject
casts to
NvDsPersonObject
object, call pyds.NvDsPersonObject(data)