NvDsObjEncUsrArgs

class pyds.NvDsObjEncUsrArgs

user parameters for a nvds_obj_enc_process call

Variables:
  • saveImgbool, Boolean variable to save image.

  • attachUsrMetabool, Variable to attach user metadata. Metadata Type is “NVDS_CROP_IMAGE_META”.

  • scaleImgbool, Boolean variable to scale image.

  • scaledWidthint, Width Parameter for scaling.

  • scaledHeightint, Height Paramater for scaling.

  • fileNameImg – An array to store the string describing the path of the JPEG file. If user specifies the filename then it’ll be used otherwise the following naming convention is used to create filename of the encoded objects - “frame-number_stream-number_object-number_object-type_widthxheight.jpg”. For example - 0_2_3_PERSON_126x148.jpg

  • objNumint, Object number in the frame .

  • qualitybool, Image quality value.

  • isFramebool, Variable for frame/object encoding. 1: Encodes the entire frame. 0: Encodes object of specified resolution

  • calcEncodeTimebool, Boolean variable to calculate time of encode.

cast(*args, **kwargs)

Overloaded function.

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

cast given object/data to NvDsObjEncUsrArgs, call pyds.NvDsObjEncUsrArgs.cast(data)

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

cast given object/data to NvDsObjEncUsrArgs, call pyds.NvDsObjEncUsrArgs.cast(data)