Skip to main content

BEV

Applies Bird's Eye View transform on bounding boxes detected.

This module provides a pipeline element to transform a given frame to Bird's Eye View. This module helps gather more insights of the frame by providing a top-view of the frame.

Examples:

REST API:

WIP

Configuration File:

```yaml
elements:
- name: infer
args:
model: person-detection-0200
- name: BEV
args:
roi: [511,5,1375,3,3,1049,1919,1027]
dim: [1920,1080]
sources:
- address: videos/demo-tracking-28s.mp4
type: file
```

BEV Objects

class BEV(Element)

Applies Bird's Eye View transform on bounding boxes detected.

Attributes:

  • name str - The name of the element.
  • roi list[float] - The Region of Interest where BEV transform will be applied.
  • dim list[int] - The dimensions of the image.

Examples:

```python
ele = BEV(roi=[511,5,1375,3,3,1049,1919,1027], dim=[1920,1080])
```

process

def process(meta: PipelineMetadata)

Process the bounding boxes.

This is the main function for this element. It will take the bounding boxes and a reference plane to transform the frame and bounding boxes to Bird's Eye View.

Arguments:

  • meta PipelineMetadata - The metadata to process.

Returns:

  • meta PipelineMetadata - The processed metadata.

Examples:

```python
meta = BEV(roi=[511,5,1375,3,3,1049,1919,1027], dim=[1920,1080]).process(meta)
```