NvDsVehicleObject

class pyds.NvDsVehicleObject

Holds vehicle object parameters.

Variables:
  • typestr, Type of the vehicle.

  • makestr, Make of the vehicle.

  • modelstr, Model of the vehicle.

  • colorstr, Color of the vehicle.

  • regionstr, Region of the vehicle.

  • licensestr, 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.

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

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

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

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