Closed dariodenardi closed 1 year ago
There are two ways to achieve auto-exposure: 1) enable the camera's built-in auto exposure. From your launch file you have currently switched that to "off". Switching that to "On" should give you success. You may want to first explore the camera's behavior with SpinView to see if you like how that auto exposure works. 2) use an external exposure controller, i.e. a separate software package that runs independently. I implemented this because I am using a pair of cameras for visual odometry where it is important that the left and right cameras have identical exposure setting. To use this you will have to install two additional packages for camera synchronization and exposure control referenced in this launch file. Unless you are planning on doing visual odometry with stereo cameras, I recommend using method 1) above.
thank you for the answer
is it possibile that my camera haven't brightness? I 'compute_brightness': True
but if I print /cam_0/meta
, brightness is always 0
stamp:
sec: 1680350583
nanosec: 766597729
frame_id: cam_0
camera_time: 6744059481944
brightness: 0
exposure_time: 9501
max_exposure_time: 29999999
gain: 0.0```
Not sure why the brightness computation does not work. Do you want to use the external method at all? Why not just switch on auto exposure at the camera level?
because I have to use two cameras
Is there any way to see why it's not working right?
What do you need two cameras for?
I need it to create a stereo system...so i use two cameras that i set them to master-slave mode
I need to acquire two images at the same time but I have this problem with the exposure
I implemented external auto exposure for my specific needs but it has not seen too much usage. Your mileage may vary. One of the reasons the brightness calculation fails is that I only implemented for one particular pixel format. Put some print statements into this routine to see if a) it is called at all, and b) if the pixel format is bayer as required and c) what it actually calculates. https://github.com/berndpfrommer/flir_spinnaker_common/blob/e33fa73d0bc90cf880216f827c83d046f916141c/src/driver_impl.cpp#L263
thank you, I solved
I setted the pixel format to bgr8. for me it is not a problem to use bayer
maybe i recommend adding a line in the readme
Hi,
I have a problem with automatic exposure. When I use the cameras and there is good weather the photo becomes ugly to see.
good weather I mean normal light in the environment (no sun against the camera)
at this point I don't know if the automatic check works correctly:
ros2 topic echo /exposure_control/control
I don't read any posted valuesI use Blackfly S. Here is an example of an image:
same effect with one and two cameras
Launch file of only one camera (no synced):
My questions: