NVIDIA DeepStream SDK API Reference

9.2 Release
InferenceProvenanceMeta Struct Reference

Detailed Description

Holds per-frame inference provenance attached by Gst-nvmodelmux as frame user-meta of type NVDS_CUSTOM_MSG_INFERENCE_PROVENANCE.

Records which model / version / engine, on which GPU, produced each frame's inference (model_name is "passthrough" when the frame bypassed inference), together with the originating stream identity. A downstream element (e.g. Gst-nvmsgconv) can parse it to attribute results per model/stream and to recover the true source_id after the combined muxer renumbers it. Declared here (public) so any DeepStream component can consume it without the plugin's private headers.

NOTE: the meta-type enum NVDS_CUSTOM_MSG_INFERENCE_PROVENANCE is declared in nvdsmeta.h (this header is not included here, by convention) – a consumer matching frame user-meta must include BOTH nvdsmeta.h and this header.

Definition at line 346 of file includes/nvdsmeta_schema.h.

Data Fields

guint magic
 Always NVDS_INFER_PROV_MAGIC (see there); lets extMsg-style consumers verify the payload really is this struct (and this layout revision). More...
 
guint source_id
 Global stream id (from nvmultiurisrcbin). More...
 
gchar camera_name [NVDS_INFER_PROV_NAME_LEN]
 Camera/sensor name ("src" if unknown). More...
 
gchar camera_id [NVDS_INFER_PROV_NAME_LEN]
 Camera id (REST camera_id). More...
 
guint gie_id
 Producing nvinfer unique-id (0 for passthrough). More...
 
gchar role [16]
 "Primary" | "Shadow" (slot-derived role). More...
 
gchar model_name [NVDS_INFER_PROV_NAME_LEN]
 Logical model name (the model id); "passthrough" if not inferred. More...
 
gchar model_version [NVDS_INFER_PROV_NAME_LEN]
 Checkpoint version (defaults to the engine basename when unset). More...
 
gchar engine [NVDS_INFER_PROV_ENGINE_LEN]
 Current engine/checkpoint path. More...
 
guint frame_num
 Frame number. More...
 
guint gpu
 Device this frame was inferred on (pipeline device for passthrough). More...
 
guint batch
 Producing instance's CONFIGURED batch size (its max co-batched streams, the per-model-batch-size resolution) – NOT the per-call batch fill. More...
 

Field Documentation

◆ batch

guint InferenceProvenanceMeta::batch

Producing instance's CONFIGURED batch size (its max co-batched streams, the per-model-batch-size resolution) – NOT the per-call batch fill.

0 = passthrough (no inference).

Definition at line 374 of file includes/nvdsmeta_schema.h.

◆ camera_id

gchar InferenceProvenanceMeta::camera_id

Camera id (REST camera_id).

Definition at line 356 of file includes/nvdsmeta_schema.h.

◆ camera_name

gchar InferenceProvenanceMeta::camera_name

Camera/sensor name ("src" if unknown).

Definition at line 354 of file includes/nvdsmeta_schema.h.

◆ engine

gchar InferenceProvenanceMeta::engine

Current engine/checkpoint path.

Definition at line 366 of file includes/nvdsmeta_schema.h.

◆ frame_num

guint InferenceProvenanceMeta::frame_num

Frame number.

Definition at line 368 of file includes/nvdsmeta_schema.h.

◆ gie_id

guint InferenceProvenanceMeta::gie_id

Producing nvinfer unique-id (0 for passthrough).

Definition at line 358 of file includes/nvdsmeta_schema.h.

◆ gpu

guint InferenceProvenanceMeta::gpu

Device this frame was inferred on (pipeline device for passthrough).

Definition at line 370 of file includes/nvdsmeta_schema.h.

◆ magic

guint InferenceProvenanceMeta::magic

Always NVDS_INFER_PROV_MAGIC (see there); lets extMsg-style consumers verify the payload really is this struct (and this layout revision).

Definition at line 350 of file includes/nvdsmeta_schema.h.

◆ model_name

gchar InferenceProvenanceMeta::model_name

Logical model name (the model id); "passthrough" if not inferred.

Definition at line 362 of file includes/nvdsmeta_schema.h.

◆ model_version

gchar InferenceProvenanceMeta::model_version

Checkpoint version (defaults to the engine basename when unset).

Definition at line 364 of file includes/nvdsmeta_schema.h.

◆ role

gchar InferenceProvenanceMeta::role

"Primary" | "Shadow" (slot-derived role).

Definition at line 360 of file includes/nvdsmeta_schema.h.

◆ source_id

guint InferenceProvenanceMeta::source_id

Global stream id (from nvmultiurisrcbin).

Definition at line 352 of file includes/nvdsmeta_schema.h.


The documentation for this struct was generated from the following file: