LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview can't find my webcam

Hello!
I just got in touch with labview and bought an ordinary webcam. It is connected to the Internet and has a maximum speed of 100MB. It has its own IP address.
It's not a Gige camera.


I have been exposed to USB cameras. As long as I plug the USB camera into the computer, NImax and labview can call it.
I plug the webcam into the router through the network cable, and connect the PC to the same router through the network cable.
But my labview and NImax can't find this camera, so I can't call it.


How can I solve this problem. Please explain in detail.
thank you!

0 Kudos
Message 1 of 14
(2,829 Views)

program.jpgNImax.jpgCamera .jpgCamera_IP .jpg

0 Kudos
Message 2 of 14
(2,828 Views)

Hi edc,

 


@edc777 wrote:

I have been exposed to USB cameras. As long as I plug the USB camera into the computer, NImax and labview can call it.
I plug the webcam into the router through the network cable, and connect the PC to the same router through the network cable.


How can you connect to an USB camera using some network cables?

 

Does the camera and your PC share the same IP (sub)net address? Can you contact/use the camera using other tools than LabVIEW/MAX?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 14
(2,820 Views)

Hi GerdW

My camera has been set to IP 169.254.68.118
My PC's IP address is 169.254.68.212


I connected the PC to the camera with the network cable, and successfully connected with the software provided by the merchant! Image displayed successfully.


The problem is that labview can't search my webcam

 

0 Kudos
Message 4 of 14
(2,800 Views)

Hi edc,

 

you better use proper IP addresses!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 14
(2,765 Views)

Hi GerdW

Does the IP address of the PC need to be the same as the IP address of the camera?
If the IP addresses are set to be consistent, can labview search my camera?


The first three IP addresses are the same, and the last IP address is set to different. The camera can be successfully connected using the software provided by the manufacturer

 

What should I do to make labview recognize my webcam?

0 Kudos
Message 6 of 14
(2,744 Views)

IP cameras use all kinds of protocols, especially for streaming support, with various (patent encumbered) compression schemes. Even when addressed as a still image source through an HTTP(S) URL is the actual endpoint (URL address after the IP address part) very vendor specific.

 

The NI IMAQdx driver only can directly recognize IP cameras that fully implement the GeniCam standard. Only very few professional cameras like from Basler are tested and guaranteed to work. Another option that IMAQdx can do is to access your DirectX compatible camera. This requires a DirectX driver for your camera. Most USB Webcams are integrated into Windows through such a driver, usually vendor specific for every camera.

 

If your camera comes with a DirectX compatible driver you can install that and then should be able to access your camera from IMAQdx like a USB Webcam. If the camera manufacturer doesn't provide DirectX compatible drivers but only has his own proprietary drivers for his own application software (quite a lot do that) then things get more complicated. There are some more generic DirectX compatible IP camera drivers. But almost none of them for free and most of them have long ago ceased to be updated and maintained. The market for this technology is simply not very friendly. Most users expect such a driver to be free and work out of the box. The reality is that developing and maintaining such a driver is however a lot of work and there is always some camera specific configuration necessary such as the URL path for the JPEG stream, or the exact compression scheme used, etc, etc. The result is that most developers stopped to update and even provide their driver, since they usually have bills to pay too, and move to more profitable endeviours than providing a driver for free that many users will complain about because it doesn't work perfectly for their specific cheap no-name camera.

 

Basically if your camera is not connected through a NI framegrabber interface or not fully GeniCam compliant, and cheap IP cameras never are, you need a DirectX driver for your camera. If your camera manufacturer doesn't care to provide such a driver, you are on your own.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 7 of 14
(2,738 Views)

Take a look this document:

Camera Interfaces Supported by NI Software 

 

Your camera use ONVIF protocol.

 

 

 

George Zou
0 Kudos
Message 8 of 14
(2,714 Views)

Hi Rolfk!

 

Because of the cost requirements of the project, I have to use cheap webcams.
According to what you said, if I purchase a GeniCam standard webcam, will IMAQdx automatically recognize it?


So I have two solutions now?
One is to purchase a GeniCam standard webcam
One is to purchase a network camera driven by DirectX
Is that so?


Thank you for your answer

0 Kudos
Message 9 of 14
(2,678 Views)

Hi zou!

Does my camera use the ONVIF protocol?
How is this protocol used by labview?
How is it used by IMAQdx?

0 Kudos
Message 10 of 14
(2,671 Views)