Global TMW:
Login  |  Register          Free Newsletter Subscription
Subscribe
Email
Print
Reprint
Learn RSS

Software makes machine vision easier

Good vision software must work well with external devices and applications.

Jon Titus, Editorial Director -- Test & Measurement World, 10/15/2001

What's new in software?
Setting up the hardware

A key part of any inspection system is the software you use to gather and process images. In fact, you may want to choose a software package first and then buy compatible hardware, rather than purchase a hardware system only to learn it can't run the software you need. Several software suppliers have developed machine-vision packages that find edges, make measurements, identify shapes, and locate imperfections(see, "What's new in software?" p. 18). The suppliers can tell you which frame grabbers and cameras work with their programs. They can also help you locate suppliers of accessories such as camera cables and lenses.

Of course, once you acquire the images, you need to know what to do with the information you gather. Your machine-vision project will fail if you are unable to properly use—or even gain access to—the results from an inspection. 
 

Pattern-matching tools can tell the difference between different objects that conform to models set up by a user. Modern software tools easily handle hidden areas, rotated objects, and objects of different size. Courtesy of Matrox Imaging.
1015F3ARTB.gif (44750 bytes)
Some vision tools can match colors to ranges preset by a user. Color capabilities expand the types of applications a machine-vision system can tackle. Courtesy of National Instruments.

If all you need is a display of pass/fail information, any software package will meet your needs. But most people want to use inspection data in other ways. They may need to distribute the data, use it in another local application, or initiate an external action. Thus, the machine-vision software you plan to use should supply drivers that let it quickly communicate results to other programs.

Those other programs can route the data, say dimensional values, to a corporate database or to a statistical process-control program. And the machine-vision software should provide its information in a format that makes it readily accessible to commercial programs and your own custom programs. ActiveX controls and OLE provide standardized ways to exchange information.

If you plan to use the results from your machine-vision software to perform an action, you must ensure your vendor supplies drivers for I/O devices or boards. In an ideal situation, the machine-vision software could actuate an arm on a production line to shunt failed products into scrap or rework bins. In such a case, the host computer needs a digital I/O board and signal conditioners to detect the state of sensors. The host might also need a bank of solid-state relays to control actuators.

You must check the software's specifications to ensure the supplier offers either the drivers needed to control a digital I/O board or the necessary links that will let you connect the software to control products from third parties. Suppliers may list compatible I/O boards in the software's specs.

Of course, you must also ensure the software you choose will process the images you acquire in ways that make sense for your application. These days, most machine-vision software packages provide good tools that let you program complex machine-vision tasks. So, rather than comparing packages feature for feature, you might find out how long it takes from opening the software box to getting your first test application to run.


Author Information
Jon Titus has written real-time software and designed embedded systems and computer/instrument interfaces. He worked in electronics for 10 years and spent nine years at EDN magazine prior to joining T&MW in 1993. He has a BS from WPI, an MS from RPI, and a PhD from VPI. E-mail: jontitus@tmworld.com.

 

What's new in software?

ActivVisionTools 1.3

MVTec Software, Munich, Germany

+49-89-457-6950; www.mvtec.com

You write your code using ActivVisionTools from within Microsoft's Visual Basic 6.0. The family of vision tools provides frame-grabber interfaces, reads bar codes, assigns regions of interest, and measures 3-D features. The tools can communicate using a standard serial port, and they can store data in disk files, too. The software takes advantage of the supplier's Halcon 6.0 set of tools that let developers use ActiveX controls and algorithms written in C and C++. Price: individual tools priced from $155 to $1144.

DT Vision Foundry, Version 3.0

Data Translation, Marlborough, MA

508-481-3700; www.datx.com

DT Vision Foundry 3 provides a Windows-based environment that lets novice and expert programmers alike quickly create machine-vision applications. No matter which type of programming you do—from basic prototyping to writing software that uses APIs—the software provides the same algorithms for each processing task. The software provides new tools that include feature finding, feature classification, and bar-code reading functions. Price: $3495.

eVision Starting Kit

Euresys, El Cajon, CA

619-444-8300; www.euresys.com

The kit of modules includes routines that measure to subpixel dimensions, match object patterns, perform color inspections, enhance and manipulate images, recognize optical character recognition (OCR) fonts, and make blob analyses. You can use the routines with Microsoft Visual Basic, Visual C++, and Borland's C++, C++ Builder, and Delphi. The company also supplies routines that inspect BGA packages and read 2D Data Matrix codes. Price: $2250; individual modules—$750 each.

HexSight 3.1

Adept Technology, San Jose, CA

408-432-0888; www.adept.com

The latest version of HexSight provides the capability to accurately locate objects in complex images, even under adverse lighting conditions. The software can quickly locate rotated parts with an accuracy of 1/40 pixel and a rotational accuracy of 0.01°. You can develop machine-vision applications by using HexSight with Microsoft's Visual Basic or Visual C++. The HexSight software comes with a built-in calibration sequence so you can properly set up a machine-vision application. Price: $5000.

IMAQ Vision 6.0

National Instruments, Austin, TX

512-794-0100; www.ni.com

The IMAQ for Measurement Studio simplifies common machine-vision tasks such as finding multiple edges along different search areas. It will also count and measure objects, measure distances, and adjust for rotated products that come off a production line. The software extends its capabilities into the area of color so users can identify colors and match colors. Programmers can use IMAQ with Microsoft Visual Basic, Visual C++, and other ANSI C languages. Base price: $2495.

MIL 7.0

Matrox Imaging, Dorval, QC, Canada

514-685-2630; www.matrox.com

The Matrox Imaging Library 7.0 comes bundled with ActiveMIL 7.0, a collection of ActiveX controls that manage image capture, processing, analysis, display, and archiving. The latest version includes the company's geometric model-finder tool that makes it easy for applications to find one or more model patterns in any position. The model finder works even when parts of an object remain hidden from view. You can use MIL 7.0 with Microsoft Visual Basic or Visual C++. Price: $4000.

Sherlock 6.0

Coreco Imaging, Bedford, MA

781-275-2700; www.imaging.com

The Windows-based Sherlock 6.0 now comes with Smart OCR and Smart Matrix, new suites of algorithms that perform OCR and read bar codes. The software, which runs in a point-and-click environment, works with the company's PCVisionPlus and PC-RGB lines of frame-grabber boards. The Sherlock software includes hundreds of powerful image-processing, image-analysis, and machine-vision algorithms. High-level functions include pattern generation, convolution, and Fourier transforms. Price: $3600.

Visionscape AppFactory 3.0

RVSI Acuity CiMatrix, Canton, MA

781-821-0830; www.rvsi.com

The graphical user interface in AppFactory 3.0 lets users easily set up applications such as inspection, gauging, alignment, and OCR by selecting from over 50 built-in tools. Unlike other software that runs on a basic PC and a variety of frame grabbers, the AppFactory runs in conjunction with the manufacturer's Visionscape 1000 series of vision boards. By working with specific hardware, the manufacturer helps ease the use of machine vision in many applications. Base price: $5900.

Setting up the hardware

Naturally, software is just one part of the story. No matter how powerful a software package you choose for a machine-vision system, it can't help you if you haven't captured good quality images for it to process. That means you need the proper configuration of a camera and light sources so the camera can capture a clear, focused image that contains the details you want to inspect for. If you don't take the time to get good images, your system will fail to meet your specifications. Even the best machine-vision software cannot extract information from a fuzzy gray image that shows what looks like a small asteroid rather than the product you need to inspect.

So, before you can think about actually processing an image, you need lights that will properly illuminate the product, a camera that can focus on the product, a lens that lets the camera "see" the entire product, and so on. Unfortunately, one setup doesn't cover all possible product types, and arrangements of cameras and lights vary from one application to another.

If you have not set up a camera and lights before, several articles can point you in the right direction. (See, "For more information," below). Camera and light-equipment suppliers also provide application reports in print and on their Web sites. Some equipment and software suppliers will volunteer to take samples of your product and offer guidance about how to best light it and acquire a useful image. When you approach vendors, be sure to carefully describe the process or production line you want to monitor with a machine-vision system. Photographs and even a videotape of the process may help a vendor decide what equipment to recommend and what mounting to suggest for lights and a camera.

For more information

Hanks, John, "Basic Functions Ease Entry Into Machine Vision," Test & Measurement World, March 2000. p. 69.

Titus, Jon, "A Dozen Tips Help You Work with a Machine-Vision Integrator," Test & Measurement World, December 2000. p. 47.

Titus, Jon, "Lights make machine vision shine," Test & Measurement World, June 2001. p. 33.

Titus, Jon, "PCs and cameras plug and play," Test & Measurement World, March 2001. p. 35.

Email
Print
Reprint
Learn RSS

Talkback

We would love your feedback!

Post a comment

» VIEW ALL TALKBACK THREADS

Related Content

Related Content

 

By This Author

Sponsored Links



 
Advertisement
SPONSORED LINKS

More Content

  • Blogs
  • Podcasts

Blogs

  • Martin Rowe
    Rowe's and Columns

    May 28, 2008
    More on Bill and Dave
    In my January 11 posting, "Tell your Bill and Dave Stories," I asked if the HP Way still e...
    More
  • Rick Nelson
    Taking the Measure

    May 6, 2008
    LED bulbs not quite ready for consumer lighting
    Now that people are finally adopting compact fluorescent bulbs, is it time to throw them out and rep...
    More
  • » VIEW ALL BLOGS RSS

Podcasts

Advertisements





NEWSLETTERS
Click on a title below to learn more.

Test Industry News (3 Times Per Month)
Machine-Vision & Inspection (Monthly)
Communications Test (Monthly)
Design, Test & Yield (Monthly)
Automotive, Aerospace & Defense (Monthly)
Instrumentation (Monthly)
Resource Center E-Alert (Monthly)
©2008 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy
Please visit these other Reed Business sites