Deepstream Configurator
Overview
The DeepStream Configurator (ds-configurator) is a lightweight Flask-based init-style service that runs before the DeepStream perception pipeline starts. It starts, waits for a configuration event (e.g. from SDR), updates the necessary DeepStream configuration files, then shuts down so that DeepStream can start with the updated settings.
Key Features:
- Receives configuration events via HTTP POST
- Extracts region, group, and topic-prefix metadata
- Updates DeepStream configuration files with calibration and BEV group settings
- Writes configuration data for downstream consumption by DeepStream pipelines
Architecture
The DeepStream Configurator operates as an init-style service that:
- Starts and listens for a configuration event
- Processes the event and updates configuration files
- Gracefully shuts down after completing the configuration

Configuration
Environment Variables
The following environment variables control the DS Configurator’s behavior:
API Reference
POST /config
Receives a configuration event and updates DeepStream configuration files.
Request:
- Content-Type:
application/json - Method:
POST
Request Body Schema:
Example Request:
Response:
Returns the original JSON payload on success.
Behavior:
- Extracts
region,group, andtopic-prefixfrom the event metadata - Writes a CSV file with format:
region,group,topic-prefix - Updates the target YAML config with:
calib_file_path: Set to the configured calibration file pathbev_group_name: Set to the group from the event metadata
- Gracefully shuts down after sending the response
Output Files
config.csv
A comma-separated file containing the sensor assignment information:
This file can be consumed by DeepStream pipelines or other services that need to know the current sensor group assignment.
config.yaml
The updated YAML configuration file includes calibration and BEV settings. Key fields updated: