Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Pattern matching

Solved!
Go to solution

I used the NI Vision Assistant  to consruct  a  ROI based on Pattern Matching,and the ROI is a rotated rectangle,which like this:PM.PNG

Then I slected Tools to create Labview VI,but I do not know how  the ROI Descriptor Controls to describe a rotated rectangle,especially the detailed definition of coordinates.

1.PNG

Could you help me?  Thanks you very much。

 

 

0 Kudos
Message 1 of 7
(4,324 Views)
Solution
Accepted by topic author 862447229@qq.com

If you hover over the ROI controls you will see blue squares which lets you to expand the visible controls. When you left click those squares and expand it, hidden components of ROI descriptor will be visible. Attached is the image which shows how ROI Descriptor for rectangle is defined. You can find these kind of information right in the Labview Help. 

 

So, that 311739 means 311,739 degrees and it is only the angle component of rotated rectangle. The other components are x,y coordinates of top left point and bottom right point.

 

Match_pattern.jpg

Message 2 of 7
(4,301 Views)

Thank you for your help.And now I know how to do next,Thanks again.

0 Kudos
Message 3 of 7
(4,287 Views)

Hi Sir, 

 

For my case, how can i define the ROI for the coin only ?

Just hover over the coin, then get the rectangle, but how to get the axis, and where should I input the axis and degree ?

Thanks.

 

Brzhou_0-1688302483176.png

 

Learning from other people
0 Kudos
Message 4 of 7
(1,011 Views)

Also could we do this match for color pic ? Thanks

Learning from other people
0 Kudos
Message 5 of 7
(971 Views)
Hello, Anyone experienced this before ? Thanks.
Learning from other people
0 Kudos
Message 6 of 7
(928 Views)

Hi Sir,

 

For the coordinates, the area need to be bigger than the template or not ?

Thanks.

Brzhou_0-1689147472747.png

 

Learning from other people
0 Kudos
Message 7 of 7
(875 Views)