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

Similar Messages

  • 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

  • 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.

  • Capture an image using the web camera from a web application

    Hi All,
    Could anyone please share the steps what have to be followed for capture an image using the web camera from a web application.
    I have a similar requirement like this,
    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.
    3) Upload the Image to the server from the temporary location.
    Please share the details like, what can be used and how it can be used etc...
    Thanks,
    Suman

    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)There's not really any good way to do this with JMF. You'd have to somehow create a JMF web-start application that will install the native JMF binaries, and then kick off the capture device scanning code from the application, and then scan through the list of devices found to get the MediaLocator of the web cam.
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.You'd probably be displaying a "preview" window and then you'd just want to capture the image. There are a handful of ways you could capture the image, but it really depends on your situation.
    3) Upload the Image to the server from the temporary location.You can find out how to do this on google.
    All things told, this application is probably more suited to be a FMJ (Freedom for Media in Java) application than a JMF application. JMF relies on native code to capture from the web cams, whereas FMJ does not.
    Alternately, you might want to look into Adobe Flex for this particular application.

  • Problems while accessing images outside the web document-root folder

    Our application runs on Oracle application server on Linux. Facing problems while accessing images outside the web document-root folder. This works with changes in global-web-application.xml by including the <virtual-directory> tag. The same change does not work when done on Linux machine. It is unable to find the image. Please help in resolving this issue.
    </locale-encoding-mapping>
    </locale-encoding-mapping-list>
    </web-app>
    <virtual-directory virtual-path="/img" real-path="/home/eposuat/" />
    </orion-web-app>
    Code in the jsp:
    <img width=700 height=700 src="/img/3.tif"></img>
    <img width=700 height=700 src="/img/WB.gif"></img>

    This is one of the least satisfactory aspects of site management in Dreamweaver, and several developers, including myself, have been pressuring the Dreamweaver team for some years to improve this. Who knows? They might eventually take notice.
    The only way to do this at the moment is to create two site definitions, one nested inside the other. Set up the site definition normally based on htdocs as your site root. Then create a new site definition based on site. Dreamweaver will nag you that it can cause problems, but it won't actually stop you from doing it. The only potential problem is with site synchronization.
    The problem with using site as the only basis for your site definition is that Dreamweaver automatically puts things like the Connections, Scripts, and other folders in the site root. So, everything ends up at the wrong level of the site hierarchy. Quite frankly, the whole thing is a bit of a pain. Dynamic site development was added to Dreamweaver only in version 6 (Dreamweaver MX), and no one had really thought through the need to store files outside the site root.

  • I am having a problem uploading .jpg images to my web site.

    Hello, I am having a problem uploading .jpg images to my web site hosted on Go Daddy.
    I am using DW CS5 and have been using DW to upload files for 2 years with no problems until yesterday.  The file uploads but only the text is there.  The .jpg image is a box with an X in it.
    I checked the server and there are no images being uploaded with the files. I went to Go Daddy's FTP file manager website and was able to load the files with the .jpg and that method worked fine.  As far as I know, nothings changed on my computer.  I use Win 7 with an ethernet cable (no wifi) and have never had a problem until yesterday.   
    Any suggestions?

    Ken let me give you a better image to work with, that one came out kinda fuzzy.  If you can fix this one I can resize it to fit the images or either side of it.thanks!JD Date: Sun, 23 Dec 2012 11:18:43 -0700
    From: [email protected]
    To: [email protected]
    Subject: I am having a problem uploading .jpg images to my web site.
        Re: I am having a problem uploading .jpg images to my web site.
        created by Ken Binney in Dreamweaver General - View the full discussion
    As discussed, it's a matter of uploading to the correct subfolder Here's the mofified logo  http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-4942156-265385/450-120/logo.jp g
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4942156#4942156
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4942156#4942156
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4942156#4942156. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Grab images from a IP camera

    ---BACKGROUND---
    We have very little experience with programming for the LabView, but good experience with programming in general.
    ---SETUP---
    In one end we have the newest LabView (8?) that is connected to several OPC driven PLSes.
    In the other end we have a piece of custom hardware that grabs images from several analog cameras (surveillance machine)
    We need to send the image from the surveillance machine to the labview
    software as easily as possible. We have access to the sourcecode for
    the surveillance machine to writing a custom protocol to send images is
    no problem, the problem is the labview end.
    My question is if there is a way to make labview connect to a machine
    and download images from it, the exact protocol is no problem since we
    can customize the hardware completly, a llI need is a connection where
    images come streaming to it.
    If not then maybe there is a way to program the labview to do the following;
       Connect to a machine on the internet
    Send commands to the connected machine
    Receives images in a loop until connection is broken
    Hope anyone got any clues as to what I am trying to accomplish here.
    Thanks in advance
    Thomas Leggett
    Programmer for DigiTales

    nyc thanks for your time,
    Here is my code, along with the C# example code from the vendor. 
    FYI the sample code from the vendor did not work on the customers machine either, just showed a black screen. I installed VS2010 Express C#.NET on the machine to test if I could grab images from the vendors example and no joy....didnt work.
    Steven Howell
    Certified LabVIEW Developer
    Certified Professional Instructor
    Systems Developer
    Optimation - Houston
    [email protected]
    Attachments:
    Pelco Test.zip ‏188 KB

  • How to save an image from an web page?

    Hello everybody!
    I have a problem and I hope someone can help me :).
    I am trying to save/download an image from an web page to my computer. So given an URL which contains the image, I want to save this/write this image to disk. Here is my code:
    import java.net.*;
    import java.io.*;
    public class Test{
        public static void main(String[] args) throws Exception{
            Test test = new Test();
            test.readFile();
        public void readFile() throws Exception{
            InputStream inputStream = new URL("http://www.google.se/images/hp1.gif").openStream();
            InputStreamReader reader = new InputStreamReader(inputStream);
            BufferedReader buffReader = new BufferedReader(reader);
            BufferedWriter bw = new BufferedWriter(new FileWriter("savedImage.gif"));
            int x=0;
            while((x = buffReader.read()) != -1) {
                bw.write(x);
            bw.flush();
    }The code saves the image to disk, but unfortunately the image is distorted. Can anyone help me to solve this problem.
    Thanx in advance
    Best regards
    /TheMan

    thanx guys for your quick answers. I got i to work with the following code
    InputStream inputStream = new URL("http://www.google.se/images/hp1.gif").openStream();
            FileOutputStream fos = new FileOutputStream(new File("savedImage.gif"));
            int x=0;
            while((x = inputStream.read()) != -1) {
                fos.write(x);
            fos.flush();Again, thanx guys!

  • When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the original file name being replaced during the downloading process?

    When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the file name being changed during this downloading process?

    Hi Glenyse,
    Here are my steps.
    1.  I upload multiple image (jpg) files onto my photo album.
    2.  I select the "sharing" by email option for this album.
    3.  I enter the recipient's email address.
    4.  The recipient receives my message and clicks on the link.
    5.  The recipient accesses my photo album and clicks on one of the images.
    6.  The image opens up to its own screen.
    7.  The recipient selects the "download" and then save file option.
    Here is the part I do not understand.  For some reason, during this "download" process, the original name which I have given to the file is replaced by different name.  So I was hoping that someone knows how to prevent the file name from being changed during the "download and save" process.
    Much appreciated if you can help me find a solution to this problem.
    Mary  

  • How to capture an image from my usb camera and display on my front panel

    How to capture an image from my usb camera and display on my front panel

    Install NI Vision Acquisition Software and NI IMAQ for USB and open an example.
    Christian

  • 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.

  • Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.

    Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.  Any suggestions?

    Solution discovered.  Faulty connector cable.  Tried a different one and it worked.

  • Getting images from the web

    When I copy an image from the web and paste it in AI the URL is inserted and not the image.  How do I change that?

    I understand the rights issue and I am complying to any rights issue.  The issue that I am having is at home I can copy and paste an image in to AI from the web but at work I cannot do the same thing.  It is an extra step that I am not use to.  I know it is some sort of setting I just cannot find. 
    For example, if you look up "tigers" on Google, take the first image of tiger and paste it in AI are you able to do it?
    When I do this I get the below text instead of the image:
    http://upload.wikimedia.org/wikipedia/commons/1/17/Tiger_in_Ranthambhore.jpg
    Any help will be greatly appreciated, I use a ton of images from my factories that I need to use for my job.

  • Why can't i download e-mail attachments and images from the web using firefox browser

    i am using a Mac laptop.
    when i try to download my e-maill attachments, the Download tab appears. but when i click the download "key", nothing happens.
    i also can't save images from the web using firefox. the Save this Image tab appears but when i try to save, nothing happens.
    when i check on my Downloads folder, only unreadable files like these appear:
    1ttOnsY3.doc.part
    2Sf9jyNT.doc.part
    62+fxHoe.doc.part
    ASx1ZO9N.xls.part
    BtRlxR4R.exe.part
    dZmKC1nU.doc.part
    ehmb9rox.doc.part
    FJx+ku02.doc.part
    FSR7ckkV.doc.part
    hvlqg5Qy.exe.part
    JwVExec0.doc.part
    KEBM+klW.doc.part
    but when i try to use my Safari browser, download is successful.
    ive tried reinstalling my Firefox (version 3.6) but to no avail

    Not all 10g links are wrong however a number of them are as follows:
    Oracle ADF Installer (10.1.3.2) (Version 10.1.3.2, build 4066)
    Oracle ADF Installer (10.1.3.1) (Version 10.1.3.1, build 3984)
    Oracle JDeveloper 10g (Version 10.1.2.3, build 1936)
    Oracle JDeveloper 10g (Version 10.1.2.2, build 1929)
    Oracle JDeveloper 10g (Version 10.1.2.1, build 1913)
    Oracle JDeveloper 10g (Version 10.1.2, build 1811)
    All update this post once resolved.
    Thanks for the notification

Maybe you are looking for

  • Windows 7 or 8 shows the wireless client connected to the access point but the wireless icon displays "No connection to the internet

    I have seen the same issue working with a different vendors wireless solution. When I sniffed the air with OmniPeek and the network the ap was on with WireShark, I see the arp request for the gateway go to the router, the reply from the gateway route

  • Cannot get Itunes to open in windows 7 64 bit

    I have installed after a complete reformating of my hard disk, installed and reinstalled itunes several times after a complete unistall of all related programs and tried just about everything that is recommended. What can I do to get itunes to open o

  • Forms 11g - web.show_document

    Hi! How can i reach the reports server with web.show_document in Forms 11g? "opmnctl status" shows the running reportsserver but when i make a call e.g. to http://pc1:8888/reports/rwservlet?report= ... a.s.o. the error message: Failure of server apac

  • Fixing a macbook pro. HELP

    Just wondering if there is any body out there that knows how to fix a problem that i have with my macbook pro, Last night it froze on me so i turned it of and then tried to turn it back on and it would not let me past the first screen that is white w

  • ABAP programing material related to BW.

    Hi Experts, Im new to BW/BI. Can anyone please tell me where I can find ABAP programing material related to BW. Thank in advance.