magazino / pylon_camera

ROS-Driver for Basler Cameras
BSD 3-Clause "New" or "Revised" License
78 stars 108 forks source link

Add balance_white mode #60

Open jonathanhechtbauer-bc opened 4 years ago

jonathanhechtbauer-bc commented 4 years ago

Add balance_white mode supporting "continuous" and "once". Reading param from config file.

Tested with usb camera.


"Reset" of whitebalance is required at camera startup ( before `cam->UserSetLoad.Execute();`)

 cam_->BalanceWhiteAuto.SetValue(Basler_UsbCameraParams::BalanceWhiteAuto_Off);

in pylon_camera_usb.hpp and pylon_camera_gige.hpp (Maybe this can be solved differently).

Otherwise, it would result in Brightness: 0 after reconnecting to camera (without disconnecting the cable).

Related: https://github.com/magazino/pylon_camera/issues/43, https://github.com/magazino/pylon_camera/issues/35