Skip to content

Pipeline Config options overwrite argument -co or --config_overwrite`#8

Merged
itsderek23 merged 2 commits intomasterfrom
pipeline_config_args
Feb 4, 2020
Merged

Pipeline Config options overwrite argument -co or --config_overwrite`#8
itsderek23 merged 2 commits intomasterfrom
pipeline_config_args

Conversation

@itsderek23
Copy link
Copy Markdown

@itsderek23 itsderek23 commented Feb 3, 2020

This is a bit of an ugly "catchall": it allows you to overwrite the config dict passed to depthai.create_pipeline() in calibrate.py by passing thru a JSON-formatted string of config options.

For example:

python calibrate.py -co '{"board_config": {"swap_left_and_right_cameras": true, "left_to_right_distance_cm": 9.0}}'

...will deep-merge those key/values on top of the default config dict.

This allows us to avoid defining a ton of arguments for potentially seldom-used options.

/cc @Luxonis-Brian @Luxonis-Brandon

@itsderek23 itsderek23 merged commit bd38a6a into master Feb 4, 2020
Coffee-Boyy pushed a commit to Coffee-Boyy/depthai that referenced this pull request May 12, 2020
SzabolcsGergely pushed a commit that referenced this pull request Oct 30, 2020
Pipeline Config options overwrite argument `-co` or `--config_overwrite``
jdavidberger pushed a commit to constructiverealities/depthai that referenced this pull request May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant