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

Similar Messages

  • 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

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

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

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

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

  • 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

  • BPM Collect Pattern: N:1 Mapping error in trnsformation step

    Dear All,
    I am using collect pattern Payload Dependant.
    I have one source data type and one target data type. Mapping is one to one.
    Data type contains 3 fields, Value Name and Surname.
    In Loop I have used condition when Counter is equal to value stop the loop.
    I have used Transformation step as I am using N:1 mapping.
    I have used abastrct to abastract message mapping.
    Source message is 0 to unbounded.
    In interface mapping target message occourance is 1. But in mapping program target message occourance is 0 to unbounded.
    When I am running my scenario, Third party to IP is working fine. But in IP i am getting error in transformation step.
    "com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/ns1:Collect_Receiver_MT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start"
    Can anybody will help me to solve this problem?
    Warm Regards,
    Gouri

    Have a look
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
    Also have a look at these seminars,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    Thanks

  • 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

  • I am a new learner i am getting an error while running a sample welcome pag

    hi ,
    i am able to crate a package and also a page but when i run that page i am getting the follow error messages, i am using jdeveloper version 10.1.3.3.0.3
    and also please help me how to create a business component package in this version.
    Validation error in document "WorklistPG":
    Invalid value "/oracle/apps/fnd/wf/worklist/webui/AdvancWorklistRG" for property "Extends" on component "WorklistRN". validating OA Extension XML "C:\New Folder\jdeveolper\jdevhome\myprojects\oracle\apps\fnd\framework\toolbox\samplelib\webui\StandardWidgetsPG.xml" file.
    validating OA Extension XML "C:\New Folder\jdeveolper\jdevhome\myprojects\oracle\apps\fnd\framework\toolbox\samplelib\webui\WorklistPG.xml" file.
    Validation error in document "HomePG":
    Invalid value "/oracle/apps/fnd/wf/worklist/webui/AdvancWorklistRG" for property "Extends" on component "Notifications". validating OA Extension XML "C:\New Folder\jdeveolper\jdevhome\myprojects\oracle\apps\fnd\framework\toolbox\tutorial\webui\HomePG.xml" file.
    [5:58:33 AM] Compilation complete: 0 errors, 19 warnings.
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_REGION_DATA. Tokens: REGIONCODE = /Idha/oracle/apps/po/WelcomePG/webui/WelcomePG;
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    please help me in this issue i am new to this i am getting an error saying Warning: There is no component in the package.
    thanks

    Hi,
    its a validation error. However, this forum is not about OA framework which is why I suggest you try this forum:
    OA Framework
    Frank

  • 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

Maybe you are looking for

  • Report Margins.. Not saving in .REP file?

    dear all I create a report and setup its Paper Size, margins etc after selecting desired Printer. Then I run it and take prints, it prints according to my settings. But when I compile it (control T making .rep), the output of this .rep file is not ac

  • Photoshop CS3 Extended wont boot in Tiger

    Hi, I am helping my friend to sort out some problem. Would appreciate all your expertise. At present, my friend uses a iMac and is ready to install a Mac OS X Photoshop CS3 Extended Academic Edition. However, as I load the DVD into the iMac, it just

  • Sharing an imported PDF via a link

    I uploaded/imported an AcroForm to my FormCentral (FC) account, added the submit button in FC and now I'd like to share a link to the file for users to access the form, vs me having to send them a the Submission-Enabled PDF version that I downloaded.

  • JNI helloworld

    anyone ever done that Helloworld JNI tutorial??? I got the header file created etc when it comes to doing the C++ side i get the following error... Compiling... HelloWorldImp.c J:\Proj from PC\JNI\JNI Example\HelloWorldImp.c(1) : fatal error C1083: C

  • Any Solutions to the 320gb WD harddrive and upgrading to SL?

    Really need a solution to the 320wd hdd problem. I have one mac and really dont want to take the harddrive out and do it that way. Plus in the future i dont this hassle again when i do fresh installs. For people that dont know the problem, everyone w