LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bad image quality Basler Camera 340kc

Hello,

 

I connected my Basler Ace camera 340kc to my PCI-e 1473r, and ran an FPGA example on a 2 Tap-8 bit Bayer example. However, when I try to capture the image with my camera, the quality is bad and the colour is not correct. 

 

The image I tested is the image on my computer (See attached "computer"), and expecting to get similar image. However, the image I got is not good (See attached "camera").

 

Just wonder if I missed to setup anything? Any thoughts?

 

Best,

Matthew

Download All
0 Kudos
Message 1 of 10
(4,496 Views)

Hello,

 

Did you already have a look at the frequently asked questions about the use of your Basler Camera?

 

Regards and Greetings,

James.

Greetings and Regards,
James
0 Kudos
Message 2 of 10
(4,418 Views)

Hi Matthew,

 

It's kind of hard to tell what is going on in the screenshots you posted. Did you modify one of the existing examples to use a 2 tap configuration? Can you post your code so that we can get a better idea of what you are doing?

0 Kudos
Message 3 of 10
(4,380 Views)

Hello elcalverado,

 

I used the example "1-Tap 8-Bit Camera with Bayer"  provided in the labview example. I changed the 1-Tap into 2-Tap in the FPGA vi. I have attached the project here! Please kindly check this!

0 Kudos
Message 4 of 10
(4,372 Views)

Matthew,

 

I could open the project you attached, but you didn't include the altered VIs. Please upload those as well.

0 Kudos
Message 5 of 10
(4,358 Views)
0 Kudos
Message 6 of 10
(4,354 Views)

Matthew,

 

What version of LabVIEW is this example from? Your original screenshots look like you are using LabVIEW 2016, but several of the subVIs are different than the ones in the example from my example finder (LabVIEW 2016).

0 Kudos
Message 7 of 10
(4,347 Views)

Matthew,

 

It looks like there is some scrambling of the data coming in. It would help to use one of the camera's saved test images rather than an actual image so that we can better see what is going on. You can enable test images in the camera's properties using the Basler Pylon software. To access the camera properties, you will need to configure the FPGA code for the 1473R card as described in this KB:

 

How to Make a Basler Camera Link Device Work with an NI-1473R Framegrabber

http://digital.ni.com/public.nsf/allkb/4B3A1D9D33408B49862579820072775C

 

It doesn't matter which of the 1473R examples you use since the FPGA code is just going to be used so that you can access the camera properties. Once you have access to the properties, enable the test image. There should be some kind of color gradient test image. Once that is enabled, go back to your 2-tap code and acquire an image. Rather than display the actual image, you should see the test image.

 

 

0 Kudos
Message 8 of 10
(4,332 Views)

elcalverado,

 

I have tried the test images, 1-6, as kindly suggested by you.

 

However, the images I got has two problems:

(1) The whole view of view consists of many test images, but not one big test image that fill up the whole field of view.

(2) The test images are moving, just like aliasing, but not moving gradients of one image.

 

Please check  p253 of the manual for a quick glance of the test image:

https://graftek.biz/system/files/2615/original/Basler_Ace_Camera_Link_Manual.pdf?1479319464

 

Any suggestions?

 

Best,

Matthew

0 Kudos
Message 9 of 10
(4,323 Views)

Hi Matthew,

 

First of all, it seems odd that the test images are only returning that purple color. I could be reading the manual wrong, but it seems that test images 1-5 should be greyscale, and test image 6 is a full color spectrum gradient like this:

 

Image 6.png

This could be a problem with your Bayer pattern decoding? Also, the way your test images keep shifting every so often seems like there is something off with how the pixels are being packed/unpacked. I haven't been able to try running your code since it seems you are using an older version of VAS. To troubleshoot this more in depth, it may be worth creating a service request with NI support so that you can work directly with an NI engineer on this problem. You can do that at ni.com/support.

 

-Jordan

0 Kudos
Message 10 of 10
(4,291 Views)