Closed kylemcdonald closed 6 years ago
Hello Kyle
the properties are available in Linux with firmware version 910. Your camera has version 830. 33UFirmware.910.zip
I suppose, the file will be saved into your "~/Downloads" directory. Unzip the file, you will get a file named 33UFirmware.910.fwpack, which contains the firmware and is read by the update program.
Open a terminal.
I would like you to update the repository with
git pull
cd build
make -j
sudo make install
The Linux firmware update tool is built with the tiscamera repository, which you already built. Please change into your tiscamera directory.
Then enter
cd build/toos/firmware-update
sudo ./firmware-update -u -f ~/Downloads/33UFirmware.910.fwpack -d 10810671
Now you will be warned, the camera can be damaged due to firmware update. Then continue. Some percent number will be shown. The update process can last up to two minutes. When finished, the program advises to disconnect your camera. Reconnect the camera and check the properties again. Highlight Reduction and some more new properties will be available. Unfortunately I do not have a firmware change log, so I can not provide information, what else did change.
Stefan
Great! Updating the firmware made the option available. Unfortunately I seem to have read the description too quickly, and now I realized that "Highlight Reduction" only works in collaboration with Auto Exposure to set the exposure. I was hoping it actually modified the image.
This is a separate question, but is there any chance that this model camera will get an option to apply a gamma curve before the 8-bit digitization step? For me, some kind of gamma preprocessing to avoid posterization in darker regions after color correction would make this camera incredibly useful.
"Enabling Highlight Reduction lets the auto exposure and auto gain functions reduce overexposed areas in the output image." That means, gain and exposure are reduced, until the over exposed areas reduced. The image becomes darker then. So you can use lower exposure times to remove the overexposed areas.
Gamma is applied after digitization.
If you used Windows, I advise to use a 16 bit image format and enable tone mapping. This is for converting high dynamic range images to 8 bit. But you could do the same in Linux. I must admit, I do not know, how to do that with our tcambin, but the base module tcamsrc can receive the caps. A suitable pipeline could be
tcamsrc ! video/x-bayer, format=rggb16, width=640, height=480, framerate=15/1 ! appsink
This results in a bayer raw image with 16 bit per pixel. From this only the upper 10 bit contain valid data. Combined with lower exposure times, you may get the image information you need. You can try to create an OpenCV image from this and let openCV debayer (cvConvert()) that.
If you have questions about this, please let me know your programming language, when asking.
Stefan
Unfortunately the DFK 37BUX290 doesn't output real 16-bit data: "The sensor of the DFK 37BUX290 camera is not able to provide 16-bit data output. The pixel data is transmitted in the most significant bits."
Thanks for your help!
Hello
You are right, max bits is 10 as written on the website of the camera at https://www.theimagingsource.com/products/industrial-cameras/usb-3.1-color/dfk37bux273/
Dynamic range | 8/10 bit
Stefan
I have an image with a large dynamic range and I would like to apply highlight reduction. Section 5.3.4 of the technical document for DFK 37BUX290 the describes this feature https://s1-dl.theimagingsource.com/api/2.5/packages/documentation/manuals-trm/trmdfk37bux290/857db88f-86ac-5331-af87-722934cb8ff0/trmdfk37bux290.en_US.pdf
But when I check the available parameters of the camera I do not see this option. Here is the example output of
tcam-ctrl
:There also appears to be some typos in the manual, for example:
tcam-ctrl
lists "Gain Auto" and "Exposure Auto", but the manual lists "Auto Gain" and "Auto Exposure". Ortcam-ctrl
lists "Trigger Delay (us)" but the manual lists "Trigger Delay".