Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

MAX cannot find my camera attributes

I'm still learning about machine vision to do a project that require image processing. I'm using LabVIEW 2010 and my camera is only my laptop webcam (MAX recognize it as: USB2.0 UVC VGA WebCam). I'm trying to do a feature like the one in the "Grab and Attributes Setup.vi" example, which is to control, for example, white balance. Running the example itself, I can change the white balance in LabVIEW (not in MAX). The problem is that in MAX, camera attributes shows exactly nothing, thus I cannot or dont understand how to access that attribut.

 

So why is that the example in LabVIEW can adjust the white balance, while in MAX, no camera attributes at all is displayed?

 

PS: My friend using different laptop but same brand, type, model, spec (identical hardware), same driver, his MAX can detect these attributes.

0 Kudos
Message 1 of 27
(7,045 Views)

Hello,

Did you checked the "All attributes" option in the View Options?

I suggest to display All attributes and to be in Advanced mode in order to see all the attributes of your camera.

MAX.png

Regards

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 2 of 27
(7,044 Views)

yes, I have already select "All Attributes" option. It has some attributes displayed, but not everything such as white balance, gamma, saturation, etc. As I said earlier, my friend's laptop (same model) has it, so I assumed I'm supposed to have that too.

 

EDIT: I've tried it again with MAX first thing this morning and for once, the complete attributes appear in there, but now it is somewhat gone again. Strange.

0 Kudos
Message 3 of 27
(7,034 Views)

Hey tmnt_ppn,

Do you notice this problem not matter what USB port you are using?  What made the attributes disappear again?  Did you restart your computer?  Also have you tried to Reset MAX configuration data?  Please be sure to save any custom scales and tasks that you have set up in MAX before doing this.  The reset configuration data is located in Tools>>Reset Configuration Data.

Regards,
Kira T

0 Kudos
Message 4 of 27
(7,021 Views)

the camera itself is onboard the laptop (not seperated webcam). I still haven't figure out why the attributes sometimes appear and sometimes is not. I've tried reinstalling my camera driver, IMAQ, and IMAQdx driver. I'll try using seperate webcam this weekend. Restarting my komp is also not the answer because it still appear and missing everytime. as for the reset, I cannot find it in tools menu. There's only "Reset NI-DAQmy Configuration".

 

MAX version is 4.8.0f0

NI-IMAQ 4.5

NI-IMAQ I/O 2.4

NI-IMAQdx 3.8

LabVIEW 2010 SP1 (evaluation license)

 

EDIT: I've attach my .vi files. When the attributes appear in MAX, this .vi is working fine and as I wanted, but when it is missing, the .vi returns error. The error message:

Error -1074360305 occurred at Property Node (arg 2) in 3-8_Acquiring using Property Node.vi

Possible reason(s):

NI-IMAQdx: (Hex 0xBFF6900F) Attribute not supported by the camera.

 

The read attributes such as BayerGainR is just for me testing, no particular use.

0 Kudos
Message 5 of 27
(7,017 Views)

This sounds like an issue with the webcam or its drivers. There really is nothing in IMAQdx that you could change/reset/reinstall that would affect which features you see, as they are just enumerated from the camera for DirectShow/USB devices. I suggest just getting a cheap external webcamera instead of the onboard one if you are having issues.

 

Eric

0 Kudos
Message 6 of 27
(7,007 Views)

I will try to get an external camera tomorrow and I'll get back to you if this solve the problem or not. Thanks.

0 Kudos
Message 7 of 27
(7,001 Views)

I've tried with 2 additional camera with same results, not all attributes appear (only those unimportant ones such as vendor name, etc). One is a Logitech QuickCam usb camera, the other one is a TinyTech 211 usb camera. I'm started to think the problem is not in the hardware. Any suggestion?

0 Kudos
Message 8 of 27
(6,976 Views)

Hi tmnt_ppn,

Do you have the drivers for the USB cameras installed?  Does this happen on all of the USB ports? Are you able to access any attribute names through the following example?:

https://decibel.ni.com/content/docs/DOC-9038

 

Regards,

Kira T

0 Kudos
Message 9 of 27
(6,968 Views)

The given examples is working fine with the onboard camera. The attributes that i'm looking for is listed there. MAX also detect these attributes. but somehow I'm not sure. Maybe it's just in a "working condition", because I haven't done anything to the camera, it's just suddenly work. So I still didn't see what causing the problem before. I'll have to wait to the point when MAX cannot find these attributes and try the example again. For the 2 external cameras, the examples doesnt work.

 

Yes I have all the camera driver installed. And yes it happened to all USB ports, not just one particular port for the 2 external cameras. For the onboard camera, well, it's onboard the laptop.

 

Another thing though, with both Logitech and TinyTech camera, I have never been able to find these attributes (i.e. brightness) inside labview or MAX or with the given examples. So I assumed that these 2 cameras didn't support brightness attribute afterall. But when I'm it in labview (using IMAQdx Grab), it can adjust brightness automaticly to sorrounding condition, just like when u're using webcam in chatting. So isn't this mean that the camera supposed to support for brightness adjustment? Why can't I see this attribute?

0 Kudos
Message 10 of 27
(6,961 Views)