= 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"