LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ: recognize circular and triangular pattern

I am working on a project where I am getting a pipe as input picture. The background and lightning can vary and its hard to get the same image over and over.

 

I would like to get the Y position of the triangular and circular phase on the pipe.

 

In the PNG file you see:

Figure A:        Typical source picture

Figure B-E:    Different results after filtering source picture

 

Is there some way to recognize the phases outlined in red?


I am new to pattern recognition and can't find any good examples for this task.

 

Thanks

 

0 Kudos
Message 1 of 2
(2,741 Views)

Hi,

 

Yes, it is possible to detect the geometries outlined in red. For example you could use edge detection within a Region Of Interest, or a Geomatric Matching. For more informations on the algorithms please view this KB article:

 

IMAQ Vision Algorithms

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9ouSAC&l=en-US

 

I'm also adding a KB on geometric matching:

 

Why Wouldn't the Selected Template Match with the Main Image When Using Geometric Pattern Matching?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Kx0SAE&l=en-US

 

and finally some community examples with vision and detection / matching:

 

Continuous Edge Detection Using Morphological Filters

https://forums.ni.com/t5/Example-Code/Continuous-Edge-Detection-Using-Morphological-Filters/ta-p/352...

 

Edge Detection with a USB Camera

https://forums.ni.com/t5/Student-Projects/Edge-Detection-with-a-USB-Camera/ta-p/3529424

 

Verify Wires: Vision Builder AI

https://forums.ni.com/t5/Example-Code/Verify-Wires-Vision-Builder-AI/ta-p/3508056

 

Identify "Perfection" Piece Using Geometric Pattern Matching

https://forums.ni.com/t5/Example-Code/Identify-quot-Perfection-quot-Piece-Using-Geometric-Pattern/ta...

 

Identify Multiple "Perfection" Pieces Using Geometric Edge Matching

https://forums.ni.com/t5/Example-Code/Identify-Multiple-quot-Perfection-quot-Pieces-Using-Geometric/...

 

Simple Face Detection using IMAQ

https://forums.ni.com/t5/Example-Code/Simple-Face-Detection-using-IMAQ/ta-p/3525705

 

Use Vision Assistant to Find Matched Patterns

https://forums.ni.com/t5/Archive-TKB/Use-Vision-Assistant-to-Find-Matched-Patterns/ta-p/3523169

 

Pool Playing Robot

https://forums.ni.com/t5/Student-Projects/Pool-Playing-Robot/ta-p/3528474

 

EDIT: added more examples

 

Best regards,

Robert P-F
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,583 Views)