Multiple ROIs for Pattern matching

I want to define multiple regions of interest for pattern matching so that if one fails an alternative ROI might be used.The acquistion is continuous. I have a system that works with single ROI. I want to use the same with multiple ROI.

Are you looking for the following examples?
http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=B45EACE3E07356A4E034080020E74861&p_​node=DZ52500&p_source=external
http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=B45EACE3E8E356A4E034080020E74861&p_​node=DZ52505&p_source=external
Hope it helps.

Similar Messages

  • 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

  • Vision assistant steps to be followed for pattern matching

    I am acquiring color images of hands movement using web camera of laptop.
    I want to process the acquired images to use for pattern matching.
    What are the steps to be followed to achieve the above mentioned task.

    In the following we proceed to function block search pattern extracted in the previous process (the parameters as rotation angle and minimum score is inserted into SETTINGS control), extract the output of the search function to get the position values indicators that will be displayed on the front panel)
    Atom
    Certified LabVIEW Associate Developer

  • Latin 1 supplement for Pattern matching

    Hi All,
    I am trying to pattern match a string with the following pattern:
    "\\p{InLatin1Supplement}+"(want to allow only characters in Latin 1 Supplement charset)
    However I get java.util.regex.PatternSyntaxException: Unknown character family {Latin1Supplement}Please suggest what should be the proper string for the pattern.
    Thank you !!

    Hm, have your checked Blocks-3.txt, as it says in the javadocs?
    "Unicode blocks and categories are written with the \p and \P constructs as in Perl. \p{prop} matches if the input has the property prop, while \P{prop} does not match if the input has that property. Blocks are specified with the prefix In, as in InMongolian. Categories may be specified with the optional prefix Is: Both \p{L} and \p{IsL} denote the category of Unicode letters. Blocks and categories can be used both inside and outside of a character class.
    The supported blocks and categories are those of The Unicode Standard, Version 3.0. The block names are those defined in Chapter 14 and in the file Blocks-3.txt of the Unicode Character Database except that the spaces are removed; "Basic Latin", for example, becomes "BasicLatin". The category names are those defined in table 4-5 of the Standard (p. 88), both normative and informative."
    Other than that, I don't know, sorry.

  • Need to know the best method for pattern matching

    Hi,
    I need a best a way to do the pattern matching with better performance
    for the following requirement.
    i need to search for a set of records as per the following requirements.
    1. The input string will be split into tokens with space as delimiter
    so if the user enters the text 'severe head ache',the tokens formed will be
    severe
    head
    ache
    2. The terms which contain exact match of the tokens formed should be fetched from the database
    (i.e)
    i. the token should appear in the term as such and no alpha-numeric character should be appended to it but a single space or any single non alpha-numeric characer is allowed
    ii. the token may occur anywhere in the string.(like start, end, middle etc.)
    iii. the term should contain all the tokens
    For ex. the following terms will be fetched for the above input
    1. patient has severe head ache
    2. severe, head ache are present
    3. leg pain "severe" #head pain
    4. pain, severe in head, leg
    But following terms should not be fetched
    1. severe leg pain - (it does not have the token 'head')
    2. headache severe and leg pain - (head is a part of the word headache)
    3. head67 severe pain - (head is a part of the word head67)
    Thanks

    How about Oracle Text? There's even a Text dedicated on this topic here.
    C.

  • How to calibrate, create template for pattern matching and find distance between patterns.

    The question is already in topic.
    I have tried it for several time but haven't succeeded.
    My tried (http://www.zone.ee/mahb02/main.vi)
    One problem is how to to calibration with first picture only, cause other pictures don't have ruler.
    Pictures are shown in http://www.zone.ee/mahb02/
    I would aprichiate if anyone would help me.
    E.

    Hi E.
    You may want to contact that website to ask about those VIs.
    Charlie M. CLD

  • Pattern Matching for a wildcard Ip address

    I m working on a project. And in it i get problem for pattern matching.I have ipv4 ip address for ex " 127.3.0.1* ".I have to generate regular exp for pattern matching in Java.Can you guide me what can be its regular exp.
    thanks,
    preeti

    preetiGupta wrote:
    I m working on a project. And in it i get problem for pattern matching.I have ipv4 ip address for ex " 127.3.0.1* ".I have to generate regular exp for pattern matching in Java.Can you guide me what can be its regular exp.Alternatively, [try this|http://lmgtfy.com/?q=regex+for+ipv4+addresses].
    Winston

  • 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

  • How can I load pattern matching images into memory?

    I discovered this problem by accident when our network went down. I could not run my VI because the .png file used for pattern matching was on a network drive. My concern it the amount of time that is required to read a network file. Is there a way to load the file into memory when the VI is opened?

    Brian,
    Thank you for contacting National Instruments. For most pattern matching programs, the pattern file should only be read from file once and is then copy to a buffer on the local machine. If you examine your code, or an example program for pattern matching, you should see at least two IMAQ Create VI called somewhere near the front of your code. This VI basically creates a memory location and most likely will be called once for your pattern image and once for the image you are searching.
    Unless you are specifically calling a File Dialog VI where you are given a dialog box to open a file or have hard coded the file path so that it is read each iteration of your code, then your pattern file should only need to be called at the beginning of your application, th
    us causing only one file read over the network for that image. Therefore your program most likely already loads the image in memory once it is read and should not be accessing the network constantly.
    Again, I would recommend taking a look at your code to make sure you are not causing a file access every time and then you should be ready to go. Just in case you do have the network go down, I would recommend keeping a copy of the image locally and, if you are feeling ambitious, you can programmatically have your program read the file locally if the network file returns an error.
    Good luck with your application and let us know if we can be of any further assistance.
    Regards,
    Michael
    Applications Engineer
    National Instruments

  • Pattern matching in sql scripts

    Hi All,
    I am trying to run some queries for database maintainence and to find out the number of rows inserted in a table on a day. These queries would be stored in a .sql file and a scheduler will trigger these files are regular intervals.
    Amongst these queries , one query that we generally exceute in sql command line is:
    select component, count(*) from test where timestamp like '%2010-11-30%' group by component order by count(*) desc;
    This query gives me a list of components and the number of rows they inserted in 'test' table on a particular day. To fetch the data inserted on a particular day we manually give current date inside pattern matching string -> e.g where timestamp like '%2010-11-30%'
    How can I use pattern matching (as in the above query) in my sql script. How can I fetch the current date and use it in the above sql for pattern matching.
    Please help.

    Assuming your timestamp column has a proper data type like DATE or TIMESTAMP then you should compare dates with dates or timestamps with timestamps. Not timesatamp with a string.
    example
    select component, count(*) cnt
    from test
    where timestamp>= trunc(sysdate)
    and timestamp < trunc(sysdate) /* this line is only needed if you have timestamps in the future */
    group by component
    order by cnt desc;If your column is of the datatype timestamp then use SYSTIMESTAMP instead of SYSDATE.

  • RegEx, need help with pattern matching

    im going thru a list of Strings...and id like to match some input to it..but the tutorial for regex wont let me find a smaller string within a bigger one if it exists
    for example i have a String "java.sun.com" and i want to find "sun" or "java" or "com" or "jav" or ".co"
    i think the only way regex will work is if i group the entire thing into
    any ideas on how i can manipulate the string into a proper regex pattern so that itll find any of those "searches"
    thanks

    No, that is not correct. A regex can be constructed to return a match on anything you want. A single character, a newline character, a numeric character and any combination of them. There are limitless possibilities for pattern matching.
    See here:
    http://java.sun.com/j2se/1.4.1/docs/api/java/util/regex/Pattern.html
    Any of the patterns may be compiled into a regex for searching using the matcher.
    An alternative is to use the indexOf method of the string class to find what you are looking for.
    Example:
    String myString = "java.sun.com";
    String matchThis = "n.co";
    int patternFoundAtThisIndexPosition = myString.indexof(matchThis);patternFoundAtThisIndexPosition will be 7;
    or simply:
    int index = myString.indexof("sun");index will be 5;

  • I want to pattern matching with 10bit image file

    I have a 10bit camera, maker:UNIQ, type:UC-610
    I used vision builder, and acquire 10 bit image then
    try pattern matching analysis but don't run it.
    how can I do it ?

    The pattern matching algorithms don't work on anything other than 8 bit images. You will need to convert your images to 8 bit before using pattern matching.
    A word of warning: The default settings for pattern matching in Vision Builder 6.1 are quite different from the settings for VB 6.0. You can get very different results in the two versions. These settings can't be changed in VB, but can be changed in LabVIEW.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How do I set multiple pattern matching Vi's and make overlappin​g pattern matches to count as one?

    Hello! I'm a student and I'm currently making a project using pattern matching.
    My patterns are from chick foot/feet.
    I'm  created multiple pattern matching VI's to detect all the feet because I find it difficult/impossible to match all the feet with a single pattern/template.
    However, when using multiple pattern matching VI's some pattern matches detect the same foot, hence overlapping.
    So how can I make the overlaping pattern matches to be counted as one?
    Thank you in advance

    Thank you for replying Sir Zwired1.
    I'm still a newbie in using LabVIEW so pardon me if I can't understand fully
    The objective of my project is to detect all the feet through pattern matching and count the pattern matches made.
    "Keep a 2D array of counts, initialized to zero and the same size as your array of possible locations, and increment the value every time you get a match. If multiple pattern matching attempts result in a match a given location in your count array might be "3" but all you care about is if the number is greater than zero."
    I'm sorry, but how do you do this? BTW, I'm using vision assistant.

  • Pattern matching for range of numbers

    I am facing problem in using a pattern like [200-300] to match any number in the range 200 and 300 inclusive. I wrote following code:
    public class RangeTest {
         public static void main(String[] args) {
              String pat = "[100-200]";
              String input = "100";
              // incpat.replace("[", "\\[");
              // incpat.replace("]", "\\]");                    
              System.out.println("Pattern" + pat);
              Pattern pattern = Pattern.compile(pat);
              Matcher matcher = pattern.matcher(input);
              if (matcher.matches()) {
                   System.out.println("EPC Matched:" + input + " and pattern:"              +matcher.pattern());                         
    }and tested it for different values of input , it's not working. I tried even giving escape characters for "[" and "]" (commented code). Can i use pattern matching in this case.
    Please help me.
    Regards,
    Prashanth

    I am facing problem in using a pattern like[200-300] to match any number in
    the range 200 and 300 inclusive.Try this one: "(2\d\d)|(300)".
    kind regards,
    Jos
    ps. Waiting for Sabre to jump in telling me that the
    parentheses aren't needed ;-)The parentheses aren't needed Jos! :-)

  • Control core dump behavior for executables matching a pattern

    Systemd directs me to coredump.conf(5) for the gory details on configuring core dumps but even after reading that it's not clear to me if there's a way to have core dumps only generated for certain executables. Ideally, I'd like to pattern match the full path to an executable to determine whether or not a core dump should be generated.
    Can this be done? How?

    Which database version are you working with....????
    Some alternatives might work for example, xdbUriType
    begin
    DBMS_XMLSCHEMA.registerSchema(
       schemaURL  => 'http://www.myserver.com/myapp/1.0/xsd/xmlschema.xsd',
       schemaDoc  =>  xdbURIType('/home/myapp/1.0/xsd/xmlschema.xsd').getClob(),
       local      => FALSE,  -- local
       genTypes   => TRUE,   -- generate object types
       genBean    => FALSE,  -- no java beans
       genTables  => TRUE    -- generate object tables
    end;
    / or bfilename
    create or replace directory XMLDIR as '&XMLDIR/xsd'
    -- alter session SET events = '31098 trace name context forever';
    declare
      V_FILENAME  VARCHAR2(700) := 'xmlschema.xsd';
      V_XMLSCHEMA XMLTYPE := xmltype(bfilename('XMLDIR',V_FILENAME),nls_charset_id('AL32UTF8'));
    begin
      dbms_xmlschema.registerSchema
        schemaurl       => V_FILENAME,
        schemadoc       => V_XMLSCHEMA.getClobVal(),
        local           => TRUE,
        genTypes        => TRUE,
        genBean         => FALSE,
        genTables       => TRUE,
        enablehierarchy => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE,
        owner           => user
    end;
    /

Maybe you are looking for

  • How does a report execute on Server

    Hi, we are using reports 6i,j2ee application ... i create reports in RDF format files which will generate output in PDF format ... when i execute in report builder i cant see the difference of PDF output or normal report output .Then i deploy them in

  • How do I install purchased software without a disk drive?

    We recently bought Elements 12 + Premiere Elements 12 with the intention of buying a new computer. But now our new iMac doesn't have a disk drive. How do I install the software? On the site I only see options for trial versions or to buy the products

  • LIS datasorce

    Hi, I need some briefing about LIS DS...how are they delta enabled and whats the logic of setup table.when to fill and delete set up table. I filled set up table for QM with notification..it showed me 52 records posted but when i do extractor checker

  • A variable that reffers to a class.

    I want to make a class that in the constructor defines type of class, like the constructor for ArrayList, with the brackets around <Object>. How do I do this?

  • New wired keyboard, swapped key functionality?

    hi - I just replaced my keyboard for my iMac Intel Core Duo 10.6.8, 2GHz with the standard wired one. The aluminum keyboard is v 0.74, Apple made. The orignal died. I used a Dell board for a bit, and used Sys Prefs > Keyboard to swap the OPT & CMD ke