11-30-2022 02:37 AM
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!
11-30-2022 02:38 AM - edited 11-30-2022 02:39 AM
11-30-2022 02:51 AM
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?
11-30-2022 03:05 AM
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
11-30-2022 03:53 AM
11-30-2022 07:08 AM
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?
11-30-2022 07:53 AM - edited 11-30-2022 08:00 AM
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.
11-30-2022 09:11 AM
Take a look this document:
Camera Interfaces Supported by NI Software
Your camera use ONVIF protocol.
11-30-2022 07:33 PM
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
11-30-2022 07:45 PM
Hi zou!
Does my camera use the ONVIF protocol?
How is this protocol used by labview?
How is it used by IMAQdx?