Acquiring from two IP cameras using IMAQdx

Hello All, I have what I thought was a simple task but it is proving to be troublesome.
I have two IP cameras I want to stream images from. I am doing no processing or saving of any kind, it is just so the operator can monitor equipment. I assumed it would be as simple as starting a grab acquisition on each camera and retrieving the images using the IMAQdx VIs, but when following that approach I frequently have timeouts or "unknown HTTP" errors on one of the cameras or, at best, they update unbelievably slooooooow. They are two Axis IP cameras and, when run alone, they provide extremely rapid refresh with almost no latency.
I've tried alternatives such as reading them in a sequence, using snap acquisitions in parallel and in series, and countless others and the best I've been able to achieve is the method above with a hit-or-miss read and a 2-3 second update period. Has anyone done anything like this before? Code snippet attached.
Attachments:
parallel_cam.png ‏196 KB

I was able to resolve the issue by setting the cameras to feed in smaller packets using their own configuration utilities. For anyone that may have an issue such as this, I was able to stream reliably by reducing my maximum camera bit rate. It turns out the default settings for these IP cameras is simply too high for simultaneous acquisition using IMAQdx 

Similar Messages

  • How to acquire a video from a ip camera using TCP/IP?

    I have a ip camera connected to a router and I want to acquire its video using tcp/ip. Could anyone help me?
    Thanks in advance,
    Celia

    Hi,
    If you really want to do it yourself using TCP/IP you will have to read the standard : http://www.machinevisiononline.org/vision-standards-details.cfm?type=5
    Another way is to use NI Vision Acquisition Software, it include all the VI you will need to do image acquisition.
    More doc :
    Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part I
    Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part II
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Streaming Video from a serial camera using JMF

    Hello, I have problems implementing video streaming with a serial camera.
    The data for a frame of the camera is like an array of RGB integer values starting from the first pixel until the last. I've implement the code to get the values and store in an integer array.
    how to generate video from the data i get?

    Hi,
    If you really want to do it yourself using TCP/IP you will have to read the standard : http://www.machinevisiononline.org/vision-standards-details.cfm?type=5
    Another way is to use NI Vision Acquisition Software, it include all the VI you will need to do image acquisition.
    More doc :
    Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part I
    Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part II
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Mark an object in real time on a displayed video acquired from an USB camera

    Hello,
    I am a beginner LabView user undertaking a project in which I need to show video acquired from an USB camera in LabView on computer screen. In the video, there will be a metal part, which is always be at a fixed position at the bottom left of the view. I need to mark an arrow alike sign on the metal part, please take a look at the attached picture. To recognize the metal part easier, in the picture, I drew a blue line at the boundary of the part, whilst the arrow was green. The arrow must be radially pointed to the center of the blue line (but, the blue line may not need to be created) and must be there every time I start the VI, throughout the video.
    How should I do to display the video? Is there any way to create the arrow in LabView (either by programming or manually drawing the arrow)? If making the arrow is impossible, is there any way to just mark a cross at the center of the blue line? The blue line does not need to be marked on the video.
    I have LabView 2010 with Vision Development Module. My camera can be found under NI IMAQdx devices in Measurement and Automation Explorer.
    Thanks,
    LePhuong
    Solved!
    Go to Solution.
    Attachments:
    A fixed arrow mark on the metal part.jpg ‏26 KB

    Hi,
    Look at this post. It may help you. http://forums.ni.com/t5/Machine-Vision/pattern-matching-program/m-p/1914589#M34855. In here its video signal you can replace this with the live video.
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney

  • Receive image from two web-camera​s

    Hallo all.
    I have LV 7.1.1
    I have two web-cameras which are connected to USB1 & USB2.
    How can I see two images  from two web-cameras or more in LV  at the same time?
    With respect
    Aleksandr
    Message Edited by [email protected] on 06-19-2006 01:20 AM

    Aleksandr,
    The IMAQ for USB driver communicates to the 3rd party camera driver using Directshow.  There is an IMAQ USB Property Page VI available in LabVIEW that gives you the ability to open the camera configuration page of the 3rd party camera provided that there is one available.  Depending on the vendor, you may or may not have access to change the resolution of your camera through this property page.   I would contact the manufacturer of the camera to find out if there is a way to do this.
    In case you are curious to know where to find the IMAQ USB Property Page VI, right-click on the block diagram and go to Search in the upper right corner of the palette.  Search for "IMAQ USB Property Page" and the corresponding VI will show up in the list below it.
    Regards,
    Mike T
    National Instruments

  • I would like to import two different cf cards from two different cameras into the same project/folder and have them be in order of the times they were taken, is there a trick?

    I would like to import two different cf cards from two different cameras into the same project/folder and have them be in the order of the times they were taken, any ideas on how to do this?

    Just import them normally and sort the project by date. They will fall into place. If you tried this and it isn;t happening then make sure the data and times on the two cameras are identical and make sure you are sorting by date and time and nothing else.

  • Cant find the pictures I imported from my digital camera using iphoto

    Hi,
    I have a macbook pro and imported part of some photos from my digital camera using Iphoto. When it prompted me whether the photos should be deleted from the camera, I chose 'yes'. It deleted the pictures from the camera, but I cant find them anywhere on iphotos. I have tried searching for the pics on my mac using the 'finder', but had no luck.
    I repeated the same thing.. took some more pictures and tried to import part of them and then delete the same pics from the camera. Iphotos did the same thing..
    I usually import all (and not part) of the pictures from my camera and then use the same option to delete the pictures from the camera after importing them to iphotos. This has always worked.
    Please help. Thanks,
    Kanchan

    In the Event mode make sure the sort order is By Date ➙ Descending.  That will put the newer Events at the top of the window.  Check there to see if they are there or not.
    The safest method to get photos from a camera to the library is to upload them to a folder on the Desktop first.  That makes sure they are safely on the hard drive.  From there you can import the folder into the library and when you've confirmed they are in the library you can delete the folder from the Desktop and have the camera reformat the memory card.
    OT

  • Deleting photos from Sony Action Cam using desktop computer

    Hi Simple question and there will hopefully be a simple answer: How to delete selected photos from my Action Camera using a desktop computer? This is obviously one of the most basic things I should be able to do without having to post a question. Now I can only delete photos via smartphone or live-view which is slow and annoying.  ThanksS

    Hi Upeer, 
    Welcome to the Sony Community!
    To delete photos or videos using a computer, make sure that the camera is securely connected and USB shows on the screen of the camera. Open Computer/My Computer. You should be able to see Removable Drive. Open Removable Drive and then open DCIM folder. Inside the DCIM folder, it will contain another folder, just open it and you will see all the photos and videos recorded in the memory card of the camera. You can highlight the files you want to remove using the delete button on the keyboard. 
    For further assistance regarding your concern, we kindly recommend visiting our Sony Global Web site for information on contacting the Sony Support Center in your region at http://www.sony.net/SonyInfo/Support/.
    If my post answers your question, please mark it as "Accept as Solution"
    Thanks again and have a great day.
    Zander
     

  • How to do a simultaneous snap from two GigE cameras?

    I have 2 Basler Scout 780-54gm cameras (monochrome GigE) that I am triggering externally at 10 Hz. This frame rate is modest and the resulting data rate is not particularly high. I would like to get images from both cameras from the same trigger pulse. I have an Intel Pro/1000 NIC and I am using the NI driver that shows up as National Instruments GigE Vision Adapter. When I use the Basler Pylon Viewer (the software that comes with the cameras) I can see perfect images from both cameras at the same time at 10 Hz. This tells me that the network, NIC and drivers can handle the data rate with no problem. I have jumbo frames enabled.
      When I try to acquire images into LabVIEW 8.6 with IMAQdx vis, though, I run into problems. I can acquire from each camera alone, but I can't get both at the same time cleanly. The images are shot through with black horizontal lines that appear and move erratically. I have attached a vi that shows the problem. I configure and start both acquisitions, then enter a while loop which reads the images. If I do the acquisitions sequentially by starting and stopping them inside the loop and making sure that one stops before the other starts then I get high-quality images but they are not from the same trigger pulses, and the overhead of starting and stopping the acuisitions slows things down so that I can't get images from every trigger.
      My guess is that this is a problem with the way LabVIEW is managing memory, resulting in corruption with simultaneous acquisitions. Are there any settings I can change to cure this problem? I have experimented with everything that I know about, but no success yet.
    Attachments:
    Two GigE Grabs standalone.vi ‏50 KB

    Hi Richard:
    You should put the tick count function in a sequence structure in order to make the loop timing consistent each iteration, but what are you receiving as a loop time?  If it's operating in less than 100ms, it shouldn't be the software that's affecting the images.
    One other thing you can try is to get rid of the error wire between your Get Image VIs.  This will keep the program from forcing a delay by executing the functions one at a time.
    Alex Person
    NI-RIO Product Support Engineer
    National Instruments

  • Issues with acquiring from multiple GigE cameras

    Hi,
    I'm trying to build a simple app where three cameras are running simultaneously and can optionally record AVIs with timestamped data appended to each frame. I'm not having the recognition issue (all three cameras are seen through either a network bridge on the PXI system I'm using or an external GigE switch), but they seem to be failing during the grab process. When I have more than one running, green noise in the form of horizontal lines appear on the images, and usually all but one of the cameras will eventually drop out. No such problem exists when triggering only one camera. It seems a lot like the frames are colliding somehow; can grabs from multiple cameras not occur in the same loop?
    As for the program set up, it's mainly a modified version of the "write" case in the AVI Read/Write with Data example. The user is prompted to save the avi's and a text file, three camera and IMAQ sessions are opened (with unique names), and then the program loops until the stop is hit, with a true/false case for actually recording the data. Frame/sample rate is controlled by the millisecond timer wait function. The problem happens regardless of acquisition speed (even at 1 frame/sec), and the CPU nor the network link seem to be anywhere near fully taxed. 
    Thanks,
    Brian

    Thanks for the suggestions guys.  I put the packet size back to 8000 on both cameras.  So far, I'm still seeing green horizontal lines.  Here's what I've tried and what I've learned.
    1.  Set Acquisition Mode in VBAI to Continuous - Immediate
    2.  Tried to reduce the bandwidth demand of the cameras by setting Acquisition Frame Rate (Abs) to 3.0
    3.  Checked the Device Max Throughput under Transport Layer in MAX
    a. Color Pilot camera is 30.4 MB/sec
    b. Mono Pilot camera is 11.1 MB/sec
    4.  Checked the Bandwidth Assigned under Transport Layer in MAX, and it is 125 MB/sec
    5.  Add 30.4 to 11.1 and get 41.5 MB/sec so there is 83.5 MB/sec bandwidth available.
    6.  Subtract 5 MB/sec for overhead and 6 MB/sec for each camera for Bandwidth Reserve (set at 5%) and there is still 66.5 MB/sec left over
    7.  Open VBAI, and then open an inspection in which the Mono camera is configured (mad sure to load the defaults that were saved in MAX)
    8.  Launch MAX and try a Grab from the Color camera
    9.  See green lines of death.... 
    So, I've narrowed my experimentation down to just two cameras and I still have acquisition problems.  I've got to be missing something else.  Note that there is no camera attribute section called "Advanced Ethernet" only "Transport Layer".  Perhaps that was camera-specific.
    I think I'm going to have to use dedicated Ethernet ports for each camera.  It is disappointing since this architecture should work given those bandwidth concessions made for frame rate.
     - Dan

  • How to calculate the phase difference between two square wave (acquired from two channel in one DAQ)

    Hello everyone ,
     I need a quickly help that as below :
    I am trying use PCI-6220 to acquired six signals from one rotation encoder (channel A, channel B,channel Z ,and their non-signals) .The encoder out signals will be square wave and 4000pulses per revolution. I set it rotation at 300rpm speed. I need show every square wave of six out channels in waveform and measure the A-B phase difference to check if the value is correct (designed value should be 90deg) .
    I have no idea how to measure or calculate the phase difference of two square wave base on synchronizate to acquire these two square wave from two channel on the PCI-6620....
    Anyone can give a idea how to calculate the phase difference with two square wave ?
    Thank a lot and Thanks again...
    Tim

    Tim,
    Here is a simple rising edge detector for one channel.
    Lynn
    Attachments:
    Rising edge.vi ‏15 KB

  • Problem in  grabing images from two web cams

    Hi
    I am trying to modify single web cam capturing screen code into multiple web cam screen capturing. The method autoDetect() recognizes the web camera. I want to choose web cam by myself. I tried all devInfo from the list but it resulted no success. Always the first camera is selected . I use different cameras (Logitech and Genius). Please, how to detect both camera to work at the same time.
    public CaptureDeviceInfo autoDetect ( )
            Vector list = CaptureDeviceManager.getDeviceList (null);
            CaptureDeviceInfo devInfo = null;
                if ( list != null )
                String name;
                for ( int i=0; i<list.size(); i++ )
                    devInfo = (CaptureDeviceInfo)list.elementAt ( i );
                    name = devInfo.getName();
                   if ( name.startsWith ("vfw:") )
                                     break;
              ...The whole code is on: JWebCam

    Here's source code I posted to capture a frame from one webcam.
    http://forum.java.sun.com/thread.jspa?threadID=570463&tstart=25
    Lots of people have problems with multiple cameras, something to do with the
    Windows USB channels and failing to detect/select between the two.
    So, capturing frames from 1 web cam is relatively straightforward, but you may have serious problems with two or more.
    regards,
    Owen

  • I don't know how transfer my photos from my Sony Camera using USB?

    My MAC doesn't pop up any thing when I connect my Sony Camera model DSC-N1 on USB port? How can I transfer my photos? Thanks ...

    DanielOliveira55 wrote:
    My MAC doesn't pop up any thing when I connect my Sony Camera model DSC-N1 on USB port? How can I transfer my photos? Thanks ...
    The EXACT answer will depend on which OS and iPhoto you are using, but they all work as follows.
    Provided that your Mac recognizes your camera's memory card, you should be able to use iPhoto's
    FILE > IMPORT TO LIBRARY menu command, even if connecting your camera does not automatically find ("pop up") iPhoto. If you want your Mac to ALWAYS launch one specific app (such as iPhoto) when you connect your camera, you select which app via with your Mac's "Image Capture" application as follows:
    Launch your Mac's "Image Capture" application and search Image Capture > Help for "Transferring items from your camera" (without the quotation marks.)
    If you have trouble with the search, you can find the topic on Apple's website here:
      http://docs.info.apple.com/article.html?path=ImageCapture/6.0/en/5304.html
    When your camera is connected and operating, you can use Image Capture to select whether and which application to launch automatically when you connect your camera in the future. The Image Capture 8 way of setting is shown in the following image:
    For help with the iPhoto part, launch your Mac's "iPhoto" application and search iPhoto > Help for "Importing photos from a digital camera" (without the quotation marks.)
    If you have trouble with the search, you can find the topic on Apple's website here:
      http://docs.info.apple.com/article.html?path=iPhoto/7.0/en/6297.html
    The exact steps may be slightly different if you are using some other version of iPhoto. If you cannot find what you need, post back which iPhoto and Mac OS X versions you are using and what specific issue is giving trouble, and we will try to offer tailored links.
    EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz w/Mac OS X (10.6.2)  MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.2)
    LED Cinema Display  G4 PowerBook 1.67GHz (10.4.11)  iBookSE 366MHz (10.3.9)  External iSight

  • Capturing images from two web camera in real time

    Hi,
    I need to compare two pictures from two webcameras. I will make some easy computing on them, so there should be no speed problem, but i dont know how can i take each picture? is there any action which is called each time a frame comes? do sb have some sample code?
    thanks
    JJ

    Here's source code I posted to capture a frame from one webcam.
    http://forum.java.sun.com/thread.jspa?threadID=570463&tstart=25
    Lots of people have problems with multiple cameras, something to do with the
    Windows USB channels and failing to detect/select between the two.
    So, capturing frames from 1 web cam is relatively straightforward, but you may have serious problems with two or more.
    regards,
    Owen

  • Lightroom not merging and sorting images from two different cameras - help please !!

    Hi guys,
    I need some help here. I've just imported a few thousands of images form two different cameras, however Lightroom simply sorts them by camera only. (i.e.. images from the first camera, all sorted by capture time, then come images form the second camera.)
    The cameras are the same brand and model, times are synchronised, but the images refuse to merge and sort. I've tried putting them in the same folder and importing, but that doesn't do it either. I've been doing this for years and it all worked fine, till today. Does anyone know whats causing this, and how I can fix it?
    Thanks in anticipation.
    Latch

    Hi John,
    View > Sort > Capture Time is checked, The cameras are in sync down to the second, and images from both have been merging and sorting fine for over two years, till today. Sort order is all set to capture time in all modes and views, but its still sorting first by camera.

Maybe you are looking for

  • Query variable for characteristic with texts

    Hello experts, I need some help on the following issue: I want to do master data reporting on a characteristic of type numc that has texts. I need to filter on a certain text range of the characteristic by using a variable, e.g. select all records be

  • Captivate 4: Project corrupt/C4 crashes

    Hi, while producing video tutorials we are inserting foil backgrounds and so on. Now it happens very often, that the project suddenly is corrupt in that way that no new foil can be inserted (nor by recording, importing, or copy/paste). If trying to d

  • Why is mozilla firefox not opening after updating?

    I updated mozilla firefox and rebooted my computer. Now when I click on mozilla firefox it does not open. An error message doesn't even pop up. I have full internet connection.

  • How to view other schema's job status ?

    Hi, My application is in schema A. User B has just enough rights to do specific tasks in A. One of them is to call a function that creates a job in schema A. The view user_jobs in A shows the job. How can I make this job visible to user B without gra

  • In which forum can i post direct 2d related issues?

    In which forum can i post direct 2d related issues?