简体   繁体   中英

Image processing LABVIEW

How do I use feature detection to measure dimensions and locate a circle/line/rectangle in an image on LABVIEW . For example, lets say I inserted an image into labview I want labview to detect if it has any shape in it!

I used lab view in high school for a robotics team and we developed a lot of real time image tracking code that did pretty much that.

What we did was create a little system that took an image checked it for pixels that were a specific Hue, Saturation, and Luminosity, than grouped them together by creating a convex hull around said pixels. We then we scored the convex hull on its linear averages and that was put up against expected results.

And once you get the convex hull you can preform some particle analysis and a few calculations later you have your dimensions.

You could use the function "IMAQ Find Circles" to locate circles. For lines and rectangles I'd probably write something on my own. Segment the image using IMAQ Threshold and let "IMAQ Particle Analysis" give you characteristics of the resulting blobs.

A sample image of what you're trying to achieve would help to understand the problem you're facing. Please upload one.

Also refer to the image processing manuals for LabVIEW. These two are pretty good and give a lot of examples on how to process images:

NI Vision for LabVIEW User Manual: http://www.ni.com/pdf/manuals/371007b.pdf

NI Vision Concepts Manual: http://www.ni.com/pdf/manuals/372916e.pdf

labview有一些找到形状的方法,您可以在视觉辅助机器视觉部分中找到所有形状,但是需要一些后处理才能使用这种算法,之后可以使用几何匹配和其他vi来找到所需的形状

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM