PDA

View Full Version : Improving Camera Quality - DFK 22BUC03



aakashthakkar
April 29, 2016, 22:38:40
Hello,

I recently purchased the DFK 22BUC03, and I am struggling with the quality of image. All settings are kept to default.
Prior to this I was using the DFK ECU010 camera, and was really happy with its quality.

Attached pictures to show quality difference:

Quality with DFK ECU010:
http://i.imgur.com/YKHSlBQ.png

Quality with DFK 22BUC03:
http://i.imgur.com/xd2Er6i.png

Quality from my iPhone:
http://i.imgur.com/JTMLx7X.jpg

The setup:
1842

As you can see the color, temperature and even-ness as well as sharpness of the image is not upto the mark.

Also with the increase in FPS, the image seems to get darker due to lower exposure time period. Would another lens be better for such an application?

Regards,
Aakash Thakkar.

Stefan Geissler
May 3, 2016, 09:52:49
Hello

Forget the iPhone, it has 4 or 5 times higher resolution. Also : Can you receive 60 fps single images with this device?

Between ECU and 22: Different light situation, also different resolutions 1280x720 : 744x480.

Also with the increase in FPS, the image seems to get darker due to lower exposure time period. Would another lens be better for such an application?
In case the fps time period is shorter than the wanted exposure time, the exposure time will be adapted to the frame rate. The exposure time can not be longer than the frame rate's time interval, if you run on automatics. (Except you enhance the max auto exposure time, but then the frame rate will drop down again and you wont win anything.) FPS = 60, exposure time auto max = 1/60second.

aakashthakkar
May 3, 2016, 19:29:14
Hey,
I have shown the picture with iPhone to give an idea about the true color.

I changed the resolution parameters of ECU camera to 640*480 making is lower resolution than 22 and still picture quality, color, sharpness, even-ness is much better. Its basically the same image little more grainy due to low resolution.

On the other hand even if I drop the 22's FPS to 10 and increase exposure time, and change settings to fine tune quality it doesnt come close to ECU's quality at 640*480.

Can you please elaborate on how the light situation is different? Is the lens to blame?
The lens used is:


The Imaging Source board lens 12x0.5 mm
Format = 1/3"
Focal Length = 2.1 mm
Iris = 2

My problem is not with the low resolution, but image quality.

Some pictures to throw more light on the problem:

ECU at 640*480 with LED lighting:
http://i.imgur.com/v6lKcWR.png

22 at 32FPS:
http://i.imgur.com/NVgA0eY.png

22 with a higher gamma setting:
http://i.imgur.com/sJNOGmu.png

22 with higher gamma and whitebalance auto:
IMAGE LINK (http://i.imgur.com/jbQ4S5x.png)

A close shot of the pharma code:
http://i.imgur.com/6Fo53WX.png

In comparison close shot of pharma code from ECU:
http://i.imgur.com/ZdMtGRN.png


In GUVCViewer, when exposure is made low enough to capture at 60fps the image becomes completely dark.

Thanks.


Hello

Forget the iPhone, it has 4 or 5 times higher resolution. Also : Can you receive 60 fps single images with this device?

Between ECU and 22: Different light situation, also different resolutions 1280x720 : 744x480.

In case the fps time period is shorter than the wanted exposure time, the exposure time will be adapted to the frame rate. The exposure time can not be longer than the frame rate's time interval, if you run on automatics. (Except you enhance the max auto exposure time, but then the frame rate will drop down again and you wont win anything.) FPS = 60, exposure time auto max = 1/60second.

Stefan Geissler
May 4, 2016, 09:36:46
Hello Aakash

now it becomes interesting. I did not know you use Linux. In Linux we rely more or less on the standard software and modules, that are available. Therefore, there is no white balance with temperature, as we implemented in Windows. Background: The camera does nothing on its own. The automatics for white balance and exposure are done in software on the computer. Also the color transformation from bayer raw to to RGB is done in the computer. Thus you see the bayer checker board pattern in guvcview. (uhm.... why do you have a colored image in guvcview? My version does not automatically debayer an image.)
Another question: How do you set Gamma with the 22er camera? This model has no Gamma property, same with flipping.

aakashthakkar
May 5, 2016, 12:39:22
Hello Aakash

now it becomes interesting. I did not know you use Linux. In Linux we rely more or less on the standard software and modules, that are available. Therefore, there is no white balance with temperature, as we implemented in Windows. Background: The camera does nothing on its own. The automatics for white balance and exposure are done in software on the computer. Also the color transformation from bayer raw to to RGB is done in the computer. Thus you see the bayer checker board pattern in guvcview. (uhm.... why do you have a colored image in guvcview? My version does not automatically debayer an image.)
Another question: How do you set Gamma with the 22er camera? This model has no Gamma property, same with flipping.

Hello,

The earlier image I took was from IC Capture:
http://i.imgur.com/xd2Er6i.png

The 2nd post ones are from GUVCViewer.

GUVCViewer has implemented its own white balance in software too, probably does that by changing U and V whitebalance parameters of the camera?

The Gamma parameter can be set with the 22er camera, with both GUVCViewer and Opencv on linux as well as windows.

Can you please download the GUVCViewer software on linux and test the camera quality and parameters? Flipping is in the software I am assuming and not the camera hardware.

Please suggest me what information I can provide more to understand and solve this problem.

Thanks.

Stefan Geissler
May 6, 2016, 13:10:15
GUVCViewer has implemented its own white balance in software too, probably does that by changing U and V whitebalance parameters of the camera?

The camera does not have U and V parameters for white balance.


The Gamma parameter can be set with the 22er camera, with both GUVCViewer and Opencv on linux as well as windows.
The camera has not Gamma parameter.


Can you please download the GUVCViewer software on linux and test the camera quality and parameters? Flipping is in the software I am assuming and not the camera hardware.
I see bayer raw data on my Ubuntu only. I have the faint suspect, you have something installed, which I am missing.

You wont get better image quality, especially if parts of the image are overexposed. Also there is no white balance temperature available, because we did not made this for Linux.

aakashthakkar
May 6, 2016, 19:22:56
The camera does not have U and V parameters for white balance.


The camera has not Gamma parameter.


I see bayer raw data on my Ubuntu only. I have the faint suspect, you have something installed, which I am missing.

You wont get better image quality, especially if parts of the image are overexposed. Also there is no white balance temperature available, because we did not made this for Linux.

Which camera would you recommend for the above purpose for use on linux?

Thanks.