07-01-2015 09:08 PM
I am using Guppy camera F530 (color), but for some reasons, my Vision code displays it as 8 bit (gray scale). When I use the code with my web cam, it displays color (32-bit). Anybody knows what might have been wrong? Using NI Max, the guppy camera can display color. The output image type is set to Auto. Thanks!
07-01-2015 10:17 PM
07-06-2015 08:40 AM
Hello,
Can you please attach the code in order to see if we can verify if there is any missconfiguration.
07-09-2015 05:49 AM
Rscd27:
Please see attachment for the code. I just realized that it looks like the issue is that I set it to "AcquisitionAttributes::PixelFormat = "Mono 8"
Do you think that would be the root cause? If so, could you please suggest what PixelFormat I should have put? This code was initially generated with Vision Assistant.
Thanks,
Heru
07-09-2015 05:51 AM
Blue cheese:
When I looked at NI Max, it is Format 7: 2588 x 1940 with Pix format: YUV 422
But, when I looked at Guppy's software, it is set to 2588 x `1940 with Pix format: YU411 (instead of YUV 422). Please see my reply to Rscd27. Do you think that would be the issue? Please suggest what pixel format I should have put.
Thanks,
Heru
07-09-2015 08:32 AM
Thanks for your answer Heru. Can you please attach me an screenshot of the configuration on NI-MAX.
07-09-2015 11:00 AM
@heru.santoso wrote:
Rscd27:
Please see attachment for the code. I just realized that it looks like the issue is that I set it to "AcquisitionAttributes::PixelFormat = "Mono 8"
Do you think that would be the root cause? If so, could you please suggest what PixelFormat I should have put? This code was initially generated with Vision Assistant.
Thanks,
Heru
Yes, this is your issue. It seems like Vision Assistant is generating code that loads all the camera settings from a generated string. This means that the camera configuration when you run this code is stored there rather than the settings you have saved in MAX.
You could do one of two things:
-Re-run Vision Assistant, change the camera settings to what you want (with a color pixel format), and then re-generate the LabVIEW code from those new settings
-Remove the "Read Attributes From String" VI call in the generated code. This will make the camera always use whatever settings you have saved in MAX. This may be more convenient as then you can change settings at any point in MAX, click Save, and then your code will automatically use those new settings. The downside here is that then if you migrate the code to a new system, it will no longer have the camera settings embedded in the code, so you'd need to configure the settings in MAX on the new system.
Eric
07-09-2015 11:48 AM
I am sorry that I did not see your answer its been a crazy week and yeah if you delete the VI that is reading the settings from the string you should be able to use the settings stored in MAX or in the camera file if are the default ones.
07-10-2015 06:22 AM
Thanks guys! That solves the issues! I appreciate your help!