Color detection

Hello. I need some help here. My ar drone camera managed to detect red colour when there is red object. I tried to add on where it can detect blue colour when there is blue object. I tried so many ways but I can't get it done. I attached my program so please help me with this. Thank you.   
Attachments:
AR Drone color detection(blue).vi ‏976 KB

Hey 6hari9, 
I've done some color detection/filtering before in LabVIEW and I relied pretty heavily on the IMAQ and our other vision software. Do you happen to have any NI Vision software at your disposal?
Also, a question like this would be great in the Machine Vision boards. I'm sure the folks there have plenty of information to share 
http://forums.ni.com/t5/Machine-Vision/bd-p/200
Tim A.
National Instruments

Similar Messages

  • Searching for working example of Skin & Hair color detection via Face Model

    Hi all,
    Could anyone point me to a working example (preferably with source code available) which uses the get_SkinColor or get_HairColor functions from the HDFace functionality?
    I've been calling these functions after building a facemodel and they seem to be returning a successful HResult while at the same time changing the UINT32 passed by reference to zero, regardless of the hair color presented to the Kinect. Is there a project
    which shows the correct use of these functions publicly available?
    Thanks!

    Hi Mac0014,
    Check this out:
    My Kinect Told Me I Have Dark Olive Green Skin
    Sr. Enterprise Architect | Trainer | Consultant | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer |blog: http://dgoins.wordpress.com

  • 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

  • Detecting color on page - at page or document level

    Need: Color Digital Print Workflow - CSRs reviewing a "print ready" pdf see black only pages and price jobs assuming pages contain no color, but elements such as RGB black, Registration black, and rich CMYK blacks print as color at the printer's risk. Page level color detection would be a great option for the Preflight feature to help ensure accurate pricing by CSRs who are generally not comfortable inside of PDFs. Example of report would be similar to: Document contains 15 pgs color and 6 pages grey, detail: Color - Pg 1-5,8,12,18-21 Grey - pg 6-7,9-11,13-17 This could be a good quick reference for job estimating and planning, and locating issues before submission. Digital workflows are generally low margin and quick turn; this feature could help keep these jobs from the costly prepress cost center.

    You need to use preflight to evaluate the document. You could set up a special preflight task to do what you are asking I think. I do not remember seeing you ask a question in the forum. You need to ask there before requesting a new feature for a future edition of Acrobat.

  • How to save an AVI w/ as many FPS as possible w/o color decection interfering?

    Hi,
    I can't seem to solve this somewhat basic programming logic problem: using a CCD I want to detect a color change in real time (at any FPS rate >10 FPS) and save the video with as many frames per second as the camera can give (71 FPS or as close to it as possible).
    The camera is up to 71 FPS but my color detection takes too long to run one iteration of the while loop so I only get effectively 10-11 FPS in my AVI file. 10 FPS is acceptable for the detection response but ideally I would also save an AVI of the process at 71 FPS for historical record that can be further analyzed. I realize what I need is a way to quickly run the 'save to avi' on every available frame (71 FPS) and then in parallel sample 1 in every 7-8 frames for image detection processing (to get the 10 FPS the coding/CPU+RAM limits it to).  I can't seem to write a program that can do the two in parallel without the color detection bogging down my save to AVI or without getting some sort of camera session invalid error.
    Someone more clever and experienced please share some logic with me. My attempts with different while loops or conditional case structures just arent improving the FPS. I have attached the most basic version of my program; it achieves what I want but the FPS in this case are going to be equal in both the dection and avi.
    Thank you in advance for your time and patience, I am just a student in over my head as usual....
    -KR
    Attachments:
    Final Live Detection with save_one loop.vi ‏101 KB

    I formatted the code to fit the producer consumer loops but I am not seeing any improvement in the frame rate / frames per second. The way I set it is that every 4th loop iteration of the 'save to avi', one frame gets passed to the detection. Unfortunately I am still only getting about 12-13 FPS and it doesn't get faster as I decrease the amount of frames passed to detection.
    Because I didn't see any improvement I ran the 'save to avi file' sequence in its own VI. I found with out any color detection the resulting AVI is still only 12-13  FPS. This means the very simple program (attached) is running much too slow yet I don't see any other way of aquire images and making it into a movie; I am only using the basic IMAQ dx subVIs. Can anyone offer a solution or improvement? Is this data handling or memory related? I am on a fairly new PC...
    Thanks in advance
    -KR
    Attachments:
    Save to Avi.vi ‏58 KB

  • How to detect red frame in a series of images using web cam?

    hey i am a new use of lab view(8.2 n 8.6).kindly ca any1 help me out in red color detection in a series of frames being capture by a usb web cam.i have done the grabbing thing but dont knw what to do now.plz help me out. basically i hve to do the following things:
    1 )the camera is continuously making video
     2)the moment a red color or red frame comes across the camera the camera is programmed such that it will capture that red frame. and display that captured frame
    plz hep me out.i need serious help.
    i am attaching a vi that is grabbing the images and then xtracting the red color info n thn displyaing its intensities rows and coumn wise on a graph.here i have used a guassian surface to locate the red color.
    Solved!
    Go to Solution.
    Attachments:
    giving intensity of red color.vi ‏78 KB

    hey,i have made the code plz chk it and do rep soon as ma project sbmission date is very near =((
    i am snaping an image from the web cam then comparing it with the red colored jpg image made in paint.
    the jpg image is converted  to give input image to imaq match vi.but after the comparison it gives the same output.
    on the front pannel the snapped image is displayed,the red colored image that is converted in to its respective pixels is displayed and the image that is obtained after cheking the image in the draw fails vi...the pic converted to pixels is all the time displayed.and the pass/fail icon always denotes one pass led on..plz chk the code =((.
    also can u provide me some guide line for using thr hough transform for the red color detection in lab view..i dont have to import the matlab code..i have to purely make it using the lb view libraries.
    also one more request pl rep me regularly as i really need your golden piece of advice for ma success.
    thnx
    Attachments:
    picture to image(BY ME).vi ‏102 KB
    untitled.JPG ‏3 KB

  • How to rollback previous transaction in a series of Adapters in BPEL

    in Bpel process we integrate 3 db adapters,
    2 adapters are successfully complted,3rd adpter failed.
    inthis situation how we rollback the 3 adapter transaction with out using of compensate handling

    hey,i have made the code plz chk it and do rep soon as ma project sbmission date is very near =((
    i am snaping an image from the web cam then comparing it with the red colored jpg image made in paint.
    the jpg image is converted  to give input image to imaq match vi.but after the comparison it gives the same output.
    on the front pannel the snapped image is displayed,the red colored image that is converted in to its respective pixels is displayed and the image that is obtained after cheking the image in the draw fails vi...the pic converted to pixels is all the time displayed.and the pass/fail icon always denotes one pass led on..plz chk the code =((.
    also can u provide me some guide line for using thr hough transform for the red color detection in lab view..i dont have to import the matlab code..i have to purely make it using the lb view libraries.
    also one more request pl rep me regularly as i really need your golden piece of advice for ma success.
    thnx
    Attachments:
    picture to image(BY ME).vi ‏102 KB
    untitled.JPG ‏3 KB

  • Sending/Receiving Numerical Values Over Bluetooth

    LabVIEW 2009 STUDENT EDITION W/NXT TOOLKIT. I am a beginner when it comes to LabVIEW. I am working on a school project with the humanoid detecting colored marbles. I set 4 buttons for blue, green, red, and yellow on the front panel. These Boolean values would be compared to values from the color sensor on the Mindstorms 2.0 kit and send numeric values 2-5 to the NXT brick. The NXT brick would read the number and apply the number to a case. The humanoid would ask for the color selected on the front panel. A goal is to send the color detected to an indicator on the front panel. My immediate problem is after 7 hours of searching the internet and trying every vi in the toolkit, I cannot send or receive from the PC or NXT. I only have (1)NXT. Anyone with explicit instructions? Please?

    I am a Windows 7 laptop user. I am using an external Iomega bluetooth adapter that has worked fine for downloading programs to execute. Approximately 17 hours into this problem alone I found a download showing an orange vi that was loading from an NXT\Remote... folder. To complicate things I did a firmware update that erased NXTSHELL. With NXTSHELL reloaded and using the new vi, it is working. The problem now is the vi only sends text. I need to convert the boolean front panel button to either the number representing the color or the name of the color so that it asks the robot to detect blue/2, green/3, yellow/4, red/5. I need the reading vi on the NXT brick to send a True/False and the number or color name too. The included picture is a last ditch effort to get something working at 2:30a in the morning to build on today. I was barely awake. This is rigged to look like it does what it is supposed to do but is not what is intended, as stated above. Please correct or point me in the right direction.

  • Managing characters

    Hi everyone,
    I'm new at Story. I used Celtx and Word a lot, but I thought it would make more sens using Story since my all post-production workflow is based on Adobe software.
    I went over the help menu, the forum, and I cannot find how am I supposed to manage characters in Story. And the software itself is not really intuitive about that.
    I created Character bios. How do I link those bios to characters in my script ?
    I created also a list of characters in the Manage Lists button...  Did not see how to link it to the script, even if I clicked "Assign"... For now none of my character is speaking, I'm working on the narrative structure before to get into the dialogues.
    In the scene properties panel, I can see something called Characters, with a "Detect" button that does not detect anything for now, and I didn't understand how it is supposed to work... I'm typing in names for now, but I'm not sure that the software understands what I'm doing as usable metadatas. Well I think I'm not doing what I'm supposed to do   I saw on adobe TV that there should be color dots in the outline, telling me which character is in which scene... But even when typing name in the Properties panel, there is no color dots in the outline (which confirms that I'm not doing it properly.
    Then there is also the tags panel, which has a button called character... Once again, I don't get it, it didn't let me type names in theis section, it just says that I have this number of characters in the scene...
    Also: how can I upload pictures in the infos of the charcters to share with my co-writers...
    Well I think the big question is: how do I manage characters in this app... I usually get Adobe software pretty quick, but I'm totaly clueless on that one... Thanks in advance for helping

    Hi Rashi,
    thanks for the answer. I think those improvements are heading toward the good direction.
    For the character pictures:
    It could be nice to be able to use pictures from our internal drives, not just url. Then Story could upload it online to share with the other co-authors and reviewers. Maybe it will be available as part of a cloud service from Adobe, I don't know. For now, I need extra steps: I need to go out of Story, use other softwares to upload images somewhere and to get there url... It breaks the flow a bit in my opinion. But as I said, I think at least it is great to be able to add pictures now. linking averything to the Bios (this is moreover the place where actually you should be able to link/upload pictures) is going to be great for managing projects.
    Dots colors:
    now way to manage which color for which character for now? In my current script, the Bad Guy dirty serial killer is pink, and the demoiselle in distress is blue. Not a big deal, but our brain kind of associate more easily colors to some type of characters, and in this case it is a bit confusing.
    Dots colors:
    so the software is detecting everything on his own. No way to tell him that he is wrong? My script says: "their is a picture of Stephen and Christina in the kitchen"... Story detects their presence in the scene, but really they are not. You don't want the actors to show up on that day. Then some actors are actually in scenes where they are not detected.
    Scene properties:
    there is few sub-panels here (synopsis, note, budget,...) including characters... I tried to manually write characters here, but it did not interacted with he dots colors detection... What should be the use of this panel? What is it meant to do?
    Thanks for answering the questions, and for keeping developing this tool. I think it still misses major features to really turn it into THE pre-production software, but I don't think it is that far.
    More than "just" a writing tool, I think story could be a whole pre-production software à la Scenechronize, where art directors, DP, producers, creatives, director assistant everyone could be able to share content, pictures, links, references, spread sheets, from casting to set location...
    I'm just saying this because I can see the benefits of Stroy being able to communicate with Premiere. From writing to post-production. Great. But there is few steps in between: pre-prod and prod, and I think Story can fill the gap.
    Anyway, just a bunch of thoughts... Thanks for listening.

  • HP Color LaserJet CP1217 is not detected by PC

    Hi
    I have a HP Color LaserJet CP1217 which I am trying to connect by USB to a new computer running Windows 8.
    When I first plugged the printer in the drivers were automatically detected and downloaded, and the printer was working.
    I then moved the printer to a different PC for another printing job. Also worked fine.
    When I brought the printer back to the new computer, the printing jobs were just getting stuck in the queue with an undescriptive error message.
    I tried various combinations of restarting the PC, uninstalling drivers, re-installing drivers, updating drivers, turning printer on and off, using the HP print and scan doctor.
    Using the HP print and scan doctor I am getting a message that the printer is not connected - though the USB cable is plugged in. I have tried different USB ports and a different USB wire but still the pc will not detect the printer.
    These same cables work fine when I try the printer with another computer so it is obviously some other issue.
    As the printer is more than five years old HP will not help over the phone. They recommend we buy a new one. But this one was working a few days ago!
    Help please.

    Hi
    Yes other USB devices work (USB drive,keyboard etc).
    Initially there was an error in the printing dialogue box but just said "error" with no other details.
    Since un-installing drivers and re-installing, no printer is detected, only the printer driver. The printer is on and plugged in. When I go to devices and printers and run 'add printer' command it does a search and comes up with nothing.
    Running windows 8.1, 64 bit.

  • Hey guys, I am new to javascript and I am trying to figure out how to add two spot colors to the active document. I am trying to get it to detect weather or not the spot colors are already in the document, and if they are not, it will proceed to create th

    Here's what I have so far.
    var docRef = app.activeDocument;
    if (docRef.swatches.getByName ("CutContour") === 'undefined') {
    var spotNameCC = "CutContour";               
    var cmykColor = new CMYKColor();
    cmykColor.cyan = 0;
    cmykColor.magenta = 100;
    cmykColor.yellow = 0;
    cmykColor.black = 0;
    // Create Spot
    var spot = docRef.spots.add();
    spot.color = cmykColor;
    spot.colorType = ColorModel.SPOT;
    spot.name = spotNameCC;
    //var spotNameW = "WEED (r)";
    // Create CMYKColor
    /*var cmykColor2 = new CMYKColor();
    cmykColor2.cyan = 50;
    cmykColor2.magenta = 0;
    cmykColor2.yellow = 50;
    cmykColor2.black = 0;
    // Create Spot
    var spot2 = docRef.spots.add();
    spot2.color = cmykColor2;
    spot2.colorType = ColorModel.SPOT;
    spot2.name = spotNameW;
    Let me know what I did wrong lol I know it has to do with the detecting part. Also, if anyone knows any good websites to learn javascript I would be very thankful. I am not sure what a lot of the syntax means. Thanks!!

    Never mind I figured it out. Someone posted a similar question a few months ago on here, damn this forum is awesome wish I had known about it sooner. Sorry if I wasted anyone's time.

  • How to detect color pages in a PDF?

    I am using a C++ Acrobat plug-in do read/edit a PDF file.
    I need to get the total number of pages in the PDF as well as the page numbers of color pages.
    So far I have been able to get the total number of pages using PDDocGetNumPages() without any trouble.
    However, I cant seem to find an API that lets me know whether a particular page is color or not. Is there a way to do this?
    Thanks in advance!

    But what if there is RGB data that means black or gray (R == G == B), does that mean black or RGB?
    There is some sample code in the SDK for iterating over the content in the PDF, and then you can get the colorspace and the color of each object.
    But you really need to do some background research on colors & colorspaces to properly achieve this goal.
    From: Sachintha81 <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 8 Feb 2012 16:57:10 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How to detect color pages in a PDF?
    Re: How to detect color pages in a PDF?
    created by Sachintha81<http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4194889#4194889

  • How To Detect Color using my application

    Hi Friends,
    Iam sachin, working as a iphone mobile application developer.K coming to my question is it possible to
    detect colors using our application if yes Kindly guide me how to proceed .
    Thanks in advance ,

    you need to ask this in the developers forum - this is a formum mostly for end users not developers

  • JColorChooser: how to detect color change?

    Hi all,
    I Know how to create a JColorChooser dialog (JColorChooser.createDialog()) to which I can add actionlistener to detect a new color has been selected.
    I want know if there is a way to detect events if I integrate the JColorChooser in a Panel, for example in this way:
    JPanel panel = new Janel();
    JColorChooser colorChooser = new JColorChooser();
    panel.add(colorChooser )Thx a lot!

    Ok, a I found a way:
    JColorChooser fontColorChooser = new JColorChooser();
         fontColorChooser.getSelectionModel().addChangeListener(new ChangeListener(){
                   public void stateChanged(ChangeEvent e){
                       System.out.println(fontColorChooser.getColor().toString());
               );

  • Adb not detecting Nook Color

    I know there's another thread about this but since it didn't go anywhere...
    adb never detects my Nook Color. I had it working in Fedora 15 but switched to Arch and haven't been able to get it working.
    $ lsusb
    Bus 004 Device 007: ID 2080:0002 Barnes & Noble NOOKcolor
    $ dmesg
    [36858.396242] usb 4-4: new high speed USB device number 7 using ehci_hcd
    [36858.539784] scsi14 : usb-storage 4-4:1.0
    [36859.539248] scsi 14:0:0:0: Direct-Access     B&N      Ebook Disk       0101 PQ: 0 ANSI: 2
    [36859.539472] sd 14:0:0:0: Attached scsi generic sg5 type 0
    [36859.540895] scsi 14:0:0:1: Direct-Access     B&N      Ebook Disk       0101 PQ: 0 ANSI: 2
    [36859.540983] sd 14:0:0:1: Attached scsi generic sg6 type 0
    [36859.551005] sd 14:0:0:0: [sde] Attached SCSI removable disk
    [36859.552254] sd 14:0:0:1: [sdf] Attached SCSI removable disk
    I have installed android-sdk, android-sdk-platform-tools, and android-udev from AUR.
    I have even tried manually installing the official sdk/tools.
    I have also tried running everything as root:
    $ sudo adb start-server
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    $ sudo adb devices
    List of devices attached
    (nothing...)
    The udev rules for my device, from the android-udev AUR package are:
    #      Nook
    SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666", GROUP="adbusers"
    This matches up with the lsusb output above.
    In fact, if I add SYMLINK+="android_adb" to the udev rules and replug the device, the node is created.
    $ ls -l /dev/android_adb
    lrwxrwxrwx 1 root root 15 Sep  5 22:42 /dev/android_adb -> bus/usb/004/007
    I guess udev isn't the problem since it should still show up as root.
    Also, I do have USB debugging enabled on my device (and it notifies me when connected "USB debugging connected").
    I really don't know what else to try.
    Last edited by dewyatt (2011-09-06 02:54:02)

    On my system:
    [ 2646.189831] usb 2-2: new high speed USB device number 3 using ehci_hcd
    [ 2646.662228] usbcore: registered new interface driver uas
    [ 2646.693028] Initializing USB Mass Storage driver...
    [ 2646.693487] scsi6 : usb-storage 2-2:1.0
    [ 2646.693664] usbcore: registered new interface driver usb-storage
    [ 2646.693667] USB Mass Storage support registered.
    [ 2647.696488] scsi 6:0:0:0: Direct-Access HTC Android Phone 0100 PQ: 0 ANSI: 2
    [ 2647.696974] sd 6:0:0:0: Attached scsi generic sg2 type 0
    [ 2647.701362] scsi 6:0:0:1: Direct-Access HTC Android Phone 0100 PQ: 0 ANSI: 2
    [ 2647.701673] sd 6:0:0:1: Attached scsi generic sg3 type 0
    [ 2647.706348] scsi 6:0:0:2: CD-ROM HTC Android Phone 0100 PQ: 0 ANSI: 2
    [ 2647.713336] sd 6:0:0:0: [sdb] Attached SCSI removable disk
    [ 2647.718332] sr1: scsi3-mmc drive: 0x/0x caddy
    [ 2647.718583] sr 6:0:0:2: Attached scsi CD-ROM sr1
    [ 2647.718739] sr 6:0:0:2: Attached scsi generic sg4 type 5
    [ 2647.724351] sd 6:0:0:1: [sdc] Attached SCSI removable disk
    ewaller@odin:~ 1002 %
    But it does not load any modules

Maybe you are looking for

  • TAB functional​ity in Report Generation doesn't work.

    Inserting TABS either by putting in a string or concatenating with the TAB constant doesn't seem to work. In the HTML file created by "Example HTML Report.vi" there are supposed to be two tabs in the text but they don't seem to be there. I'm trying t

  • Prefer Bluetooth when paired and answering a call?

    I have a Plantronics Voyager 510 Bluetooth headset (http://www.plantronics.com/northamerica/enUS/products/cat1150057/cat5420035/prod5360004). When the phone rings with the headset already paired, sliding to answer the phone picks up using the built-i

  • Camera RAW 5.6 - The missing manual

    OK - so maybe this is a dumb question, but is there anywhere I can download a self-contained manual that explains how to use Camera RAW (5.6)? Perhaps there is information buried somewhere in an Adobe-produced manual, but after a number of Internet s

  • Register WSRP Portlet Producer -- Connection

    I use.Net to create a Portlet, the following error registration oracle.portlet.client.container.PortletConnectionException: oracle.webservices.model.SerializationException: oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=PARSER_E

  • Installing MAC Photoshop CS3 Extended

    I just purchased, for my older MAC runnning 10.5.8, Photoshop CS3 Extended. I received 1 DVD disk, but during the installation, the progress bar indicated I was installing 1 of 3 disks, and of course about a third of the way through I was prompted to