Acquire an image from a webcam ?

I search a way to acquire an image from a webcam. I already tried with the
TWAIN issue but the GUI of the webcam is displayed and I need to press the
acquire button to receive the image. I would like to be able to acquire an
image directely. I would like to try the Video For Windows issue but I can't
find the LVVFW.VI or LLB file.
Can you suggest something ?

Hi Mourgue,
Try one of the following if it's a USB camera ?! ;
http://www.info-labview.org/the-archives/vi/lv6/Logitech%20QuickCam%20LabVIEW%20Driver%20v1.0.txt
http://www.info-labview.org/the-archives/vi/lv6/Logitech%20QuickCam%20LabVIEW%20Driver%20v1.0.zip
-------------- OR --------------------
Video For Window LabVIEW driver ;
http://exchange.ni.com/servlet/com.quiq.servlet.GetObject/lv_vfw.zip?KEY=101.97.12134.14&SIG=101.97.12134.14&EXT=mime:application/x-zip-compressed
I Hope that you 'get on' with it - good luck
Regards
Torben ?stergaard-Andersen

Similar Messages

  • Acquire image from USB webcam

    Hey everyone.  I have a Logitech USB webcam that I would like to use to acquire still images.  I am using LV 8.2.  All the posts I have read suggest using NI-IMAQ for USB Cameras.  I have tried to install it, but it says "You must have Vision 7.1 or higher with LabVIEW 7.0 or higher, or you must have Vision Assistant 7.1 or higher installed to use this add-on."  I don't have Vision or Vision Assistant.  Am I doing something wrong?  None of the other posts seemed to mention that you needed Vision in order to use the add-on.  Does anyone know how I can acquire images from my USB webcam through LV 8.2 without having to buy additional software?  Thanks!
    Jay Mathews
    CPP, Inc.

    This question comes up often. That driver is something that NI provides as a convenience, and yes it requires additional software, as stated on the description for it. As for alternatives, did you get any software with the camera that looks like it could be used with LabVIEW, like an ActiveX library? That can certainly be used. As mentioned in this thread, supposedly RoboLab for LabVIEW has some tools, but I've never used it myself. You can also try the LabVIEW Webcam Library. Kind of old, though.

  • Capturing live image from integrated Webcam using Labview

    How can i capture live image from my laptop integrated webcam using LabVIEW ?
    Even after installing all the IMAQ drivers, MAX is not displaying my integrated webcam ?
    Why is it so ?
    do i need to install some additional drivers for this ?
    Thanks and Regards
    Gaurav Pal

    hi, you can use NI Vision Assistant
    IDE ofNI Vision Assistant
    ..select acquire images
    ...select option 2
    ...select devices: CAM0 (default webcam), video mode resolution 
    ...option 1 acquire single, option 2 acquire continuous 
    Atom
    Certified LabVIEW Associate Developer

  • Converting a snapped image from usb webcam to rgb model color

    Hellow everyone,
    I am trying to convert  a snapped image using usb webcam to RGB model. I have two VIs, for snapping and the other for converting JPEG to RGB as the attached VIs bellow. My problem is how to connect these two VIs in one VI to make direct conversion from snapping to RGB model. I am using LABVIEW 8.6
    Attachments:
    NI-IMAQ for USB Snap LV 86.vi ‏43 KB
    GetRGB_LV71.vi ‏30 KB

    So the two VIs that you have are not directly compatible with each other. Notice that the first one uses IMAQ VIs (an add-on), while the second is using VIs from NI's Base Package. This means that the first VI (the snap) outputs an "Image" type, while the second VI is using an "imagedata" type.
    To clarify, you want the histogram of each color in the image, is that right? This is what a histogram is:
    http://zone.ni.com/reference/en-XX/help/372916J-01/nivisionconcepts/histogram/
    If so, you can use the IMAQ ExtractColorPlanes VI to extract each individual color plane...
    http://zone.ni.com/reference/en-XX/help/370281M-01/imaqvision/imaq_extractcolorplanes/ 
    ...and then you can use the IMAQ Histogram VI to map the histogram of that color plane.
    http://zone.ni.com/reference/en-XX/help/370281M-01/imaqvision/imaq_histogram/
    Ravi A.
    National Instruments | Applications Engineer

  • Set up of system for acquiring/​processing images from digital camera

    Hi all,
    I am new to LabVIEW and I need to choose and install a system camera+software able to acquire and process images. I would like to achieve this as painlessly as possible, by choosing the appropriate equipment. I was thinking of buying an industrian camera with GigE interface amongst the list of NI supported  cameras. 
    Once I have that, what software do I need in order to acquire and process images with LabVIEW? Do I need NI-IMAQdx and If I already have NI-IMAQ, do I need to purchase a license for NI-IMAQdx? 
    What steps are required to install and configure the system? If anyone can give  suggestions on how to implement this systemit would be greatly appreciated.
    Thank you!

    As Paul suggested the software you need will be the NI Vision Acquisition Software, NI-IMAQ alone will not be sufficient.
    Take a look at this tutorial, part one gives a nice bit of background and part two gives you specifics on how to set things up.
    Acquiring form GigE Vision Cameras with Vision Acquisition Software - Part I
    Acquiring form GigE Vision Cameras with Vision Acquisition Software - Part II
    If you need any further help please do not hesitate to call our pre-sales engineers on 01635 523545.
    Regards
    Rich
    NI | UK

  • Acquire Images from webcam in LabVIEW 8.5

    I've been working with Labview for week now and have done several
    online tutorials and things like that. I need to be able to record an
    image from a webcam into Labview. I've found numerous discussions on
    the topic but none that contain any solid examples. I have Labview 8.5
    with the NI-IMAQ drivers and NI Vision.
    What
    are the basic steps that need to be done to aquire an image from a
    webcam and display it on a front panel? Any example VI's or detailed
    descriptions would be more than welcome. Please understand that I have
    just started working with LabView so some concepts like device drivers
    are still a little new to me. Thank you for any help you can provide.

    Hi CanadianKyle,
    I've been working with Labview for few months now and have done several online tutorials and things like that.
    but i can not tell you exactly that Vision requirement is must or not?......
    But I Think there is no other way to use this without Vision 7.1 or Higher.
    U will get Vision with evaluation version on Ni.com.
    You can try for this, It will help you.
    best luck.

  • How to acquire image from S-video camera

    Hi,
    I have a camera with S-video interface. I use a S-video to USB adaptor to acquire the images from my camera. Popular video editor/maker softwares, for example Windows Movie Maker, ULead VideoStudio, etc.. are able to display the video capture from my camera (using the same S-video to USB adaptor). Thus, I think the adaptor transferred the camera to an USB Directshow camera already? However I cannot grab images/video using Labview. I have installed IMAQdx, and I can use the same LabView VI to grab images/video from my USB camera.
    Is there any suggestion for my case?
    Thanks.

    Make sure you are using the right color channel, in most cases YYUV will not display.  Use RGB.  Also try changing the resolution settings.
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • Video image from webcam resizes

    I am trying to develop a online presentation application which has the webcam feature. I am using JMF for this purpose. I am creating this as an applet. The first time when the page loads and the user clicks the start button to start the video, the webcam starts and the video is displayed in a small area of the applet.
    The left side of the applet displays the images. When the user clicks the next button, the next image from the vector is displayed and the image label displays the image number as 2.
    The problem is that, if the user clicks next button , the video image from the webcam gets resized. It scales itself in the horizontal direction. I have no clue as to why is this happeneing. Is this something due to the layout problem or JMF ?
    Any help in this matter will be highly appreciated.
    Regards,
    Sharad

    I guess its because you are having a BorderLayout. If with a borderlayout, components added will strech both ways (horizontally and vertically) but you seem to say that the video image strechs only horizontally, maybe components added to NORTH or SOUTH of a borderlayout would do that.
    Anyhow, try to set the layout to FlowLayout

  • Capturing an image from webcam

    hi, i'm trying to capture a image from a webcam, but i don't have a clue of how to do this, could anyone help me with samples or books.
    thanks.

    hi
    so as i understood u want to access the USB and make whats called camera interaction i worked with my webcam and i generate a video stream and i'm working now to sample this video
    i found these class on the internet u have to make a littel changes like camera defention
    * File: DeviceInfo.java.java
    * created 24.07.2001 21:44:12 by David Fischer, [email protected]
    import java.awt.Dimension;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    public class DeviceInfo
         public static Format formatMatches (Format format, Format supported[] )
              if (supported == null)
                   return null;
              for (int i = 0;  i < supported.length;  i++)
                   if (supported.matches(format))
                        return supported[i];
              return null;
         public static boolean setFormat(DataSource dataSource, Format format)
              boolean formatApplied = false;
              FormatControl formatControls[] = null;
              formatControls = ((CaptureDevice) dataSource).getFormatControls();
              for (int x = 0; x < formatControls.length; x++)
                   if (formatControls[x] == null)
                        continue;
                   Format supportedFormats[] = formatControls[x].getSupportedFormats();
                   if (supportedFormats == null)
                        continue;
                   if (DeviceInfo.formatMatches(format, supportedFormats) != null)
                        formatControls[x].setFormat(format);
                        formatApplied = true;
              return formatApplied;
         public static boolean isVideo(Format format)
              return (format instanceof VideoFormat);
         public static boolean isAudio(Format format)
              return (format instanceof AudioFormat);
         public static String formatToString(Format format)
              if (isVideo(format))
                   return videoFormatToString((VideoFormat) format);
              if (isAudio(format))
                   return audioFormatToString((AudioFormat) format);
              return ("--- unknown media device format ---");
         public static String videoFormatToString(VideoFormat videoFormat)
              StringBuffer result = new StringBuffer();
              // add width x height (size)
              Dimension d = videoFormat.getSize();
              result.append("size=" + (int) d.getWidth() + "x" + (int) d.getHeight() + ", ");
              // try to add color depth
              if (videoFormat instanceof IndexedColorFormat)
                   IndexedColorFormat f = (IndexedColorFormat) videoFormat;
                   result.append("color depth=" + f.getMapSize() + ", ");
              // add encoding
              result.append("encoding=" + videoFormat.getEncoding() + ", ");
              // add max data length
              result.append("maxdatalength=" + videoFormat.getMaxDataLength() + "");
              return result.toString();
         public static String audioFormatToString(AudioFormat audioFormat)
              StringBuffer result = new StringBuffer();
              // short workaround
              result.append(audioFormat.toString().toLowerCase());
              return result.toString();
    the second class:
    * File: MyDataSinkListener.java
    * created 24.07.2001 21:41:47 by David Fischer, [email protected]
    * Decription: simple data sink listener, used to check for end of stream
    import javax.media.datasink.*;
    public class MyDataSinkListener implements DataSinkListener
         boolean endOfStream = false;
         public void dataSinkUpdate(DataSinkEvent event)
              if (event instanceof javax.media.datasink.EndOfStreamEvent)
                   endOfStream = true;
         public void waitEndOfStream(long checkTimeMs)
              while (! endOfStream)
                   Stdout.log("datasink: waiting for end of stream ...");
                   try { Thread.currentThread().sleep(checkTimeMs); } catch (InterruptedException ie) {}
              Stdout.log("datasink: ... end of stream reached.");
    * File: MyDataSinkListener.java
    * created 24.07.2001 21:41:47 by David Fischer, [email protected]
    * Decription: simple data sink listener, used to check for end of stream
    import javax.media.datasink.*;
    public class MyDataSinkListener implements DataSinkListener
         boolean endOfStream = false;
         public void dataSinkUpdate(DataSinkEvent event)
              if (event instanceof javax.media.datasink.EndOfStreamEvent)
                   endOfStream = true;
         public void waitEndOfStream(long checkTimeMs)
              while (! endOfStream)
                   Stdout.log("datasink: waiting for end of stream ...");
                   try { Thread.currentThread().sleep(checkTimeMs); } catch (InterruptedException ie) {}
              Stdout.log("datasink: ... end of stream reached.");
    }[i]the 3rd class:/******************************************************
    * File: Stdout.java.java
    * created 24.07.2001 21:44:46 by David Fischer, [email protected]
    * Description: utility class for standard output
    public class Stdout
         public static void log(String msg)
              System.out.println(msg);
         public static void logAndAbortException(Exception e)
              log("" + e);
              flush();
              System.exit(0);
         public static void logAndAbortError(Error e)
              log("" + e);
              flush();
              System.exit(0);
         public static void flush()
              System.out.flush();
    the 4rt is :
    * File: TestQuickCamPro.java
    * created 24.07.2001 21:40:13 by David Fischer, [email protected]
    * Description: this test program will capture the video and audio stream
    * from a Logitech QuickCam� Pro 3000 USB camera for 10 seconds and stores
    * it on a file, named "testcam.avi". You can use the microsoft windows
    * media player to display this file.
    * operating system: Windows 2000
    * required hardware:  Logitech QuickCam� Pro 3000
    * required software: jdk 1.3 or jdk1.4 plus jmf2.1.1 (www.javasoft.com)
    * source files: DeviceInfo.java, MyDataSinkListener.java,
    *               Stdout.java, TestQuickCamPro.java
    * You can just start this program with "java TestQuickCamPro"
    * hint: please make shure that you setup first the logitech camerea drives
    * and jmf2.1.1 correctly. "jmf.jar" must be part of your CLASSPATH.
    * useful links:
    * - http://java.sun.com/products/java-media/jmf/2.1.1/index.html
    * - http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html
    * with some small modifications, this program will work with any USB camera.
    import java.io.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.datasink.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    public class TestQuickCamPro
         private static boolean                    debugDeviceList = false;
         private static String                    defaultVideoDeviceName = "vfw:Microsoft WDM Image Capture (Win32):0";
         private static String                    defaultAudioDeviceName = "DirectSoundCapture";
         private static String                    defaultVideoFormatString = "size=176x144, encoding=yuv, maxdatalength=38016";
         private static String                    defaultAudioFormatString = "linear, 16000.0 hz, 8-bit, mono, unsigned";
         private static CaptureDeviceInfo     captureVideoDevice = null;
         private static CaptureDeviceInfo     captureAudioDevice = null;
         private static VideoFormat               captureVideoFormat = null;
         private static AudioFormat               captureAudioFormat = null;
         public static void main(String args[])
              // get command line arguments
              for (int x = 0; x < args.length; x++)
                   // -dd = debug devices list -> display list of all media devices - and exit
                   if (args[x].toLowerCase().compareTo("-dd") == 0)
                        debugDeviceList = true;
              // get a list of all media devices, search default devices and formats, and print it out if args[x] = "-dd"
              Stdout.log("get list of all media devices ...");
              java.util.Vector deviceListVector = CaptureDeviceManager.getDeviceList(null);
              if (deviceListVector == null)
                   Stdout.log("... error: media device list vector is null, program aborted");
                   System.exit(0);
              if (deviceListVector.size() == 0)
                   Stdout.log("... error: media device list vector size is 0, program aborted");
                   System.exit(0);
              for (int x = 0; x < deviceListVector.size(); x++)
                   // display device name
                   CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo) deviceListVector.elementAt(x);
                   String deviceInfoText = deviceInfo.getName();
                   if (debugDeviceList)
                        Stdout.log("device " + x + ": " + deviceInfoText);
                   // display device formats
                   Format deviceFormat[] = deviceInfo.getFormats();
                   for (int y = 0; y < deviceFormat.length; y++)
                        // serach for default video device
                        if (captureVideoDevice == null)
                             if (deviceFormat[y] instanceof VideoFormat)
                             if (deviceInfo.getName().indexOf(defaultVideoDeviceName) >= 0)
                             captureVideoDevice = deviceInfo;
                             Stdout.log(">>> capture video device = " + deviceInfo.getName());
                        // search for default video format
                        if (captureVideoDevice == deviceInfo)
                             if (captureVideoFormat == null)
                             if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultVideoFormatString) >= 0)
                             captureVideoFormat = (VideoFormat) deviceFormat[y];
                             Stdout.log(">>> capture video format = " + DeviceInfo.formatToString(deviceFormat[y]));
                        // serach for default audio device
                        if (captureAudioDevice == null)
                             if (deviceFormat[y] instanceof AudioFormat)
                             if (deviceInfo.getName().indexOf(defaultAudioDeviceName) >= 0)
                             captureAudioDevice = deviceInfo;
                             Stdout.log(">>> capture audio device = " + deviceInfo.getName());
                        // search for default audio format
                        if (captureAudioDevice == deviceInfo)
                             if (captureAudioFormat == null)
                             if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultAudioFormatString) >= 0)
                             captureAudioFormat = (AudioFormat) deviceFormat[y];
                             Stdout.log(">>> capture audio format = " + DeviceInfo.formatToString(deviceFormat[y]));
                        if (debugDeviceList)
                             Stdout.log(" - format: " +  DeviceInfo.formatToString(deviceFormat[y]));
              Stdout.log("... list completed.");
              // if args[x] = "-dd" terminate now
              if (debugDeviceList)
                   System.exit(0);
              // setup video data source
              MediaLocator videoMediaLocator = captureVideoDevice.getLocator();
              DataSource videoDataSource = null;
              try
                   videoDataSource = javax.media.Manager.createDataSource(videoMediaLocator);
              catch (IOException ie) { Stdout.logAndAbortException(ie); }
              catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
              if (! DeviceInfo.setFormat(videoDataSource, captureVideoFormat))
                   Stdout.log("Error: unable to set video format - program aborted");
                   System.exit(0);
              // setup audio data source
              MediaLocator audioMediaLocator = captureAudioDevice.getLocator();
              DataSource audioDataSource = null;
              try
                   audioDataSource = javax.media.Manager.createDataSource(audioMediaLocator);
              catch (IOException ie) { Stdout.logAndAbortException(ie); }
              catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
              if (! DeviceInfo.setFormat(audioDataSource, captureAudioFormat))
                   Stdout.log("Error: unable to set audio format - program aborted");
                   System.exit(0);
              // merge the two data sources
              DataSource mixedDataSource = null;
              try
                   DataSource dArray[] = new DataSource[2];
                   dArray[0] = videoDataSource;
                   dArray[1] = audioDataSource;
                   mixedDataSource = javax.media.Manager.createMergingDataSource(dArray);
              catch (IncompatibleSourceException ise) { Stdout.logAndAbortException(ise); }
              // create a new processor
              // setup output file format  ->> msvideo
              FileTypeDescriptor outputType = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
              // setup output video and audio data format
              Format outputFormat[] = new Format[2];
              outputFormat[0] = new VideoFormat(VideoFormat.INDEO50);
              outputFormat[1] = new AudioFormat(AudioFormat.GSM_MS /* LINEAR */);
              // create processor
              ProcessorModel processorModel = new ProcessorModel(mixedDataSource, outputFormat, outputType);
              Processor processor = null;
              try
                   processor = Manager.createRealizedProcessor(processorModel);
              catch (IOException e) { Stdout.logAndAbortException(e); }
              catch (NoProcessorException e) { Stdout.logAndAbortException(e); }
              catch (CannotRealizeException e) { Stdout.logAndAbortException(e); }
              // get the output of the processor
              DataSource source = processor.getDataOutput();
              // create a File protocol MediaLocator with the location
              // of the file to which bits are to be written
              MediaLocator dest = new MediaLocator("file:testcam.avi");
              // create a datasink to do the file
              DataSink dataSink = null;
              MyDataSinkListener dataSinkListener = null;
              try
                   dataSink = Manager.createDataSink(source, dest);
                   dataSinkListener = new MyDataSinkListener();
                   dataSink.addDataSinkListener(dataSinkListener);
                   dataSink.open();
              catch (IOException e) { Stdout.logAndAbortException(e); }
              catch (NoDataSinkException e) { Stdout.logAndAbortException(e); }
              catch (SecurityException e) { Stdout.logAndAbortException(e); }
              // now start the datasink and processor
              try
                   dataSink.start();
              catch (IOException e) { Stdout.logAndAbortException(e); }
              processor.start();
              Stdout.log("starting capturing ...");
              try { Thread.currentThread().sleep(10000); } catch (InterruptedException ie) {}     // capture for 10 seconds
              Stdout.log("... capturing done");
              // stop and close the processor when done capturing...
              // close the datasink when EndOfStream event is received...
              processor.stop();
              processor.close();
              dataSinkListener.waitEndOfStream(10);
              dataSink.close();
              Stdout.log("[all done]");
    }finally search with the athour name there is an additional program u must download to detect ur cam .
    i hope that is work with u

  • Capturing image from Webcam

    Hi,
    Is there any way in which Java can be used to capture images from the webcam and save it to a predefined image file name?
    Any examples out there?
    Alternatively, I could have the application written in other languages, but still, I would need my main Java app to launch this external app.
    Thanks alot.

    Hi,
    Is there any way in which Java can be used to capture
    images from the webcam and save it to a predefined
    image file name?
    Any examples out there?
    Alternatively, I could have the application written in
    other languages, but still, I would need my main Java
    app to launch this external app.
    Thanks alot.Yes, the ExampleSave from the JavaTwain package at http://www.gnome.sk does this job :)
    If you just want to see how Java Twain works with your webcam (works with a scanner too):
    - java (1.2 or higher for Windows, 1.3 or higher for Mac OS X) has to be installed on your computer
    - a scanner or camera has to be installed on your computer
    - download the trial package from http://www.gnome.sk
    - unzipp it
    - go to the examples directory of the unzipped package
    - in Windows: doubleclick the runExampleShow.bat
    - in MacOS:
        - open the Terminal window
        - change the working directory to the examples
        - run .sh file (type ExampleShow.sh or sh ExampleShow.sh)
    This will pop up the Twain Source Selection user interface. There, all your scanners and cameras which do have a twain driver should be listed. (About 90% of scanners and cameras on the market do have a twain driver for Windows, only a few do have a twain driver for MacOS.) Select one of them. The user interface of the selected scanner (camera) will appear. Confirm the scanning (you can set the scanning parameters first). The scanned image will be displayed in a separate window. To end the application, close that window.
    Running different examples, you can test scanning with hidden UI, saving the scanned image, using ADF, ...
    If there is any problem, do not hesitate to inquire about it at the technical support, email: [email protected] . I am the member of the staff :)
    Erika Kupkova

  • Problem with capture image from wc

    hi all, i want to capture image from my webcam and play it, but it's not work
    please help me, here's code
    public class Demo extends JFrame {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              Demo demo = new Demo();
         public Demo() {
              super();
              int a=30;
              final JPanel panel = new JPanel();
              getContentPane().add(panel, BorderLayout.CENTER);
              setVisible(true);
              DataSource dataSource = null;
              PushBufferStream pbs;
              Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
              CaptureDeviceInfo deviceInfo=null;boolean VideoFormatMatch=false;
              for(int i=0;i<deviceList.size();i++) {
              // search for video device
              deviceInfo = (CaptureDeviceInfo)deviceList.elementAt(i);
              if(deviceInfo.getName().indexOf("vfw:/")<0)continue;
              VideoFormat videoFormat=new VideoFormat("YUV");
              System.out.println("Format: "+ videoFormat.toString());
              Dimension size= videoFormat.getSize();
              panel.setSize(size.width,size.height);
              MediaLocator loc = deviceInfo.getLocator();
              try {
                   dataSource = (DataSource) Manager.createDataSource(loc);
                   // dataSource=Manager.createCloneableDataSource(dataSource);
                   } catch(Exception e){}
                   Thread.yield();
                   try {
                        pbs=(PushBufferStream) dataSource.getStreams()[0];
                        ((com.sun.media.protocol.vfw.VFWSourceStream)pbs).DEBUG=true;
                        } catch(Exception e){}
                        Thread.yield();
                        try{dataSource.start();}catch(Exception e){System.out.println("Exception dataSource.start() "+e);}
                        Thread.yield();
                        try{Thread.sleep(1000);}catch(Exception e){} // to let camera settle ahead of processing
    }

    iTool wrote:
    hi all, i want to capture image from my webcam and play it, but it's not workThat's a very descriptive error message, "it's not work". Everyone on the board will certainly be able to help you out with that.
    The first error I see is that you're using the CaptureDeviceManager in an applet. If T.B.M pops in here, he can tell you why that's going to be a CF 99% of the time.
    The other error I see is that your code looks absolutely nothing like any working JMF webcam capture code I've personally ever seen.
    Lastly, the big one, even if you were somehow capturing video magically, you're not even trying to display it...so I'm not entirely sure why you expect to see anything with the code you just posted.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JVidCap.html]
    Your best bet would be starting over and using the example code from the page linked above.

  • Can I scan an image from Photoshop CS4 (or another component?)

    I'm new to Photoshop (used to Corel PhotoPaint where I have a command under "File" to "acquire" an image from an external scanner).
    Is there a way to do it in Photoshop or do I look for another app in CS4 for that purpose?
    Thanks,
    Rob

    I have a CanoScan 8800F, which I can use through Twain (PSE, CS5/32-bit) or WIA (also with CS5/64-bit). The WIA interface offers only very rudimentary functionality (eg no activation of backlight for scanning transparencies). I don’t buy the argument that I should not tie up a $1000 piece of software for $200 (or so) piece of hardware. When I scan, and particularly when I scan old off-color slides, I don’t know beforehand if I can salvage the image with post-processing or if I should adjust the scanner settings. If I scan from Photoshop, I can adjust color and tonality, and I fail to salvage the image, I can re-scan with different settings, while the slide is still in the holder.
    Some say that it is silly to a tie up a $1000 piece of software for $200 (or so) piece of hardware. What, then, do you call investing money and learning time for another piece of software if I already own Photoshop and can use it?
    The present implementation of the Twain scanning with the 8800F is suboptimal, however. For instance, if I have been scanning slides and the scanner driver is set up for color transparencies, and I then configure the scanner for scanning paper (by removing the slide holder and inserting the back plate which blocks the backlighting), my next attempt to scan aborts with an error message that the scanner is unable to scan slides, probably because the backlighting is blocked. The scanner UI, along with the tab for adjusting scanner settings, is visible in the background, but I can’t access it because of the error message. And when I acknowledge the error message, the scanner UI disappears. I must physically re-configure the scanner to scan slides, then select paper scanning (in the software) and again re-configure the scanner for scanning paper.
    Best regards,
    Antero

  • Help in Create PJC to get image from  Scanner

    Help
    I'm tring to use JTwain java library to scan an image directly to the form ,
    i got the DLL and the java files and use it to run and test the Demo program from dos
    It works , then i tried to make a PJC to use that class
    the PJC Bean Extends the VImage class With 2 properties
    a SET Property SELECT_SOURCE
    a GET Property ACQUIRE
    I'm trying to run those property's function from 2 Buttons in the form , not in the initialization
    and create a Bean Area in my Form to use that class,
    the classes compiled and made a JAR file in <DEVSUITE_HOME>/forms/java directory
    After the compilation of the PJC , deployment and add the JAR file to formsweb.cfg.
    when i'm tried to run my form
    the form give me that error "FRM-92100" before it's load.
    my Bean Code as Follow
    package net.javajeff.jtwain;
    import java.awt.Image;
    import oracle.forms.handler.IHandler;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VImage;
    public class MYVImage extends VImage
    static IHandler mHandler;
    // SET
    protected static final ID SELECT_SOURCE = ID.registerProperty("SELECT_SOURCE");
    // GET
    protected static final ID ACQUIRE = ID.registerProperty("ACQUIRE");
    public MYVImage()
    try
    jbInit();
    catch(Exception e)
    e.printStackTrace();
    public boolean setProperty(ID property, Object value) {
    if(property == SELECT_SOURCE) {
    JTwain JT =new JTwain();
    try{JT.selectSourceAsDefault();}
    catch(Exception e){}
    return true;}
    return true;
    public Object getProperty(ID property) {
    JTwain JT =new JTwain();
    if (property == ACQUIRE)
    try{
    this.setImage(JT.acquire());
    catch(Exception e){}
    } else
    return super.getProperty(property);
    return null;
    private void jbInit() throws Exception
    The Jtwain Code is working in dos ,it returns Java.awt.image from The ACQUIRE function
    i used it in the bean to set it's image
    the Twain class code
    package net.javajeff.jtwain;
    import java.awt.Image;
    * This class provides the "glue" to connect the Java side of JTWAIN to the
    * C++ side. Methods exist to initialize JTwain and interact with TWAIN.
    * @author Jeff Friesen
    public class JTwain
    * Initialize JTwain. Initialization succeeds if System.loadLibrary() is
    * able to find the jtwain library, if the jtwain library is able to find
    * TWAIN_32.DLL, and if TWAIN_32.DLL contains the DSM_Entry() function. A
    * messagebox is displayed if either TWAIN_32.DLL or DSM_Entry() can't be
    * found.
    * IMPORTANT: This method must be called before any other method. If this
    * method returns false, do NOT call any other method.
    * @return true if JTwain successfully initialized, otherwise false
    public static boolean init ()
    try
    System.loadLibrary ("jtwain");
    return true;
    catch (UnsatisfiedLinkError e)
    return false;
    * Display the default source's dialog box to let the user configure that
    * source. If the user clicks the Scan button, acquire one image from the
    * default source.
    * @return Image that describes the acquired image, otherwise null if the
    * user clicked the Cancel button on the default source's dialog box
    * @throws JTwainException if something goes wrong
    public static native Image acquire () throws JTwainException;
    * Select a source name from the source manager's dialog box. If the user
    * clicks the Ok button, the highlighted source name becomes the new
    * default source.
    * @throws JTwainException if something goes wrong
    public static native void selectSourceAsDefault () throws JTwainException;
    Please help, i need to scan an image directly to the form image item
    if there is another way somebody heeeelp

    here's a snippet of code
    -- create your type in Oracle via sqlplus
         CREATE OR REPLACE TYPE STRING_ARRAY         AS VARRAY(999) OF VARCHAR2(128);
    // in your java code
    String[] arParam = { "FOO", "BAR" };
    oracle.sql.ArrayDescriptor arDesc = ArrayDescriptor.createDescriptor(
    "<yourSchemaOwnerGoesHere>" + "." + "STRING_ARRAY",
    <yourConnectionObject> );
    ARRAY oracleArray = new ARRAY(arDesc, <yourConnectionObject>, arParam );
                                <yourPreparedOrCallableStatement>.setARRAY(1, oracleArray);
    or use registerOut if you want to get a return value

  • Capture image from usb camera::step

    hi 
    i want use labview to caputre image from my webcam 
    what are the ni drivers that required or step??
    i use la 2012
    regards
    hi ?Q>

    Duplicate. Discussions will continue over there.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • How do I acquire images from my usb webcam ?

    Hi all ,
    How do I acquire images from my usb webcam (logitech quickcam express ) ?
    I use Labview 7 .

    Pedrus wrote:
    > Hi all ,
    > How do I acquire images from my usb webcam (logitech quickcam express)?
    > I use Labview 7 .
    This seems a very popular question coming up about once every week at
    least. And there are many good answers in the developer Zone on www.ni.com
    Check out:
    Irene He's IVision Toolkit:
    http://www.hytekautomation.com/Products/IVision.html
    or
    Pete Parentes WebCam library:
    http://www.cs.unc.edu/~parente/labview/index.shtml
    The first is a rather impressive Video Manipulation library with a
    nice video capture interface to VfW too, and the second is a simple
    video capture library to access any VfW compliant device.
    Rolf K"
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • How to properly terminate SSL at Sun Proxy Server?

    Hi: Client is using Sun Proxy Server (4.0.x) as a reverse proxy to a host with Sun Application Server Enterprise Edition with Access Manager / Portal / Identity Manager deployed as J2EE apps. For access through proxy with http, it is properly seen by

  • Can't make changes in vendor master fields

    hi i am trying ot make changes in vendor master but most of fields are grayed out donno know to make them writeable and changeable can someone help me plz thanks

  • Rendering Canvas with Images - Display is flashing

    Hello everybody. I have created a Canvas within a Frame. This canvas contains many static pictures (.jpg and .png) and static texts. I also print out next to some of these images and static texts some values as strings using drawString. These values

  • Sapscripts and smart forms

    how many main  windows can be created in sapscripts and smartforms? and how mnay sub windows can be created in sapscripts and smartforms?

  • Extend material master in other plants

    Hi there, I have 5 plants, one of them (e.g. Plant P001) is the main distributor for supplying all the materials for the rest. I´m using valuation at plant level. When I create a new material, I do it initially in the main plant and I have to extend