USB SNAP + colour pattern matching ( IMAQ)

I am new to LAbView and currently  I am working on colour pattern matching with USB snap. My problem is this program keep prompt me on the IMAQ Learn Colour Pattern. I need someone to help me solve that problem.
Another question is 'Are colour pattern matching require us to save and load file before learn a template?'
I am using LabView 7.1 and I would appreciate anyone who help me. Thanks
Message Edited by Chee Hou on 09-16-2009 03:46 AM
Attachments:
Untitled.vi ‏189 KB

Hello Chee Hou,
Have you tried to run the example to do color pattern matching?
From the example, you do need to have a template picture ready when you are using the colour pattern matching.
You need to Learn Colour Pattern and then load the pattern to do color pattern matching.
Hope this helps.
James
- Meadow -
LabVIEW 7.0 - 2011, Vision, RT, FPGA
TestStand 3.0 - 4.5

Similar Messages

  • How to use Colour pattern matching with a webcam

    Hi,
    I have a web cam which I am able to use successfully in labview (i.e.. Get images)
    I have looked at the colour pattern matching examples and tried to modify them, so that I can detect a red spot, that can be seen through the webcam, but have been unsuccessful. 
    In essence I'm trying to do real time colour pattern matching
    Can anyone steer me in the right direction? Or help me out?
    Thanks 
    Solved!
    Go to Solution.

    Hi kr121,
    I'm trying to work on color myself right now.
    What have you tried so far?  What type of web camera are you using?  I'm using a Microsoft Life Camera with LV 2011 on Windows 7.
    I started here:  http://zone.ni.com/devzone/cda/epd/p/id/5030
    If you are not using an NI camera I was able to get this to work using the cmd prompt and extracting the files manually to at least run the NI-IMAQ for USB: Snap and Save Image with USB Camera and NI-IMAQ for USB: Grab and Save Image with USB Camera examples.
    The command prompt command is:
     ni_imaq_usb_installer_86.exe /x
    Don't know if this is 100% correct but it at least allowed me to capture images and avi's.
    Regards,
    -SS

  • Gige + pattern matching

     Hi all,
               I am new to Labview image processing . 
               i need to achive pattern match. from that i need to find fiducail location . but here i am facing some problems like .
               1. aquiring image is corrupted like black lines (i am using GigE camera 5MP 2/3" ) . 
               2. here i am doing pattern match by live grab method ( like continous aquring) . so that my CPU uasge is reachs nearlly  90 %
               3. my task is to find fiducail using pattern match from that i need to assign ROI for main pattern  (is it possible to snap image -> pattern match - > result) 
                i have attached my vi code and image .. 
    Attachments:
    6.png ‏75 KB
    PM_TEST.vi ‏121 KB

    Hi please learn basics and then apply over...
    1)What are the black lines in image? you didn't provide any screenshot/corrupted image.
        -Are you getting images properly NI MAX?
        -Did you allow jumbo packets ?
    2)Please understand what is grab and snap by using built-in examples provides. And your cpu usage is not because of continuous acquisition.
       -I cannot comment on the cpu usage now, but sure it's not because of gab.
       -Use producer-consumer pattern to do parallel acquisition and processing.
    3)Once you understand the difference between grab and snap, this you'll understand automatically.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Error 0xBFF60492 on IMAQ USB snap.vi RT Video not support displaying selected color depth

    Attempting to snap a picture with NI-IMAQ for USB in LabVIEW 8.0  using the following procedure.
    1)I get the first enumerated camera, 2) open a session, with returned
    string [0], 3) start a session, 4) snap a picture and 5) close
    vi.  My problem is that in step 4 with the IMAQ USB Snap.vi, I get
    the following error.
    Error -1074396014 occurred at IMAQ USB snap.vi
    The image passed is not valid.
    Possible Reasons(s):
    IMAQ Vision: (Hex 0xBFF60492) RT Video Out does not support displaying the supplied image type at the selected color depth.
    I give the snap.vi an Image in from rightclick->Create->Control
    or rightclick->Create->Constant.  The output image (on the
    Front Panel) created by rightclick->Create->Indicator.
    LabVIEW should insert the correct data structure to match the expected
    input/output, and there is nothing I can that changes he color
    depth.  The GetImageInfo.vi reports that the camera is set up for
    4 Bytes Per Pixel, with the rectangle 352x288.
    Also the error message refers to RT Video Out, but I am using USB.  This distinction is significant in NI Vision Assistant.

    Hello together,
    I wanted to use a Sanyo Xacti CG 10 video camara in LabView.
    By using the NI-IMAQ for USB Snap I get the following error: IMAQ Vision: (Hex 0xBFF60492) Ungültige Blit-Funktion des Videoausgangs.
    Is it possible, that I can not use this camera in LabView?
    Thanks a lot for your reply

  • How can I define a non-rectangular (eg. circular) ROI for pattern matching using IMAQ?

    I would like to create regions of interest that are not rectangular using IMAQ Vision Builder. Including polygons, circles, etc. I am using version 5.0.
    Thank you.

    Hello,
    The current pattern matching algorithm requires a rectangular ROI. See the IMAQ Vision Concepts manual for detailed info on how the algorithm works.
    Regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Why is IMAQ USB Snap.vi constantly giving out a 32-bit image?

    Hi.
    I'm using some USB cameras (uEye) with Direct Show. I use the IMAQ USB camera tools (with Labview 7.1, Vision 7.1.1) as in the examples. In particular I'm working in the snap mode.
    I create an U8 image (IMAQ Create) which I use as input to IMAQ USB Snap.vi and I set the camera's video mode to grayscale (Y8) using IMAQ USB PropertyPage.vi
    But, I don't get an 8-bit image out of IMAQ USB Snap.vi. The image is always converted to 32-bit RGB. In principal It works like this, but it costs me valuable time to convert the image to 8-bit at some points of the program where I need the image grayscale array.
    Cheers,
    mirola 
    Labview 5.1 - 2011

    Hi Elmar,
    Thanks for answering.
    Of course, the "not officially supported" thing is a killer argument. But the device shall work with a laptop and, as I know, the firewire cameras need an additional power supply when connected to a laptop 1394.
    The camera I use is grayscale and only works properly when I write 8-bit grayscale in its settings (e.g. using IMAQ USB PropertyPage.vi).
    As I said, everything I can set is set to 8-bit. The Snap.vi converts the input IMAQ image to 32-bit.
    But maybe you are right and it's just that NI's USB Direct Show dll is not treated with high priority (note: I use the most recent one, although I combine it with older LV and Vision versions.) Otherwise I guess I would get more answers here.
    On the other hand, if I ask the manufacturer he will probably say I should use his SDK which I don't want at this point.
    Best regards,
    mirola 
    Labview 5.1 - 2011

  • Large size variations with IMAQ Pattern matching?

    Does the pattern matching functions work for only +-5% size variations? Which means that the pattern matching is made for static situations only? (With static I mean a static camera watching e.g. a moving assemblyline)
    I have a scenario where the camera is moving in 6DOF, giving my fiducials very much slant and very large size variations.
    Is it then not possible to use the pattern matching of IMAQ?
    The "IMAQ Vision Concepts Manual" says:
    "Because pattern matching is the first step in many machine vision
    applications, it should work reliably under various conditions.
    In automated machine vision applications, the visual appearance of
    materials or components under inspection can change due to factors such
    as ori
    entation of the part, scale changes, and lighting changes. The pattern
    matching tool maintains its ability to locate the reference patterns despite
    these changes."
    -But with my experience, this is not correct in my scenario. Actually, the pattern matching tool was not able to find a match in any of my tested images. My size variations were large in these images (probably 50-200%).
    Thanks!

    Unfortunately the pattern matching algorithm NI currently uses is not a geometric (scaleable) pattern matching algorithm. The current algorithm works despite orientation, and some lighting changes, but not scale changes.

  • IMAQ USB Snap.vi time out

    I'm trying to capture an image in LabView using a veo stingray webcam.
    I'm using LabView 7.1 with Vission Assistant 7.1. I've attached my
    block diagram. When I press run LabView recognizes my camera, but I
    always get the following error.
    Error -1074396030 occured at IMAQ USB Snap.vi Time Out.
    Any suggestions would be appreciated.
    Attachments:
    labview.JPG ‏30 KB

    The QuickCam is indeed USB. The error appears when the vi is closed without using the IMAQ USB Close.vi (for instance when aborting the execution using the toolbar stop button). So, problem solved. Unfortunatelly this was not the only issue : Now my vi does not crash LV... but returns only a black image...
    For professionnal use, I have several NI frame grabbers. For teaching, I don't have a budget for 16 firewire adaptators and cameras . I'll try re-installing the software one more time.
    This is not a big problem because as I said before, the grab function is working. However, I don't like giving my students the idea that sometimes only 50 % of LabVIEW functions are working properly.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • IMAQ Pattern Match Score

    I am working on an application that uses the IMAQ Match Pattern VI.  The matches that are returned have a score assigned to them.  The help documentation for this reads:
    Score ranks the match results on a scale of 0 to 1,000, where 0 equals no match and 1,000 equals a perfect match.
    Likewise, there is a VI input called "Minimum Match Score", which is the smallest score a match can have to be considered valid. The data range for a match is between 0 and 1000. 
    Can anyone point me to a resource that might better explain how this score is derived or at least defined?  

    Hi,
    The NI Vision Concepts Manual provides ancillary information; I've linked that below. The In-Depth Discussion for both Pattern Matching and Geometric Matching may prove helpful in providing the detail you're wanting.
    Machine Vision:
    http://zone.ni.com/reference/en-XX/help/372916P-01​/TOC15.htm
    I hope you find this information helpful. Have a great day!
    - Kale

  • How do I find out how IMAQ pattern match works inside?

    I need detailed info on the internal workings of the IMAQ pattern match vis (L7.1).
    I don't need source code as such (although that would be cool). I just
    need a desription of the algortihm. The manual is not detailed enough.
    I need to be able to explain my program rigourously for a scientific
    paper so I have to find this out. Any help much appreciated..

    Hello
    If you want more information about the pattern matching algorithms, look at the IMAQ Vision Concepts Manual which can be found at the link below.
    http://digital.ni.com/manuals.nsf/websearch/49110D7DB7FD282E86256EE70014816F
    If you look at Chapter 12 this discusses the way in which the pattern matching is performed. This is probably the most detailed information we will be able to give out to you. Let me know if this isn't what you need and I'll see what I can find.
    Regards
    Hannah
    NIUK & Ireland

  • Error 1074396024 occur at imaq usb snap.vi

    hallo, ich habe labview 8.0 mit dem vision development modul und
    benutze eine logitech webcam zur bilderfassung. ich habe ein vi
    erstellt das im zeitraum von 1s ständig neue bilder macht und diese mit
    einem referenzbild vergleicht. mein problem ist das so bei ungefähr
    1000 vergleichen eines neuen bildes mit dem referenzbild der fehler
    1074396024 occur at imaq usb snap.vi auftritt und ich aber nicht weiß
    warum.  würde mich freuen wenn mir jemand helfen kann

    Please have a look at this thread which discusses similar issues in detail.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • IMAQ USB Grab.vi not collecting image, USB Snap.vi does

    I am trying to continously collect video data using a USB device.  the USB Snap.vi does great at capturing a single image, however USB Grab.vi returns a blank image.  I don't get any errors when I run the Grab.vi, just no image.  Any help would be appreciated.

    This works for me.
    Message Edited by rpursley8 on 07-13-2009 03:42 PM
    Randall Pursley
    Attachments:
    Untitled 1.vi ‏44 KB

  • Undertake Vision pattern matching with a mask

    I am trying to undertake a pattern match, with a irregular shape, and also with a masked area inside the shape, e.g. I have an object (rectangle in shape), with different colours, shapes on top of it. None of the objects break the outline shape. I want to be able to determine if the outline shape is present regardless of the objects within the border of the shape. Taking this one step further I also want to be able to do this when the outside shape is irregular. Any tips would be appreciated.

    I don't think this is possible with any of the existing IMAQ tools. It sounds like a geometric pattern matching.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How can I read a template and differentiate if it is a pattern matching template or a geometric matching template?

    Hey all,
    I would like to know how can I read a template´s information to know if it is a pattern macthing or a geometric matching template? 
    In my code, users provide templates and the algorithm must match them using pattern matching or geometric matching depending on the template.
    At the moment I am doing it by including a P or a G in the name of the file, but I would like to avoid this and read the information from the file.
    Any ideas?
    Thanks in advance,
    Esteban
    Solved!
    Go to Solution.

    Hey Esteban,
    you can use the VI "IMAQ Is Vision Info Present 2 VI" to reice the information:
    IMAQ Is Vision Info Present 2 VI - NI Vision 2011 for LabVIEW Help - National Instruments
    http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_is_vision_info_present_2/
    Take a look at the attached VI
    Stephan
    Attachments:
    Determine Pattern type.zip ‏13 KB

  • Use of edge detection in pattern matching algorithm?

    Hello all,
                    I work for a group at Texas A&M University researching two-phase flow in reactors.  We have been using IMAQ Vision and had a question regarding the use of edge detection in the pattern matching algorithm.  I had seen the webcast entitled “Algorithms that Learn: The Sum and Substance of Pattern Matching and OCR” (http://zone.ni.com/wv/app/doc/p/id/wv-705) and in the webcast it was mentioned that the pattern matching algorithm uses edge detection to, (as best I can tell), reduce the candidate list further and to perform subpixel location calculations.  However, I was wondering if this edge detection process is still performed if we do not use the subpixel location calculation (i.e. if we uncheck the “Subpixel Accuracy” check box)?  Also, if edge detection is performed in the pattern matching algorithm is it consistent with the method described in Chapter 13 of the Vison Concepts Manual (“Geometric Matching”)?  Finally, if edge detection is performed in a manner consistent with Chapter 13 of the manual, how does the geometric matching correlation number affect the correlation calculation that was performed in the previous steps?  Are they simply multiplied together?
    Many thanks!
      -Aaron

    Jeff,
    We are using Imaq Vision Builder 4, with the included pattern matching that can be accessed via the menus (i.e. we haven't created a custom VI or anything.)  We are using the software to locate bubbles during boiling experiments and want a deeper understanding of what is going on "behind the scenes" of the algorithm, as we may have to explain how it works later.  We have been able to determine most of what we need from the webcast I had previously mentioned, except for the use of edge detection in the pattern matching algorithm.
    At the scales involved in our experiments, subpixel accuracy is really not needed and therefore we do not use it.  If edge detection is used in the pattern matching algorithm only to determine location with subpixel accuracy, then we do not really need to know how it works because we do not use that calculation.  Inversely, of course, if edge detection is used during pattern matching even without enabling subpixel accuracy, then we would like to have a fairly good understanding of the process.
    I've read most of the section on geometric matching in the Vision Concepts Manual and wondered if the process described there for edge detection (or feature matching) was also used in the basic pattern matching algorithm?
    To summarize, if edge detection is not used in the basic pattern matching algorithm without subpixel accuracy, then that is all I need to know.  If edge detection is used for pattern matching even without using the subpixel accuracy calculation, then we would like to learn more about how exactly it is used in the pattern matching algorithm.
    We would really appreciate any help you could give us... we've been digging around on the NI website for a couple of weeks now trying to fit together all the pieces of the pattern matching puzzle.
    Many thanks!
        Aaron

Maybe you are looking for

  • [SOLVED] How to get NetworkManager start on background during boot?

    NetworkManager has always taken relatively long time to start during boot, presumably waiting for wlan to connect. $ systemd-analyze blame 7.682s NetworkManager.service Previously I was able to get it to start on background by removing /etc/systemd/s

  • Configure End Point for Guided Procedures

    Hello experts, I am creating a Guided Procedure that needs to retrieve data from the Backend system (ECC 6.0). The portal is installed as a JAVA plugin on the same machine (7.0). When I choose <i>Connection Defined by System Landscape Directory (SLD)

  • What do I do for this error message Msvcr80.dll Not Found?

    I posted earlier and I found the exact error message that shows up it says that Msvcr80.dll Not Found.

  • SQL experts please help for a query

    I have following table1. What query can give the result as given below, SQL experts please help on this. TABLE1 Event DATETIME in 2/JAN/2010 out 2/JAN/2010 in 13/JAN/2010 out 13/JAN/2010 in 5/JAN/2010 out 5/JAN/2010 RESULT REQUIRED FROM THE SQL QUERY

  • I suddenly can't open library files

    I suddenly can't open my library files.  I get the message that photos don't match the filter