NVIDIA DeepStream SDK API Reference

9.2 Release
pydeepstreamdoc::nvmeta::PreprocessBatchUserMetaDoc Namespace Reference

Variables

constexpr const char * descr
 
constexpr const char * set_preprocessed_tensor
 
constexpr const char * extract
 

Variable Documentation

◆ descr

constexpr const char * pydeepstreamdoc::nvmeta::PreprocessBatchUserMetaDoc::descr
constexpr
Initial value:
= R"pydeepstream(
Batch metadata structure for preprocessing operations.
:ivar rois: *list of :class:`RoiMetadata`*, List of roi metadata.
:ivar preprocess_tensor_meta: :class:`PreprocessTensorMetadata`, Preprocess tensor metadata.)pydeepstream"

Definition at line 356 of file service-maker/sources/python/src/bindings/docstrings/metadatadoc.h.

Referenced by module_metadata_bind().

◆ extract

constexpr const char * pydeepstreamdoc::nvmeta::PreprocessBatchUserMetaDoc::extract
constexpr
Initial value:
= R"pydeepstream(
Extracts metadata from preprocess batch ROIs into a list of dictionaries.
This method efficiently extracts metadata from all ROIs in the preprocess batch, including segmentation maps,
object detections, and classifier outputs. The extraction and data copying are performed in C++ for optimal performance.
:arg max_items: *int* - Maximum number of items in the returned list. The list will have this capacity,
indexed by frame *pad_index*.
:returns: *list of dict* - A list with size equal to *max_items*. Each element corresponds to the
metadata extracted from ROIs belonging to that frame. Elements without data will be *None*.
Each dictionary contains:
- **shape**: *list of int* - Frame dimensions [height, width]
- **bboxes**: *list of list of int* - Bounding boxes in [left, top, right, bottom] format
- **probs**: *list of float* - Confidence scores for each detected object
- **labels**: *list of list of str* - Labels from objects and ROI-level classifiers
- **objects**: *list of int* - Object IDs for tracking
- **seg_maps**: *list of numpy.ndarray* - Segmentation maps as int arrays
- **timestamp**: *int* - Frame presentation timestamp (PTS)
)pydeepstream"

Definition at line 371 of file service-maker/sources/python/src/bindings/docstrings/metadatadoc.h.

Referenced by module_metadata_bind().

◆ set_preprocessed_tensor

constexpr const char * pydeepstreamdoc::nvmeta::PreprocessBatchUserMetaDoc::set_preprocessed_tensor
constexpr
Initial value:
= R"pydeepstream(
Initialize the preprocess tensor meta from given name, meta_id, unique_id, and tensor.
:arg name: *str*, Name of the preprocess tensor.
:arg meta_id: *int*, Meta id of the preprocess tensor.
:arg unique_id: *int*, Unique target ID.
:arg tensor: :class:`Tensor`, Tensor object.
:returns: True if the preprocess tensor meta is initialized successfully, False otherwise.)pydeepstream"

Definition at line 362 of file service-maker/sources/python/src/bindings/docstrings/metadatadoc.h.

Referenced by module_metadata_bind().