Imaq learn pattern 2 angle

hello,
i need advice about how the imaq learn pattern 2 computes the angle.
the problem i got is following: we use the imaq learn pattern 2 to get compare the angle between 5 pictures form a video. the first one is the reference pic (=0° angle). everything seems to work fine, but the angle changes with the size of the template and where it is cut out from.
i thought that this may be a problem with the pic. a lot of information in the picture stays the same only a little is different (just take a look at the attached pictures). can anyone please tell me how the imaq learn pattern calculates the angel, if it is the tool to go for to solve the problem, or should i try to get the angle from somewhere else?
Same picture - different size= different angle. Same picture - cut out a couple of pixels away = different ange?!?
thanx a lot
martin

Dear Sir,
I tried a match pattern 2 after the IMAQ Learn pattern 2 and could match both images (Angle 0)
Which version of LV and Vision do you use?
Do you also compute the angle via the Match Pattern 2.vi?
Regards
Ken
Attachments:
Match Pattern.vi ‏29 KB
Match.jpg ‏58 KB

Similar Messages

  • IMAQ Learn Pattern 2.vi -1074395247 error

    Hi,
    Development Environment:
    LabVIEW 2012 32-bit (12.0f3)
    Vision 2012
    Description:
    Can anyone please shed some light on what ROI Descriptors types are allowed for IMAQ Learn Pattern 2?. Are only certain ROI types allowed for this VI, or can you use any type? I am attempting to create a template image with a mask - The ROI Descriptors type is set to polygon - is this valid or possible?
    I get the -1074395247 error: "Invalid template descriptor".
    However, just by simply changing the ROI type to Rectangle (and the coordinates to suit), I do not get this error (although this does not correctly mask out the pixels I don't need)
    Thanks!
    Christopher Farmer
    Certified LabVIEW Architect
    Certified TestStand Developer
    http://wiredinsoftware.com.au
    Solved!
    Go to Solution.

    Hi Chris,
    I would consult this KnowledgeBase article which points out why the error is occurring: http://digital.ni.com/public.nsf/allkb/F05924D50AD6472B86256F320075CDBF
    Further there should be an example available for this particular VI and its usages with this directory: 
    LabVIEW\examples\Vision\2. Functions\Pattern Matching\Pattern Matching Example.llb 
    Thanks!
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • IMAQ Match Pattern

    I just cant get my program to work. If I define the structure I'm
    looking for with a ROI it works very nicely, but when I try to load an
    image to look for it just crashes with the following error code:
    -1074396160
    IMAQ Learn Pattern
    System error.
    Do anyone hava a clue what that means?
    thanx

    A couple of things to look at-
    If you are loading an image from disk and trying to use that image directly as the source for the IMAQ Match Pattern 2.vi, you will need to have the image "learned" previously, and then save it as a PNG. The PNG file type can save the extra information associated with a pattern to match.
    If you are loading an image and learning it in your program, you will need to make sure that the image to learn is 8 bit, and that all other settings for the IMAQ Learn pattern are connected.

  • IMAQ Learn Color Pattern hangs

    Running Labview 2012 SP1 and Vision Development Module 12.1.0.  IMAQ Learn Color Pattern appears to hang if you call it without defining an ROI.  See attached program - it is intended that user define an ROI then click "Define ROI" button.  If you click the button without first defining an ROI, Learn Color Pattern hangs for over a minute then returns OK.  I found a workaround for this by checking for a valid ROI before calling the VI, but it seems unusual behavior for Labview.
    Attachments:
    learn color pattern hangs.zip ‏74 KB

    Hi Bucky,
    I took a look at your program, and if I run it with highlight execution, I can see that the program is waiting on the Learn Color Pattern function as you said. However, I don't think this would be considered hanging. The front panel is still responsive, and if you add other processes to the program, they continue running while the Learn Color Pattern function is executing.
    I believe the long execution time is because when no ROI is specified, the function acts on the entire image, which takes a fair amount of time. You can confirm this by selecting a ROI that is almost the size of the entire image. The program takes a similarly long time to execute. The best way to cut down on execution time would be to select a smaller ROI. I hope this helps!
    David S.

  • Error-1074396120 Not an image, problem with IMAQ Learn multiple geometric patterns

    Error-1074396120 Not an image, problem with IMAQ Learn multiple geometric patterns
    Hi!
    I've tried to modify the example of  "multiple geometric patterns matching" , and just use two patterns, but when I run the VI this error appear and I doon't know how to solve it! , the error appears in the "IMAQ Learn multiple geometric patterns" block.
    Running on:
    - labview 32 bits
    - windows 7 64 bits
    - usb camera 2.0
    Any sugestion would be helpful..... !  Regards
    Attachments:
    template_12.png ‏150 KB
    template_11.png ‏123 KB
    vision_multiple_pattern_matching.vi ‏127 KB

    thanks all for your replies, the problem was on my template images, I had to give them information about the pattern matching, and I did it with NI Vision Template Editor, within Vision utilities, and I chose template with Feature Based. 
    Thank you again and Regards!

  • Error 1074395626 - IMAQ Learn Geometric Pattern 2

    Hi,
    I am facing this error 1074395626 - IMAQ Learn Geometric Pattern 2, in my VI. I search and did not find much information about it. 
    I also get another error 1074395628 - IMAQ Match Geometric Pattern 2, but I guess fixing the previous one could solve this?
    How can I fix the above errors?

    こんにちは。
    Match Pattern 3 を試して精度がたりないとのことですが、使用しているVI や画像を添付することはできますか。
    そして画像処理のVI は内部で複雑な処理が行われているので、いろいろなパラメータなどを設定する必要があります。
    ですので、画像処理のアルゴリズムをプログラムするときはLabVIEW ですぐさまVI を並べ始めるよりも、
    大抵 LabVIEW Vision 開発モジュールに付属しているVision Assistant というソフトから大まかなアルゴリズム(スクリプト)を作成してから、
    そのスクリプトをLabVIEW のVI に変換します。(Vision Assistant が変換してくれます)
    Vision Assistant を起動するとソリューションウィザードというサンプルがまとめられたものがありますので、
    そちらでテンプレートマッチングなどが使用されているサンプルを活用してみてください。
    そしてヘルプにテンプレートの作成方法やパラメータの設定方法などが記述されているのではないかと。

  • SAF Learned Pattern Error in RTMT

    Hi
    I am using CUCM 9.1 and configured SAF between CUCM Cluster and CMEs. All CMEs are learning the patterns and inter calls are successfully made. CUCM side, SAF forwarder is learning the patterns also advertising. But I cannot see any learned pattern in RTMT. I am receiving an Error while checking both SAF learned Patterns and SAF Forwarders. Error Message is " An Error Occured While processing". What may be the reason and how can i resolve it?
    I attach Screen shot of the Error Message.
    Thanks 

    Hello Ayodeji,
    Did you ever figure this out? My learn patterns are showing in RTMT either. Running 8.6.2 CUCM/ 15.1 IOS.
    HQ-CORP-2#sh voice saf dndb all                     
    Total no. of patterns in db/max allowed            : 4/6000
    Patterns classified under dialplans (private/global) : 4/0
    Informational/Error stats -
      Patterns w/ invalid expr detected while add    : 0
      Patterns duplicated under the same instance    : 0
      Patterns rejected overall due to max capacity  : 0
      Attempts to delete a pattern which is invalid  : 2
    Last successful DB update @  2014:10:02 00:08:28:450
       ******** Private Dialplan Partition ********
    Pattern - 85212XXX
      Primary Trunk-Route(s) ID       : 7
      Alias-Route(s) Prefix/Strip-Len : +55521555/4
    Pattern - 85112XXX
      Primary Trunk-Route(s) ID       : 8 10
      Alias-Route(s) Prefix/Strip-Len : +55511555/4
    Pattern - 85223XXX
      Primary Trunk-Route(s) ID       : 7
      Alias-Route(s) Prefix/Strip-Len : +66522555/4
    Pattern - 85123XXX
      Primary Trunk-Route(s) ID       : 8 10
      Alias-Route(s) Prefix/Strip-Len : +66512555/4
       ******** Global (E164) Dialplan Partition ********
     - none -
    HQ-CORP-2#

  • Image size after calibration and IMAQ Learn Calibration Template VI in Vision 2012

    Hi there
    I'm trying to setup a calibration for our fluoroscope camera. I got some pictures of a grid and try to implement a distortion model now.
    It works more or less fine. But there are still some problems and questions
    1. All my Images are 1000x1000 pixel. After correcting them with the calibration they change their size depending on the Method(937x928 at the moment).
    Thereby I lose some information, because some details at the border are cut off. Additionally I would have to increase the size of every image manually for the further processes. Does anyone know how i can implement that the corrected images are still 1000x1000 in size?
    2. At the moment I'm using the "IMAQ Learn Calibration Template VI" which I found in an older example. In vision 2012 this vi doesn't exist anymore? Why is this, and how could I implement it now, with using current vi's?
    Tried it with the "IMAQ Learn Camera Model" combined with the "IMAQ Calibration Target to Points - Circular Dots", a tresholding a
    nd "IMAQ Correction Learn Setup". But the result is much worse this way.
    Thanks for your help in advance.
    Stefan

    Thank you for your answer.
    I tried it with changing the border size(tried different values), but the results are still the same (still 937x928). Do I have to set the image size anywhere?
    What would be the best way to resize the image? Should I just copy it on a black 1000x1000 square?
    And do you have any suggestions how I can build the "IMAQ Learn Calibration Template" with 2012 vi's? I tried it with the code of my first post, but the results are totally different to this: Why this block doesn't exist anymore? Seems to be much easier for me

  • Does " IMAQ Match Pattern 2 " support 16-bit images?

    Hi,all
          When I used " IMAQ Match Pattern 2 " to process 16-bit images, it didn't work. I tried  the " Pattern Matching example"  and have changed the IMAQ Create's "image type" to 16bits.  
    Is there any method to solve this problem?
         Many thanks!

    Hello dazee!
    "IMAQ Find Pattern 2" only supports 8bit images! You can find this in the help.
    Kind Regards, Christian

  • Error imaq color pattern

    hi, I'm trying to do a draft color pattern recognition, but labview gives me this error, I hope you can help me, let the files, thank you very much
    Error -1074395384 occurred at IMAQ Match Color Pattern
    Possible reason(s):
    IMAQ Vision: Invalid color template image.
    Attachments:
    pastillas1.png ‏55 KB
    pastillas2.jpg ‏42 KB
    Parámetros de Búsqueda Color.vi ‏78 KB

    Hello,
    the general idea is:
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • Testing the IMAQ with pattern generator

    Hi, I'm developing a test box in which I need to send a generic,
    monochrome signal to the IMAQ. Does anyone recommend a cheap, easy
    pattern generator or alignment generator? I can't find anything in an
    IC form, if it's even available. Just trying to get some input from
    other IMAQ users, thanks.
    Derek
    [email protected]

    Hello Derek,
    I saw that the following post was not answered for some time, so I wanted to follow-up with it.
    The cheapest solution for a monochrome signal would most likely be a cheap camera (<$100), but it will not allow you to generate your own test pattern.
    National Instruments offer a Video Arb (NI-5431) that will generate video test patterns.
    - See http://sine.ni.com/apps/we/nioc.vp?cid=3223〈=US for more details.
    If you are wanting a limited set of RS-170 type test patterns, I did a quick search on Google for "RS-170 test pattern video" and the following link looked like a start:
    - http://www.computermonitor.com/checker5.htm
    Please let me know if you have any additional questions, or if you want to share a solution you already found,
    Alan
    Hagler

  • IMAQ setup pattern matching 2 loaded with errors on the target and was closed

    Hi , guys. has any of you nice people ever seen something like that ... in deployment progress?
    labview 2010
    sbRIO -9631
    Thanks in advance.
    Attachments:
    deployment progress.jpg ‏43 KB

    Hi, Oli
    thanks for your help. I re-installed the IMAQ software, it seems working.
    but i have some similar errors now, and i dont know which module i should re-install, could you tell me where the problem is, please.
    the name of which module would be great.
    thanks a lot.
    Attachments:
    0.jpg ‏55 KB
    1.jpg ‏52 KB
    2.jpg ‏52 KB

  • Error 1074395241: The template descriptor does not contain data required for rotation-invariant matching.

    Hello all,
    I am using the IMAQ Match Pattern 4 to detect the rotation angle of a template image. However, it shows the error: "Error 1074395241: The template descriptor does not contain data required for rotation-invariant matching." What is the problem exactly? How to solve this? The details are explained below.
    My project is a little bit complicated. Part of the block diagram containing the IMAQ Match Pattern 4 is shown below:
    The source image is a series of frames of images read from an AVI video (I used a for loop to process the images frame by frame). The template image is a selected region of the first frame. So it means, the user selected the object of ineterst in the first frame of the video, and in each of the following frames, we need to find the matched object of interest & determine its rotation angle. When I run the block diagram shown above, it does not have any error. However, it shows the rotation angle as zero no matter what it "really" is. Therefore, I changed the block diagram by adding the parameters, shown below:
    But in this case, when I run it, it shows the error that I have indicated in the subject line.
    If you need more details about my project to identify the problem, please let me know.
    Thanks in advance.
    Solved!
    Go to Solution.

    -Please go through pattern matching example which comes along with labview fiirst
    Go to labview Help>>Find Examples and you can search for example.
    -You have create template with angle range and what type of pattern matching you want use.
    -For this you have to use IMAQ Learn Pattern before using IMAQ Match Pattern 4
    Refer :http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_match_pattern_4/
    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

  • Extraction of ROI

    Hello friends
                 for my project I need to macth the specific ROI and extract it. Then I want to compare it with some Predefined pattern.. Now I design a code for pattern matching in labview using vision express .. Any can please help me to how to extract my matched image and comparing it also
                    advance thanks

    You need to think about how you want to compare images, and what kind of result you are expecting from a comparison.
    that depends a lot on what the application is.
    you say you have a data-base to maintain, what is the purpose of that?
    Do you need to know about the color information of the two images ? (or is a gray image sufficient ?)
    Can you live with only comparing the color information ? (is this label red or green etc. )
    Is the pattern in the image relevant, and if so, is the specimen always found at the same position (distance and traversed) and angles relative to the camera, or do you need to scale and rotate images ?
    Does the perspective change of the images from frame to frame ?
    Do you need camera ego-motion estimation?
    Can the subjects compared be partially occluded?
    I would suggest that you start by looking at the shipped examples, to see what NI engineers have proposed of solutions to well defined problems.
    -> help -->Find examples...
    for a pattern comparison, you could try using
    IMAQ Setup Learn Pattern 2 VI
    and
    IMAQ Learn Pattern 2
    to create the database of learned reference images.
    and then later, where you want to actually perform the comparison, for all learned images do:
    IMAQ Setup Match Pattern 2
    and
    IMAQ Match Pattern 3
    this will find the number of likely occurrences of a pattern seen in a learned image, within a test image.
    the result is a number of matches, each containing the location of the learned reference image.
    Engineer, M.Sc. Autonomous Systems, Automation and Control of non-linear systems
    Project Engineer @ R&D A/S
    www.rdas.dk

  • Some questions about quality of displayed video, matching scaled object, and a funny issue occurs in my VI

    Hi, 
    I am doing a pattern recognition project and come up with a VI (please find attached). There are something I am not sure and would like to ask:
    1. The VI works, but in a funny way: most of the time I have to switch the "Create Template/Search for pattern" button twice in order to get the VI works fine (there were only a few times I just need to click the button once). What is the problem here and how to fix it?
    2. I understand that IMAQ Match Pattern works with RGB images. So is there anyway I still can get RGB images pass through IMAQ Learn Pattern, IMAQ Match Pattern, whilst the 2 "Template" and resulting "Image" are still displayed in color mode.
    3. Is there anyway I can still detect the object if scaling becomes an issue (as I need to move from far distance to approach the object)? To address this issue, do I need to use IMAQ Match Geometric Pattern, which I learn from somewhere in the forum that it took a lot more time to match my result comparing with IMAQ Match Pattern?
    Thanks very much.
    Solved!
    Go to Solution.
    Attachments:
    pattern_recog.vi ‏128 KB

    Sorry about silly question 2 (RGB <--> color). Actually, in my VI all the IMAQ Extract, IMAQ Pattern Match, etc.. can only work with Grayscale (U8) images. Whenever I switch the images to RGB (U32) there will be errors of Incompatible image type (error-1074396077). As I understand, IMAQ Extract and IMAQ Pattern Match should be able to work with RGB (U32) images. Am I right?
    Attachments:
    pattern_recog_test1.vi ‏128 KB

Maybe you are looking for

  • ITunes account password and iCloud

    My partner and I have been using home sharing to access the same itunes library on my laptop. I have now enabled itunes Match and I wanted to enable my partner's laptop to access my itunes Match library now. I had a Mobile Me account which I migrated

  • Detailed font change in paragraph styles

    Hi there, I have a script to change font A to font B in all the Paragraph Styles used in a document, but is there a way of going a bit further with it?, so; Change font A "Bold" to         font B "SemiBold" Change font A "SemiBold" to         font B

  • ITunes - always says unable to connect

    Every time I go to iTunes, I can browse, but it will not allow me to purchase. I always get the message " unable to connect". I log on to it......how can I fix this??

  • Ho acquistato e scaricato Photoshop CC 2014, quando lo apro mi chiede se voglio usare la versione di prova o inserire il numero di serie, chiedo aiuto.

    Buongiorno, 2 giorni fa ho acquistato e scaricato CC2014 fotografia, quando lancio Photoshop, mi si apre l'applicazione Adobe Application Manager, faccio l'accesso con il mio account e mi chiede se voglio avviare la versione di prova oppure acquistar

  • MDM Console Problem

    Dear Gurus, We have upgraded our MDM 5.5 SP06 Server to MDM 7.1 SP03. All the applications (MDS, MDIS, MDSS) are now running on the same solarix sparc box. We are able to start and stop these applications by command sapcontrol on the server. We have