LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Too High resolution USB camera in Realtime Vision Acquisition

Dear all,

First of all, I have very very little experience with LabVIEW. I have only done a 3-days essential training Core 1, 4 years ago.

 

I work at HAS University of Applied Science. We got a program from another University for sorting/recognizing fruits. The maker of this program could not help us with this question, so I hope someone else can help me :).

I have connected a Logitech HD C270 USB camera. As you can see in the attachment "NIIMAC Header" the resolution for the camera is set on 640x480 pixels. But in the frontpanel you see the max resolution of 1280X960. This makes the application very slow (higher resolution is higher CPU capacity). In NI MAX I have saved the settings also for 640X480 pixels.

So, my question: I think the settings in NIIMAQ Header are correct, but the camera takes the max resolution. How can I lower the resolution, so the program will be faster?


As told, I'm a layman in labview. Smiley Sad

 

Thank you!

0 Kudos
Message 1 of 10
(3,942 Views)
Quickly can you try with Grab and Attributes setup and/or Grab and Basic Attributes examples in the example provider confirm the same?
- I think the attributes are not properly set.
Thanks
uday
0 Kudos
Message 2 of 10
(3,931 Views)

Thank you for the quick reaction. Could you explain me HOW i do this? Smiley Sad

I feel myself very stupid in LabVIEW Smiley Tongue

0 Kudos
Message 3 of 10
(3,914 Views)

Enclosed you will find the .vi.

0 Kudos
Message 4 of 10
(3,904 Views)
LabVIEW Menu->Help->Find Examples->Search for Grab
Thanks
uday
0 Kudos
Message 5 of 10
(3,900 Views)

In both VI it starts with the highest resolution. In the Grab and Attributes setup I can set the right resolution

0 Kudos
Message 6 of 10
(3,889 Views)
I'm not sure why the resolution mode is not properly writing to the attributes.
-You can do that Programmatically by enumerating the video modes and then selecting it or by wiring a constant to that mode(start 0 for 160x120, 1 for 320x180 for my webcam).
-So you set the video mode and start the acquisition that should solve the issue.
Thanks
uday
0 Kudos
Message 7 of 10
(3,884 Views)

And how can I do that in my VI? Smiley Embarassed

 

Sorry, and thanks for your help!

0 Kudos
Message 8 of 10
(3,875 Views)
Use the Grab and Attributes setup simple.
Thanks
uday
0 Kudos
Message 9 of 10
(3,872 Views)

Sorry, but I have actually no experience with making programs in Labview. And I do not know how to integrate the Grab and Attribute setup into my own VI. Someone who can help me with this?

If you want help me, you have to explain it step by step.

0 Kudos
Message 10 of 10
(3,865 Views)