Load camera configuration¶
Load camera configuration file and use it to replace the active configuration. The new configuration is applied to the currently active camera.
The specified file name is interpreted relative to the config directory in the project folder.
Hint
The configuration file can be created using the Ensenso NxView application.
Note on Auto-Exposure and Auto-Gain:
When loading a new camera configuration, the ‘Exposure’ and ‘Gain’ values are set by default to the initial values specified in the configuration file. This can cause the image brightness to change very suddenly. If these initial values are not well suited to the prevailing environmental conditions and auto-exposure or auto-gain is being used, the camera may need to readjust its settings over the course of several exposures.
By adding the parameter keep_auto_exposure_gain: true to the file ‘config/camera_…yaml’, this behaviour can optionally be changed so that the previously automatically adjusted exposure and gain values are retained when the configuration is loaded. This ensures that the image brightness remains constant or, if the target brightness is changed, is gradually adjusted to the new value, rather than resulting in a sudden change in brightness.
Variablen¶
Input/Output |
Name |
Typ |
Description |
|---|---|---|---|
Input |
File name |
String |
File name of the configuration file for your camera. The file must be located in the ‘config’ subdirectory of the project directory. Example: ‘123456.ensparam’ |
Input |
Camera Serial |
String |
Only relevant, if multiple cameras are combined into a camera group, so they capture a single point cloud. In this case one of the cameras is the main camera, and the others are additional cameras. This input is not relevant for setups where multiple cameras that capture separately. If the input is not set or empty, the task configures the main camera of the active camera group. The variable can be set to configure an additional camera within the camera group. |