def post_process_bbox_detections(self, regions: list[dict[str, torch.Tensor]]) -> list[dict[str, torch.Tensor]]:
        """Post-process the region detections.

        The region detections are filtered based on class label, bbox area and overlap
        with other regions.

        Args:
            regions (list[dict[str, torch.Tensor]]): Region detections for a batch of
                images, generated by the region extraction module.

        Returns:
            list[dict[str, torch.Tensor]]: Filtered regions containing only valid
                detections based on the filtering criteria.
        """
        filtered_regions_list = []
        for img_regions in regions:
            filtered_regions = self._keep_only_persons(img_regions) if self.persons_only else img_regions
            filtered_regions = self._filter_by_area(filtered_regions, self.min_bbox_area)
            filtered_regions = self._delete_overlapping_boxes(filtered_regions, self.max_bbox_overlap)
            filtered_regions_list.append(filtered_regions)
        return filtered_regions_list
Post-process the region detections.

        The region detections are filtered based on class label, bbox area and overlap
        with other regions.

        Args:
            regions (list[dict[str, torch.Tensor]]): Region detections for a batch of
                images, generated by the region extraction module.

        Returns:
            list[dict[str, torch.Tensor]]: Filtered regions containing only valid
                detections based on the filtering criteria.
        
src/anomalib/models/video/ai_vad/regions.py