LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine Presence and Position of an Object. Machine Vision

Hi there,

 

First of all thanks a lot for reading this post and being able to help.

 

I have an object which is assembled by pieces.

 

I would like to determine if some pieces are assembled well.

 

For example I have this:

 

testImage.png

Orange color is the whole object.

Piece 1 is a piece that I have to determine if it is there (presence)

Screws are another pieces that I have to determine if it is there (presence).

 

So my questions are:

1- How can I determine if there pieces are there (means they are assembled)? Best option is to use pattern matching?

2- If the pieces are there, how can I determine if they are in the correct position (not rotate for example)?

 

Thank a lot.

 

0 Kudos
Message 1 of 6
(2,255 Views)

Pattern Matching can be used to find the Presence of the Piece, if shape of your Piece remains same.

To Check the position use ROI to Find the Pattern Match, If its Falls under the Specified ROI then its Positioned correct.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 6
(2,223 Views)

Thanks a lot for replying.

 

For position. I can use the roi to say to pattern Matching where to find the piece, but imagine that the piece is there but it is rotated (maybe 5 degrees) so it is positioned wrong. How can I check that? Pattern matching say me the rotation?

 

Thanks again.

0 Kudos
Message 3 of 6
(2,214 Views)

Try to explore on Angular pattern match.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 6
(2,176 Views)

Where is the Angular Pattern Match.vi? I can not find it.

 

Thanks!

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

Have a look for information on the Coordinate System.   

 

https://forums.ni.com/t5/LabVIEW/A-question-about-Set-Coordinate-System-in-NI-Vision-Assitant/td-p/3...

 

https://forums.ni.com/t5/Machine-Vision/Create-Reference-Coordinate-System/td-p/3216329

 

Have a look in the example finder as well.  

 

Best of luck with your project! 

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 6 of 6
(2,152 Views)