06-07-2021 08:35 AM
Hello Friends
I just thinking to integrate IP camera (want to see live from camera) on LabView.
IP camera is connected to NVR and NVR connected to Network switch with my PC.
Please help how to do that as i am begginer in LabView.
Thanks,
Asif Iqbal
Solved! Go to Solution.
06-08-2021 01:11 AM - edited 06-08-2021 01:17 AM
Find a DirectShow driver for your cameras or NVR Most people think an IP camera is a certain protocol and there is a single driver that will rule them all. Nothing is further from the truth. The IP refers to the IP protocol which is the basis on which TCP and UDP work. It is synonymous fo Ethernet in this case, meaning the camera has a Ethernet connection either as RJ-45 connector or through WiFi. How the image gets to the computer varies greatly. Some use HTTP to request simply pictures, other provide various forms of streaming protocols with as many different compression schemes and s few provide a proprietary protocol on top of TCP/IP or UDP.
Once the camera is seen as DirectShow device in Windows, IMAQdx will see it too!
Alternative would be to interface to an SDK driver for your camera if it exists by using the Call Library Node (for DLLs) or .Net (for assemblies and put the data yourself in an IMAQ image. This requires however a great deal of low level knowledge including C/C++/C# programming logic to be able to interface on such a level. Also note that IMAQdx and IMAQ costs money but doing it without is a lot of extra work
09-02-2021 08:11 AM
Thanks for your replay
i will try your suggestion
i tell you more detail as two IP Camera connected to network swithch and one NVR connected to that switch.
My PC running and connect to 2nd network switch and both swithch connected each other.
from where can i download directshow software..
Thanks
asif
09-02-2021 08:23 AM
Possible drivers (I have no affiliation with any of them and your use of them is at your own risk):
https://download.cnet.com/RTMP-Streaming-Directshow-Filter/3000-2070_4-76188043.html
Datastead RTSP/RTMP/HTTP/ONVIF DirectShow Source Filter
LeadTools DirectShow Filters SDK
Moonware Universal Source Filter
09-02-2021 09:39 AM
I've been sticking with leveraging VLC for camera stuff lately. Here is some example code.
https://forums.ni.com/t5/Example-Code/VLC-scripting-in-LabVIEW/ta-p/3515450
VLC is the one stop shop for playing media of just about any type, and as a result can stream from just about any camera; USB or IP based. Then I just have LabVIEW display the VLC stream into a picturebox, and take snaps saving them to a file as needed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-08-2021 01:21 AM
Thanks for link you provided..
i have download from first link and intall.
do i need any more setting for that?
thanks,
asif
12-08-2021 02:45 AM - edited 12-08-2021 02:46 AM
You betcha! Every network camera has its own specific settings that you have to get either from the technical details of the camera, some smart google foo or reverse engineering of the camera protocol, and of course you need to somehow also enter the network address of the camera somewhere.
As these solutions are not manufacturer specific they usually do not contain auto detection tools for your camera. That would be an unfeasable plan since there would have to be hundreds of different such tools and often the auto detection method if present at all is considered uninteresting for 3rd parties and neither documented nor specified.
01-11-2022 06:51 AM
hi
i installed ip camera adapter and tried to configured it.
but camera showing on NI Max But can not get image.
can you tell me what is issue?
Please see attached file.
thanks
01-11-2022 07:04 AM - edited 01-11-2022 07:05 AM
The camera adapter driver you installed seems to not be compatible with IMAQdx. Or you haven't really configured the adapter driver correctly to actually connect to your camera.
Can you access that camera from a different application like Microsoft Teams, Skype or similar and see the image?
If not that is your main problem that you need to solve first.
If it works in those applications then there is an incompatibility. Many of these drivers were written to provide a minimal interface that provides only the most important properties and methods of the Windows DirectShow camera interface. IMAQdx as an industrial image interface expects a little more than just the ability to grab an image frame and query some pixel format values and image dimensions. And if the driver doesn't support those properties fully the IMAQdx driver can simply stop wanting to talk to your driver.
However your image showing that it tries to connect to the camera would indicate to me that you simply haven't really configured the driver properly yet to connect to your camera. Check that out and try to access it through some other applications first. Before it does work in applications like Skype, OBS or similar you can spare your energy to try to make it work with IMAQdx.