Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

call template editor

Solved!
Go to solution

Dear Emil!

Thank you very much again! 

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 11 of 24
(2,205 Views)

 

 

Dear Emil!

Last time you could give me very useful infos about "How to call Template Editor", now, I am interesting in how to call 
 - Classification Training
 - OCR Training

Or, could you help me, how to find out the command line arguments for calling these items?

Thank you very much

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 12 of 24
(2,109 Views)

Hi Durnek,

 

Sorry for not replying for a while, I was looking in all the available resources to find arguments to Training executables, but no success.

 

I have found this post that strengthens my belief: 

 

http://forums.ni.com/ni/board/message?board.id=200&message.id=12356&requireLogin=False

 

I have spoken with the Hungarian colleagues, and I have heard you are in contact with them, surely you will be able to find a workaround or an application architecture that will overcome the need to actually call OCR/Classification Training as a standalone application.

 

Best regards,

Emil

0 Kudos
Message 13 of 24
(2,081 Views)

Dear Emil!

Thanks for your help again!!!!!!


It is so good that if I have any question about LV , they are always be answered! 🙂

Bye - bye !

 

 

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 14 of 24
(2,076 Views)

Hi there!

 

I am interested, have you managed to reach a solution? I am facing the same problems, and I was wondering if you had figured out something on this issue.

 

Thanks in advance,

 

Maty

0 Kudos
Message 15 of 24
(1,696 Views)

e2m0i0l7 已写:

Hi Durnek,

 

As far as I understand, you want to develop an application in LV which does Pattern Matching.

For this, you need a Template which you define in Template Editor.

In delopyed applications, the templates are predefined, in which case Template Editor is a great tool, but does not need to be called with every run.

 

Still, We have encountered similar requests, and we also have a product suggestion to embedd Template Editor in LV, just like VA.

We are hoping this feature will be available in the future.

 

Until then here are some parameters that could be called 🙂

 

 /new:path -pm -gpm -gpm2 -d
launches the editor and opens the image located at the specified path.

The parameters -pm -gpm -gpm2 and -d are optional and allow to create a template of type pattern matching, geometric matching (legacy), new geometric matching and defect inspection respectively.
You can combine those parameters to create a template of the desired type. Only the specified tabs will be enabled. If you don't specify any optional parameters, all tabs are available.


/edit:path
edits the template located at the specified path.

This is the responsibility of the user to save the template manually within the interface, since the training interface is called by command line and there is no way for the calling application to know if the user OKs or cancels the editor.

One important point regarding calling the template using a command line: if the path contains a space, you need to use quotes, so that the exec knows that this is only one parameter.
For instance:

"Path to template Editor\NI Vision Template Editor.exe" "/new:D:\Images\8 bit\image.tif" -pm -gpm -d

 

Please reply if this fits your application needs 

 

Best regards,

Mircea

 


hello,

I used system execute vi-

"Path to template Editor\NI Vision Template Editor.exe" "/newSmiley Very Happy:\Images\8 bit\image.tif" -pm -gpm -d

I don't understand,Can you give me an example?

thanks!

 

0 Kudos
Message 16 of 24
(1,559 Views)

Can you give me an example?

0 Kudos
Message 17 of 24
(1,556 Views)

gbf 已写:

e2m0i0l7 已写:

Hi Durnek,

 

As far as I understand, you want to develop an application in LV which does Pattern Matching.

For this, you need a Template which you define in Template Editor.

In delopyed applications, the templates are predefined, in which case Template Editor is a great tool, but does not need to be called with every run.

 

Still, We have encountered similar requests, and we also have a product suggestion to embedd Template Editor in LV, just like VA.

We are hoping this feature will be available in the future.

 

Until then here are some parameters that could be called 🙂

 

 /new:path -pm -gpm -gpm2 -d
launches the editor and opens the image located at the specified path.

The parameters -pm -gpm -gpm2 and -d are optional and allow to create a template of type pattern matching, geometric matching (legacy), new geometric matching and defect inspection respectively.
You can combine those parameters to create a template of the desired type. Only the specified tabs will be enabled. If you don't specify any optional parameters, all tabs are available.


/edit:path
edits the template located at the specified path.

This is the responsibility of the user to save the template manually within the interface, since the training interface is called by command line and there is no way for the calling application to know if the user OKs or cancels the editor.

One important point regarding calling the template using a command line: if the path contains a space, you need to use quotes, so that the exec knows that this is only one parameter.
For instance:

"Path to template Editor\NI Vision Template Editor.exe" "/new:D:\Images\8 bit\image.tif" -pm -gpm -d

 

Please reply if this fits your application needs 

 

Best regards,

Mircea

 


hello,

I used system execute vi-

"Path to template Editor\NI Vision Template Editor.exe" "/newSmiley Very Happy:\Images\8 bit\image.tif" -pm -gpm -d

I don't understand,Can you give me an example?

thanks!

 


 

0 Kudos
Message 18 of 24
(1,547 Views)

I thought I have solved my problem. thanks!

0 Kudos
Message 19 of 24
(1,520 Views)

Can you show me an example,i have a trouble with the path

For instance:

"Path to template Editor\NI Vision Template Editor.exe" "/new:\Images\8 bit\image.tif" -pm -gpm -d

0 Kudos
Message 20 of 24
(1,484 Views)