Creation of multiple geometric template

i have various templates and want to create a multiple geometric template file
i am unable to do it.
i have uploaded the templates
please help me with it
-$hiv@
Solved!
Go to Solution.
Attachments:
five(OK).png ‏342 KB
five3(OK).png ‏269 KB
five4(OK).png ‏1694 KB

Both geometric matching techniques rely on curves extracted from image to perform the matching. The two geometric matching techniques differ in how the curve information is used to perform the matching. The edge-based geometric matching method computes the gradient value of the edge at each point along the curves found in the image and uses the gradient value and the position of the point from the center of the template to perform the matching. The feature-based geometric matching method extracts geometric features from the curves and uses these geometric features to perform the matching.
You can find more detailed information in the NI Vision Concepts Manual here:
http://zone.ni.com/reference/en-XX/help/372916L-01/nivisionconcepts/geometric_matching_technique/
The article also explain when it is better to use one versus the other.
I couldn't test the templates yesterday, because you did not attach a match image.
I might be wrong, but another thing I noticed is that it looks like you thresholded the images prior to extracting the templates. In general, algorithms that need to extract edges from images, such as geometric matching, will work better when you provide them with the grayscale image, as opposed with a thresholded image. The contour extraction will be more accurate. Also, the algorithm does not only use contour information, but also grayscale information of the image. By thresholding the image, one removes a lot of information that the algorithm can use.
On a last note, combining templates into one is only going to help with speed. If speed is not an issue in your application, you can still learn with Edge Based matching and match all template. If there is a match, the character/number you looked for is the right one.
Another solution might be to use a reverse technique, still using Edge Based matching that seems to work better in your case. We sometimes use it to solve classification applications similar to what you are trying to do:
Instead of learning multiple templates and trying to locate them in your image, take the opposite approach: create a synthetic image that contain your templates (all rotated 1s on one line... all rotated 5s on another line etc). Then if you can locate and extract the number (using blob analysis) on the original image, you can extract that region, learn it as a template, and look for it in the synthetic image. The line you find it indicates which digit it is.
Again, this technique might work if you can extract the digit you're trying to identify from the original image. Performance wise, it is only interesting if learning the extracted digit on the fly is faster than trying to match all the separate templates (learning takes more time than matching).
It looks like you're trying to perform OCR on the image. Again, if the text is always located at the same place and you can draw a region of interest around it, you can try the OCR algorithm and define different classes that have the same label for the different rotated digits.
I tried to give you different possible approaches. Hope that was not too confusing.
Best regards,
-Christophe

Similar Messages

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

  • Block creation of multiple prod. order against single sales order in CO08

    Hi All,
    We have a requirement of blocking the creation of multiple production order against single sales order in CO08 if the production order is already created for that item.
    How to achieve this?
    SmanS

    Hi,
    you need to check if any user exit is there which will check order haeder table for the said sales order if any Prod Order exist for the same and flag custome error whicle prod order save.
    Pls revert if you need any further information.

  • Creation of Multiple Shipments with respect to Single inbound.

    Hi,
    This is regarding creation of Multiple Shipments with respect to Single inbound.
    In standard SAP, you can create Shipment cost based on Inbound number.Requirement is here for single inbound can we create multiple Shipment document.
    Can we do shipment costing for Multiple shipment in single document through VI01.
    Yours Help in this will be highly appreciated.
    Regards
    Sunami.

    dear friend,
    to process shipment cost documents you can either call up a shipment cost document in change mode or you can create lists of the shipment cost documents
    you can create the following lists:
    -Shipment cost documents for calculation
    -Shipment cost documents for settlement
    to process a single document use t-code VI01
    to create lists of shipment cost documents to be changed use t-code  VI11
    so, if you need something very special you would think about the new enhancement...
    good luck!

  • Restrict PO creation for multiple plants for same company code

    Hi Gurus,
    We want to restrict PO creation for multiple plants in the same company code. Based on Standard SAP settings for Purchasing organization assignment with multiple Plant and multiple Plant assignment with single company code, this is happening. Is there a way that we can restrict by doing some customization change.
    Any thoughts or ideas will be highly appreciating.
    Thanks and Best regards,
    Karun Kumar

    Hi,
    Said functionality is not available in SAP standard.
    To avoid the same ,i can suggest implement release strategy for PO,and then higher authority / commercial team can check created PO,if multiple plants available in single po then they have the option of rejection for the same.
    Or else check BADI-ME_PROCESS_PO_CUST,take the help from abapor and apply the restriction to select multiple plant in PO.
    Hope this will resolve your query,
    Thanks & Regards,
    Sandesh Sawant

  • Spatial Query with multiple geometries from 2 tables

    Hi,
    I'm using Oracle 8.1.7. I am trying to do a spatial query on two tables with multiple geometries. There are two spatial tables. One made up of points and one made up of polygons. There are 829551 rows in the table of points and 1817795 rows in the table with polygons...
    I want to find all polygons where one of this points is within it...
    This query is pretty intensive querying two large spatial tables against each other and so I need to find the most efficient way of running this query. I've been running variations of my query for the last two week and every time it's bombed out with various errors after 12-24 hrs processing like out of memory, out of tablespace, out of processing, invalid index etc etc etc. I need to get this query run asap... Any tips would be gratefully appreciated..
    For the session running the query I've allocated 16M sort area with
    ALTER SESSION SET SORT_AREA_SIZE=16777216;
    Below is the query I'm running... How can I improve this please? BTW PARCEL_OVERLAPS contains the points and TP$_PARCEL_AREAS the polygons.
    SELECT lu.LNU_PARCEL_ID
         FROM
              seventy.PARCEL_OVERLAPS po,
              imap_topol.TP$_PARCEL_AREAS pa,
              TP$_PARCEL_CENTROID_AREA pca,
              TDCR_LAND_UNIT lu
         WHERE
              SDO_FILTER(po.geometry, pa.area,
              'querytype=WINDOW') = ’TRUE’ and
              sdo_within_distance(po.geometry,pa.area,'distance=0')='TRUE' and
              pa.delete_date is null and
              Lu.LNU_LAND_UNIT_UNIQUE_NUM = pca.CENTROID_ID and
              pa.AREA_ID = pca.AREA_ID and
              pca.DELETE_DATE IS NULL and
              pa.DELETE_DATE IS NULL;

    Albert,
    Thanks for your reply and the tips you've given. The tp$_parcel_areas table will always be bigger so I've changed the order to sdo_within_distance(pa.area,po.geometry,'distance=0')='TRUE'. The requested counts for those queries are
    12:26:29 [email protected]:SQL> select count(*)
    13:46:22 2 from seventy.PARCEL_OVERLAPS;
    COUNT(*)
    612
    13:48:12 [email protected]:SQL> select count(*)
    13:48:17 2 from imap_topol.TP$_PARCEL_AREAS pa,
    13:48:21 3 TP$_PARCEL_CENTROID_AREA pca
    13:48:21 4 where pca.DELETE_DATE IS NULL
    13:48:21 5 and pa.DELETE_DATE IS NULL
    13:48:21 6 and pa.AREA_ID = pca.AREA_ID;
    COUNT(*)
    1310665
    There was no reason for both filter and within_distance. I did try use the anyinteract but for some reason that does not return the desired results(I've added one id row as a test to make sure it returns desired results). Plus Oracle have recomended using the within distance for better performance..
    so the explan plan for
    14:38:37 [email protected]:SQL> EXPLAIN PLAN FOR
    14:38:50 2 SELECT lu.LNU_PARCEL_ID
    14:38:50 3 FROM
    14:38:50 4 seventy.PARCEL_OVERLAPS po,
    14:38:50 5 imap_topol.TP$_PARCEL_AREAS pa,
    14:38:50 6 TP$_PARCEL_CENTROID_AREA pca,
    14:38:50 7 TDCR_LAND_UNIT lu
    14:38:50 8 WHERE
    14:38:50 9 sdo_within_distance(pa.area,po.geometry,'distance=0')='TRUE' and
    14:38:50 10 pa.delete_date is null and
    14:38:50 11 Lu.LNU_LAND_UNIT_UNIQUE_NUM = pca.CENTROID_ID and
    14:38:50 12 pa.AREA_ID = pca.AREA_ID and
    14:38:50 13 pca.DELETE_DATE IS NULL and
    14:38:50 14 pa.DELETE_DATE IS NULL;
    is
    Plan Table
    | Operation | Name | Rows | Bytes| Cost | Pstart| Pstop |
    | SELECT STATEMENT | | 4G|32920G| 547M| | |
    | NESTED LOOPS | | 4G|32920G| 547M| | |
    | MERGE JOIN | | 547M| 2029G| 230124 | | |
    | SORT JOIN | | 1M| 36M| 85014 | | |
    | MERGE JOIN | | 1M| 36M| 50019 | | |
    | SORT JOIN | | 1M| 17M| 21650 | | |
    | TABLE ACCESS FULL |TP$_PARCE | 1M| 17M| 485 | | |
    | SORT JOIN | | 1M| 22M| 28369 | | |
    | TABLE ACCESS FULL |TDCR_LAND | 1M| 22M| 2127 | | |
    | SORT JOIN | | 42K| 160M| 145111 | | |
    | TABLE ACCESS FULL |TP$_PARCE | 42K| 160M| 12697 | | |
    | TABLE ACCESS FULL |PARCEL_OV | 817 | 3M| 1 | | |
    14:43:14 [email protected]:SQL> explain plan for
    14:43:23 2 SELECT pa.AREA_ID
    14:43:23 3 FROM seventy.PARCEL_OVERLAPS po,
    14:43:23 4 imap_topol.TP$_PARCEL_AREAS pa
    14:43:23 5 WHERE SDO_RELATE(po.geometry, pa.area,'mask=ANTINTERACT querytype=WINDOW') = 'TRUE'
    14:43:23 6 and pa.DELETE_DATE IS NULL;
    Plan Table
    | Operation | Name | Rows | Bytes| Cost | Pstart| Pstop |
    | SELECT STATEMENT | | 6M| 50G| 10M| | |
    | NESTED LOOPS | | 6M| 50G| 10M| | |
    | TABLE ACCESS FULL |PARCEL_OV | 817 | 3M| 1 | | |
    | TABLE ACCESS FULL |TP$_PARCE | 850K| 3G| 12697 | | |
    14:45:03 [email protected]:SQL> explain plan for
    14:45:04 2 SELECT pa.AREA_ID
    14:45:05 3 FROM seventy.PARCEL_OVERLAPS po,
    14:45:05 4 imap_topol.TP$_PARCEL_AREAS pa
    14:45:05 5 WHERE SDO_RELATE(pa.area, po.geometry,'mask=ANTINTERACT querytype=WINDOW') = 'TRUE'
    14:45:05 6 and pa.DELETE_DATE IS NULL;
    Plan Table
    | Operation | Name | Rows | Bytes| Cost | Pstart| Pstop |
    | SELECT STATEMENT | | 6M| 50G| 863554 | | |
    | NESTED LOOPS | | 6M| 50G| 863554 | | |
    | TABLE ACCESS FULL |TP$_PARCE | 850K| 3G| 12697 | | |
    | TABLE ACCESS FULL |PARCEL_OV | 817 | 3M| 1 | | |
    --------------------------------------------------------------------------------

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Multiple web templates in one Email.

    Hi Experts,
    Is there a way by which multiple web templates can be sent over a single email.
    These web templates must be attached as PDFs to a single mail.
    Pointers will be of immense help.
    Thanks & Regards,
    Rahul R Nair
    I am thinking of creating an ABAP program to convert web templates to PDF and store them in an AL11 directory. Then pick up these files while sending a mail via function module.
    Can this be possible? Is there a function module to create a PDF file from a web template?

    Hey Rahul,
    Yes develop your ABAP program for the same.
    Can you tell me the exact scnerio.
    I have good ABAP code for the same give me your ID will send u may be its help u
    I developed that code for email via web and PDF
    i am not sure on your last issue web to pdf i think its not possible
    Regards
    Ankit

  • Re:Bursting control file with multiple sub templates

    Hi
    Can any one let me know how to create a bursting control file for multiple sub templates. I.e I have one main template which will invoke other templates. the normal bursting control file which i have created is sending
    an output with no data , but i can see an output in the concurrent program.
    Thanks in advance.

    Add it as parameter in your xml file.

  • Can I create multiple presentation templates against one content item?

    I want to create multiple presentation templates that publish the same content item in different ways.
    As far as I can tell from the publisher GUI this is not possible.
    Am I missing something?

    It may not be feasible to have two PT associated with a DT technically. But there is a workaround / solution for your requirement. thats what i meant in my prev post.
    To accomplish your requirement in a simple fashion try doing this
    1) copy the contents of all PT, DT and Content Items with all its folders in the _NEWS (portlet templates) folder to a new folder called 'PortletA' (or) make use of the News portlet template to create a portlet
    2) Now modify the DT's and PT's according to your requirement.
    3) Create a portlet using "Published Content" webservice and configure the 'Main' to your portlet.
    4) if you create and pblish new article, you can find two html's are getting published.
    If this doesn't resolve your requirement,
    Create two sets of Dt & Pt's. In the article PT, try to add the other Pt as "related items to publish", so on publishing one the other one gets published.
    Bharat Karthik
    [email protected]
    http://www.eminenttech.com/
    Edited by bharatkarthik at 09/05/2007 2:35 PM

  • Need help emergency! In my Vision Application, how to extract the specified curve settings from the geometric template which was generated by NI Template editor??

    I have a machine vision application, in which the geometric pattern match technique was used to find the target in variant images.
    as we know ,we have to make a geometric template by the NI Template editor, in the editor we can adjust the parameters of specified curve settings to get the wanted curves, and we can draw the custom area to ignore during the match. then we save the template for latter using in our vision application.
    Now my question is coming. when I program my application for the geometric match. I have to specified the Curve Parameters for the input of IMAQ Advanced Setup Learn Pattern 2, obviously, I have to set this parameter same as the one in the template, but I don't know how to extract it from the geometric template. I have tried all methods I can, for example, read custom data, IMAQ Get Geometric Template Features(this is just for the feature based? then is there a same VI for the edge based?) , even to anasys the PNG file formats!!!! But I can not read the geometric template info by myself!
    It is too illogical that we have to adjust the CURVE PARAMETERS manually again for the " IMAQ Advanced Setup Learn Pattern 2"after I have already done that in the NI Template editor !!!!
    Solved!
    Go to Solution.

    Hello,
    why do you need to specify the curve parameters again, if you have already built a template using the template editor?You do not need to use "IMAQ Advanced Setup Learn Geometric Pattern 2 VI" to find the matches (see the attached example).
    you can wire the control to the "curve parameters" to the "IMAQ Setup Match Geometric Pattern 2 VI", but the values are not used if you wire a true boolean to the "use learn curve parameters" node (it is like this by default). To prove this, i have attached a small program, with pre-created template (using the template editor) for geometric matching. The template and three test images are also included.
    Try changing the curve parameters with the "use learn curve parameters" enabled, and you will see that the matching score remains the same. Then disable the boolean control and try changing the curve parameters.
    Also take a look at the detailed help for "IMAQ Setup Match Geometric Pattern 2 VI", specifically the "Use Learn Curve Parameters".
    I hope this helps.
    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."
    Attachments:
    geometric_matching_LV2010.zip ‏3154 KB

  • Multiple wiki templates for a group?

    Hi is it possible to add multiple custom templates to a group wiki and let the wiki user choose the template as they create a new page.
    I want to have an overall theme for the group wiki, but also have pre-built pages that the user can choose, for instance on page will be for clients supplying a brief to us, so the new page will need to be formatted to show all the relevant information we require, but then other pages will need to be blank as they will be used for project discussions, I did think of making a dedicated "brief" wiki, but this would mean all our clients would see each others briefs, not a good idea.
    Any ideas?

    You may be able to implement this in JavaScript. The New Page dialog is generated by JavaScript and, by overriding it in a theme, you should be able to add a popup or checkbox to that dialog which adds content to the new page. This would require JavaScript knowledge. There's no support for this in the UI for version 1 of the wiki server.

  • Maintaining multiple query templates

    Hi,
    We created a generic query templates for SQL Query and this query template does not have any query specified inside the Query Template. The SQL query is assigned inside the xMII transaction. Instead of creating and maintaing multiple query templates for various SQL queries, we created this single query template and we use this query template by assigning the SQL query in xMII Transaction at runtime. Will there be any issues around this approach?
    Thanks,
    Sara

    This approach limits the reusability/maintainability of your queries.  If any query is to be used more than once (e.g. in a UI application or more than one BLS transaction), it makes sense to put it in its own query template.  Also, if you want to take advantage of xMII's caching infrastructure, you should also do this.
    There's also a small possibility in the future (I'm no longer with SAP, but just suggesting it is a possible outcome) that the SQL will not be dynamically assignable to avoid SQL code injection security issue(s).

  • How to print multiple Smartform Templates

    Good day Gurus,
    I have 5 Smartform templates combined in one program. During printing if 1 data for each template is available, The pop-up screen also appears 5 times for me to print the templates. My question is how can I print the 5 templates using 1 pop-up screen. What I want is after pressing the PRINT button, all of the templates will automatically print.
    Note that P_V_CONTRACTTYPE varies depending on the template to be used. That's why this procedure appear 5 times also.
    For the controls, these are my inputs.
    - control-no_dialog = ' '.
    - control-preview   = ' '.
    - w_aux-tddest      = 'LP01'.
    determine smartform function module for service request
      call function 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = p_v_contracttype
        IMPORTING
          fm_name            = lf_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          others             = 3.
       MESSAGE 'For Multiple Contracts, Only First 10 pages will be displayed.' TYPE 'I'.
      call function lf_fm_name
        EXPORTING
           output_options     = w_aux
           user_settings      = space
           control_parameters = control
          it_noutput          = it_noutput2
          var_lessee_rep      = var_lessee_rep
          var_uses            = var_uses
          var_basic_monthly   = var_basic_monthly
          var_secdep          = var_secdep
          var_lessee_add      = var_lessee_add
          var_other_charge    = var_other_charge
        TABLES
          it_lessee_rep       = it_lessee_rep
          it_noutputrent      = it_noutputrent
          it_uses             = it_uses
          it_basic_monthly    = it_basic_monthly
          it_percentage_rent  = it_percentage_rent
          it_secdep           = it_secdep
          it_noutputrentB     = it_noutputrentB
          it_lessee_add       = it_lessee_add
          it_other_charge     = it_other_charge
          it_noutput          = it_noutput2
           it_adv_rent         = it_adv_rent
        EXCEPTIONS
          formatting_error    = 1
          internal_error      = 2
          send_error          = 3
          user_canceled       = 4
          others              = 5.
    Thanks in advance.

    Use tdnewid in the control parameters to create spool number on each template.

  • Creation of Multiple Similar Assets

    Hi experts,
    I need to ask if following is the best that can be done for splitting few assets of one class to another class or is a better solution exists for it Or is there any transaction/report that can create Multiple Similar Assets?
    Currently, we have one asset class in which assets of two categories are created. We now need to split them to individual classes. For that we researched on how to transfer one category of multiple assets within a Company Code and found that there is a possibility of tranferring multiple assets through txn ABUMN.
    The problem arises that we can only transfer asset to existing ones when the case is 'Multiple Assets Transfer', while we can create new Asset when the case is 'Single Asset Transfer'. WorkAround that we found is to first create Similar Assets in new Asset Class, record it and do it through LSMW for creation of assets in bulk.
    Hope if anyone went through such situation and like to share his experience
    Thanks for reading

    Hi
    I did not have such experience earlier but sure your workaround is perfect. Goahead.  Transaction code ABUMN is mainly for such transfers and/or asset class adjustments
    Cheers
    Srinivas

Maybe you are looking for

  • How do i enlarge print Size on HP Photosmart All in one

    Print comes out small when i print

  • Problems w/ KT3 Ultra2 w/R

    I think the best thing to do it's to explain the problem from the beginning. A couple of months ago I bought my computer by components and put it togheter myself. Everything was fine, but there was a problem. Back then, my mobo was an ABIT KX7333R an

  • Error in pda load image file performanc​e in PDA

    hello i am using Windows CE with labview mobile module 8.6 in evaluation version. When trying to use "pda load imege file.vi" i get an error code 1, regardless of loading a .bmp, .gif or .jpg, of only 80kb (no diference in the color depth i use). I h

  • Photo Booth compatible webcams?

    Does anyone know of any webcams that are compatible with Photo Booth and iChat? Since I have a Mac Mini, I need something 3rd party that would work since Apple no longer sells the iSight stand-alone. Any advice?

  • Error showing when connecting to MySQL using servlet

    This is my Program. (MySQL.java) package coreservlets; import java.sql.*; public class MySQL {      public static void main (String[] args) {      String driver = "com.mysql.jdbc.Driver";      String url = "jdbc:mysql://localhost/leave_app";      Str