Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqFindEdge2

Hi all,

 

I'm writing some code to read addresses using the OCR functions using the NI Vision assistant.

Using the NI Vision Assistant I create a script to find a Straight Edge but when I create the C code, into it, I found a call to imaqFindEdge function. The problem is that this function is obsolete so it is no more supported. Instead of it, I have to use the imaqFindEdge2 function that it uses different parameters from the old one. There is someone that could help me how to translate the parameters of imaqFindEdge into parameters for the imaqFindEdge function?

 

Thanks in advance

 

0 Kudos
Message 1 of 5
(6,659 Views)

Hi Gianni,

you can find the definition of the parameters that are used by those two functions in the NI Vision for LabWindows CVI Function Reference Help (C:\Program Files\National Instruments\Vision\Documentation\NIVisionCVI.chm).

In attachment there is a file with the description of the functions, in case you don't have that help installed.

I hope this can help.

 

Best regards,

Serena

0 Kudos
Message 2 of 5
(6,647 Views)

Hi Serena,

 

first of all I would like to thank you for the help.

 

I have installed the help on my PC so I have the parameters of the two functions. For example, It is not clear to me the usage of the two CoordinateSystem parameters into the imaqFindEdge2 function. What they are referring? Are they the angle of the ROI?  

Using the imaqFindEdge all the parameters are quite clear.

 

Thanks in advance for your help

 

Gianni

0 Kudos
Message 3 of 5
(6,645 Views)

Hi Gianni,

seraching in the help for "imaqBuildCoordinateSystem" you can find an image that illustrates what are the parameter defined in the Coordinate System.

In the Find Edge function you have two coordinate Systems because you can start from one initial coordinate system, find the edge and the set a new coordinate system relative to the edge you have found.

 

Serena  

0 Kudos
Message 4 of 5
(6,619 Views)

Was this resolved? I tried to run this on my computer and have similar issues. The issues are showing up in a different application but this discussion narrows down the issue. In my application, the IMAQ Find Edge works randomly. Sometimes I do get the Straight Edges array with data and sometimes I do not.

 

Here are some more details.

 

If you monitor the image that is displayed after going throuh the IMAQ Find Edge.vi (set the display options for search Area, Seach Lines, Edges Found and Show Result to TRUE) then the image shows that all the edges are found, but somehow the results are not populated in the Straight Edges array.

 

I am using

LV 8.6

Vision Acquisition SW 8.6

 

______________________________________________________________________

 

Want to get-on Google's first page and loads of traffic to our website? Hire a SEO Specialist from Ocean Groups[url=http://oceangroups.org/] seo pecialist [/url]

0 Kudos
Message 5 of 5
(6,487 Views)