Red color detection using a web cam

i have by hit and trial made code plz any1 chk it thats what the mistake in it.when i run it ma system stops responding =(
i have done the following things:
1)the camera is continuously looking at all the sequence of images.
2)i have coupled an imaq color learn vi with an input image of a red color made in paint and saved as JPEG image.
3)The color spectrum obtained of this red color pic is then compared with the image from the webcam in the imaq color match vi
4)if its output is true then that image is obtained on the screen.
but its not happening.help me out plz.
i am ataching ma vi also.im using lab view(8.2)
i need serious help.
Attachments:
continuous grabing.vi ‏98 KB

Hi,
Your VI will hang up surely.
1. You have wired the 'image out' from first loop as input to second loop.  Your second loop will get data only when the first loop stop executing.  The first loop will never stop because you have wired a 'True constant' with 'Continue if TRUE' condition for while loop.
I have modified it to avoid dependancy.  Change the code as per your needs.
Post back for queries.
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Attachments:
continuous grabing_modified.vi ‏91 KB

Similar Messages

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

  • How do i use my web cam, where do i go to, to get started

    Can't figure out where to go to be able to use my web cam. Its not in my devices and printers area.

    Firstly, uninstall the current version of Cyberlink Youcam and re-install it.
    To Uninstall: Click Start >> type Programs and Features in search and select it from the list >> In there, select Cyberlink Youcam and uninstall it.
    Once done, try using webcam with Skype or any other messenger you may have, or else re-install Youcam.
    If the above does not work, do a System Restore to a previous working date when the webcam worked.
    System Restore: Click Start >> type System Restore in search and select it any perform on-screen instructions to restore the notebook to a previous working date.
    If none of the above work, open Device Manager, check if you have 'HP Webcam' listed under Imaging Devices category.
    You would find the Product Number on the sticker in the battery compartment, will be similar to XT594PA#ABA.

  • How do I use my web camera to chat and take photos?

    I would like to use my web cam to live chat and post pictures and do not know how to use it properly.

    Sorry, Its not related to Mozilla Support

  • How do I use the web cam on my pc? Hp w2007 I have windows vista

    How do I use the web cam on my pc?  Hp w2007 I have windows vista

    Hp w2007 is a HP monitor without webcam ...
    Where is the webcam?
    V.
    *** Say 'Thanks' with Kudos ***

  • I downloaded ios5.1.1 to my phone, but i dont like the new software. The face detection used in the camera jut isnt for me. So, i would like to know if there was a way to undo the update and go back to ios 5.0.1. My iphone is not jailbroken or unlocked.

    i downloaded ios5.1.1 to my phone, but i dont like the new software. The face detection used in the camera jut isnt for me. So, i would like to know if there was a way to undo the update and go back to ios 5.0.1. My iphone is not jailbroken or unlocked.

    The face detection used in the camera jut isnt for me.
    Try a different camera app.  Camera Plus is a good one and there are many others.

  • HT1941 why i cannot use my web cam using yahoo messenger and face time?

    whi i cannot use my web cam using yahoo messenger and face time?

    PwmBoat,
    This made me smile, because things like this do make me smile...  I never make videos on YouCam, but I did this time, so I could test this one out.
    You did not say what webcam software you are using...
    ======================================================================
     Video and audio recording works on YouCam V3.5.1.4606
    Make sure you have turned on a working microphone in Settings:
    YouCam > Right-Side   Settings >
    Right-Side, Lower-Right, Select a working Microphone from the Drop down list
    AND
    CHECK "Capture with audio"
    OK
    You can also buy (for $38 US) YouCam 5.0 from the Cyberlink.com website and it has audio/video and all sorts of other goodies, too.  (They have 3.x as well, but why buy what HP already gives you?)
    ==========================================================================
    I hope this helps!                                 
    We work hard to help!
    Whenever you see a Helpful Post - Click the Kudos Star on the Left as Thanks!
    Did this Post solve your problem?  Mark it “Accept as Solution”!
    Note: You can find the “Accept as Solution” box on threads started by you.
    2012 Year of the Dragon!
    Kind Regards,
    Dragon-Fur

  • Can i use my web cam as a barcode reader ?

    Thats it in a nut shelll , can i use my web cam as a barcode reader .?

    Delicious Library is one the Mac Apps that will read barcodes from the isight camera.
    http://www.delicious-monster.com/
    Regards,
    Captfred

  • How to use same web cams with jmf?

    Hello, I'm doing a project with netbeans 4.1 and I need to use two webcams,the same model web cams.The problem is that jmf only detects one of this. I read that if you open two jmfStudio you can use two cams but I want do this programming in java.
    Somebody have any idea?
    Thanks for all

    Hello,
    Maybe you have already solve your problem...I think you could use something like this:
    Vector deviceListVector;
        deviceListVector = CaptureDeviceManager.getDeviceList(null);
              if (deviceListVector.size() == 0)
                   System.out.println("I can't find devices");
                   System.exit(0);
              if (deviceListVector == null)
                   System.out.println("I can't find devices");
                   System.exit(0);
              for ( int x = 0; x < deviceListVector.size(); x++)
                   CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo) deviceListVector.elementAt(x);
                   String deviceInfoText = deviceInfo.getName();
                   System.out.println(deviceInfoText);
              }In this way you can see which devices are conected. I don�t know if it will be useful. :)
    ane

  • Using a web cam with an E-MAC

    I want to buy a web cam for use on my grand kids e-mac with skype. Is it possible and what type should I buy (they have hi-speed DSL access)
    Thanks, Don

    Keep in mind that the 10.4.9 OS X update enabled USB webcams to be used with iChat. However, not any webcam will work. It has to be what's known as a "UVC" webcam, which basically stands for "USB Video Class" Basically a standard for streaming video.
    http://en.wikipedia.org/wiki/Listof_USB_video_classdevices
    There's a list of webcams that should work on your Mac. Ironically the XBox 360 Camera is one of them.
    Personally, I've used the Quickcam Fusion before and the quality as at or possibly above what the iSight offered.

  • Using a Web cam on the mini

    Hi friends! Im a owner of an Mac Mini and I was wondering if is possible to use my IPad as Web cam on the mac mini?

    Vinicius,
    There is a way you can use your iPad as a webcam. There is an application on the App Store for your iPad called Mobiola Web Camera, and you can download it here:
    http://itunes.apple.com/us/app/webcamera/id348150234?mt=8.
    You can download the companion application for your Mac Mini here:
    http://mobiola.com/downloads/web_camera/Mobiola_WebCamera_for_iPhone_Desktop.zip
    Extract the zip file, and install the .dmg image.
    Hope this helps!
    emmanueltech3

  • Nokia mobile camera use as web cam..?

    My mobile is nokia asha 210 and i want to use its camera as web cam..
    How can i do it..?
    Can anyone help..?

    There you go …

  • Olnly Red when i upload from web cam go plus

    I have a creative web cam go plus that I have purchased many moons ago and am running winXP.. I have all the latest drivers as well as the disks that came with the cam.. I have done a hard reboot of the cam that was suggested by a creative rep and now I can not get my pic. to upload to my puter from the cam itself, all I get is red pic
    There is also a issue of the cam can not load one of the disks do to a 6 bit problem...any help out there at all

    Hi, I have the same problem ! Always red image. Have you the solution ?

  • Streaming video using a web camera is choppy

    Hello,
    I have an swf program built with flex which displays video from a web camera. The problem is that the the video is being displayed a bit choppy. You can see an example at https://www.completelyonlinetestserver.com/Flex/videobox.html. Try holding a piece of paper with writing in front of the camera and you will see that the writing is very choppy.
    What can I do to make the video clearer?  Any help would be very appreciated.
    Thanks
    Armen  

    Hmmm...I dont have the drivers installed on my computer for my web cam to work, but when I compile that example do get the trace output, "You need a camera.".  So that part works.  Below is the code ported into an MXML file.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="absolute"
                    applicationComplete="CameraExample();">
         <mx:Script>
              <![CDATA[
              private var video:Video;
            public function CameraExample()
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.align      = StageAlign.TOP_LEFT;
                var camera:Camera = Camera.getCamera();
                if (camera != null)
                    camera.addEventListener(ActivityEvent.ACTIVITY, activityHandler);
                    video = new Video(camera.width * 2, camera.height * 2);
                    video.attachCamera(camera);
                    addChild(video);
                else
                    trace("You need a camera.");
            private function activityHandler(event:ActivityEvent):void {
                trace("activityHandler: " + event);
              ]]>
         </mx:Script>
    </mx:Application>

  • All of my programs that use the web cam say a camera is not detected, how can i fix this?

    Notebook dv7-6c64nr
    Windows 7
    No camera detected

    Hi,
    Please find the number given below you need to call HP Technical support and get the Webcam replaced please mention the same that Webcam is not detected & steps you have tried and they should be able to get the unit serviced for you free of cost.
    If you live in the US, contact HP Here.
    If you are in another part of the world, start Here.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

Maybe you are looking for