NvDsVehicleObject¶
- class pyds.NvDsVehicleObject¶
Holds vehicle object parameters.
- Variables:
type – str, Type of the vehicle.
make – str, Make of the vehicle.
model – str, Model of the vehicle.
color – str, Color of the vehicle.
region – str, Region of the vehicle.
license – str, License number of the vehicle.
Example usage:
data = pyds.alloc_nvds_vehicle_object() #Allocate NvDsVehicleObject obj = pyds.NvDsVehicleObject.cast(data); #Set attributes obj.type ="sedan" obj.color="blue" obj.make ="Bugatti" obj.model = "M" obj.license ="XX1234" obj.region ="CA"
- cast(*args, **kwargs)¶
Overloaded function.
cast(self: capsule) -> pyds.NvDsVehicleObject
casts to
NvDsVehicleObject
object, call pyds.NvDsVehicleObject(data)cast(self: int) -> pyds.NvDsVehicleObject
casts to
NvDsVehicleObject
object, call pyds.NvDsVehicleObject(data)