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

Camera concepts come clear

Knowledge of specs and operations helps you choose a digital camera.

Chris Brais, Coreco Imaging, Intelligent Products Div., Billerica, MA -- Test & Measurement World, 11/1/2004

Digital cameras have pervaded many consumer and commercial applications. Because of the ease with which they can be connected to computers along with the resistance of digital signals to noise in industrial environments, these cameras have also become worthy contenders in inspection systems. Choosing a digital camera, though, requires an analysis of how they work and how to apply them.

 
Figure 1.  Area-array sensors come in many sizes to fit various imaging applications. The on-chip electronics capture an image in one exposure. Courtesy of Kodak.
Digital cameras offer two image formats: area scan and line scan. Area-scan cameras provide a 2-D sensor that acquires an image, or frame, in one exposure (Figure 1), and they are ideal for use in pick-and-place machines and PCB inspection systems. Area-scan cameras let you choose either a charged-coupled-device (CCD) sensor or a complementary metal-oxide semiconductor (CMOS) sensor. Because CCD sensors produce little internal noise, many system designers prefer them.

Depending on the digital-camera manufacturer, a CCD sensor may provide "binning," a technique that combines intensity information from several surrounding pixels into a single value. Binning in a camera with a 1024x1024-pixel CCD sensor, for example, could group pixels into 2x2-pixel arrays. Each array then acts like a single light-gathering element. This combination reduces the sensor's overall spatial resolution to 512x512 pixels, but it increases the image-acquisition rate fourfold and increases the signal-to-noise ratio of each 2x2-pixel array.

Generally, CMOS sensors don't offer the low noise performance of CCD sensors, but they provide benefits that include low cost, high-speed operation, high pixel density, and low power consumption. In addition, CMOS sensors resist "blooming," or a leakage of charge that occurs in overexposed CCD sensors. The leakage saturates surrounding pixels and often ruins portions of an image. (Blooming doesn't damage the CCD, though.)

Cameras that employ CMOS sensors also offer another advantage: They can access individual detectors and obtain only a portion of an image or a region of interest. Reducing the image data gathered at its source increases the speed at which a camera can acquire images and lets image-processing tasks take less time.

Pixels line up

 
Figure 2.  A line-scan sensor relies on the motion of an object to provide sequential lines of intensities that result in an image. Courtesy of Kodak.
Digital line-scan cameras provide a CCD sensor with a single row of light detectors (Figure 2). In most cases, an object moves past a line-scan camera, and much like a fax machine, the camera transmits image information one line at a time.

Software in a host computer combines the line-by-line information to construct a 2-D image. Line-scan cameras inspect moving PCBs, rotating cylindrical objects, and long products that might otherwise require several area-scan cameras.

The resolution available from line-scan cameras usually surpasses that offered by area-scan cameras. A 4-kpixel line-scan camera is fairly common, but a 4-kpixel-x-4-kpixel area-scan camera is not, and its cost would far exceed that of a line-scan camera with a similar pixel count.

As a rule of thumb, you should use an area-scan camera when you have a stationary object or an object that moves only slightly during inspection. Use a line-scan camera for objects that move in one dimension or for applications that require the inspection of a long product that could require multiple area-scan cameras.

Choosing a resolution

Camera resolution involves two quantities, data resolution and spatial resolution. Data resolution describes the number of bits that represent the gray-scale value from each pixel. For monochrome digital cameras, resolutions range from 8 bits (256 values) up to 16 bits (65,536 values) per pixel. Most color cameras provide "24-bit" resolution, which equates to 8-bit resolution for each sensed color—green, red, and blue.

When choosing a camera, carefully consider how many gray-scale steps you need. Machine-vision systems commonly require only 8 bits or 1 byte per pixel. (Color cameras offer similar steps for each color, from full color to black for each sensed color. And a 24-bit color camera would produce 3 bytes per pixel, 1 byte per color.) If you need a finer resolution of light intensities, look at digital cameras that offer 10- or 12-bit data. But going beyond 8 bits immediately doubles the quantity of data (2 bytes per pixel) and halves the image-transfer rate. Higher data resolutions, also called "bit depths," can increase system complexity because of the increased data processing required to handle the higher bit depths.

A camera's spatial resolution involves two related measurements: the field of view and the minimum feature dimension. Field of view specifies the overall dimension of an image, say 20x15 mm. The minimum feature dimension specifies the smallest feature—a mark or component, for example—that the software or an operator must detect in an image.

Suppose an inspection system must verify that a handler has properly loaded a tray with 24 circular components. The tray measures 400x250 mm and contains the components in a 4x6 matrix. Each component measures 25 mm in diameter. In this example, the camera must resolve the smallest feature, the component.

When a camera acquires an image of a dark tray, the components appear as light circles bounded by two edges with a "span" between them. The edges occur where the image changes from dark to light. The distance across the component (through the center) represents the span.

To select a camera with the proper resolution, first determine the needed minimum feature resolution—or the number of pixels that will adequately represent each edge and the component. In this application, you would allocate three pixels for each edge and four pixels for the span. Thus, 10 pixels (3 + 4 + 3) should define a 25-mm component, and each pixel will represent 2.5 mm. (Equipment and software vendors can help you determine the minimum feature resolution needed for a product.)

 
Figure 3.  A minimum resolution of 2.5 mm/pixel provides an image in which an operator or software can detect the presence or absence of objects
Next, determine the overall pixel dimensions needed for the field of view that will allow a camera to "see" an entire tray. The 400-mm tray dimension requires 400/2.5, or 160 pixels, and the 250-mm dimension requires 100 pixels (250/2.5). Because trays in this example may not always land in the same position, I recommend adding 10% to each dimension to account for positional variations. With this allowance, the minimum camera array the application requires comes to 176x110 pixels, and Figure 3 shows an image at that resolution. The light pixels represent the components.

Cameras with such a low resolution are not common. More than likely, you would specify a standard camera with a higher resolution, say 640x480 pixels. At that resolution, an image will provide additional information such as the component marking, as shown in Figure 4.

 
Figure 4.  A resolution of about 0.7 mm/pixel clarifies component outlines and allows identification of component markings.
In other cases, though, a 640x480-pixel camera cannot provide enough information. To resolve small SMT components on a PCB at 10 pixels per component, you might need a 4-kpixel-x-8-kpixel camera to view the entire board. Such commercial cameras, if available, will be very expensive.

So, how can you inspect each SMT component as well as the entire PCB? Several alternatives make sense:

  • divide the PCB into areas that several cameras can inspect,
  • inspect sections of the PCB with one camera and then move the camera or the PCB to cover the entire board, or
  • pass the PCB past a line-scan camera with the required pixel/mm resolution and then use software to build up an image.

In the last case, the line-scan camera must meet the dimensional-resolution along one axis (y). The host computer handles resolution along the other axis (x). The computer monitors the PCB's speed and triggers the line-scan camera to acquire the needed number of image lines per unit distance.

More pixels, slower acquisition

Resolution comes at some cost: Adding pixels can reduce image-acquisition speeds. A 200x100-pixel camera produces 20,000 bytes per frame, so at a camera-to-PC data-transmission rate of 100 Mbytes/s, the camera can acquire a maximum of 5000 frames/s. But a 640x480-pixel camera creates 307 kbytes/frame, so at the same transmission rate, the maximum image rate slows to 325 frames/s.

Many cameras, though, operate at a fixed frame rate between 30 and 60 frames/s, which equates to 33 or 16 ms, respectively, for each frame acquisition. But the high transmission rate (325 frames/s for the 640x480-pixel camera) requires only 3 ms of the frame-acquisition period. So, a host PC can use the remaining time between bursts of image data—from 30 to 13 ms—for processing tasks.

Can't you sit still?

When you evaluate digital cameras, the motion of objects undergoing inspection will enter into the decision about which camera to choose. The previous example assumed the tray of components did not move during image acquisition. If a device or product moves slowly down a production line, you need not stop the line to capture an image. A short exposure time may suffice to produce a useful image.

Generally, image acquisition should occur in less time than it takes for the object to move by one pixel. Thus, to stop the "action," you control the camera's exposure time, not the product's motion. Say an object moves 1 cm/s and a camera must provide a 1-pixel/mm resolution:

s/exposure =

s/exposure = 0.1

To properly acquire an image in this scenario, the camera cannot operate with more than a 0.1-s exposure period. Some blur still occurs because the product will move by 1 pixel, or 1 mm. Reducing exposure times proportionally decreases blur in images, but shorter exposures demand more light. If an object moves at 1 cm/s and inspection requires a resolution of 1 pixel/micron, the maximum exposure comes to 1x10–4 s. For such short exposures, you'll need strobe lights to sufficiently illuminate the object.

If an application requires a rapid sequence of images, keep in mind that some cameras cannot acquire a new image while they transmit the current image. Even if a camera can acquire an image in only 1 ms, it still may need a "dead time" of 16.6 ms to transmit the image. In this case, the camera has an upper limit of 60 frames/s. Sophisticated cameras may provide a buffer that allows for rapid acquisition of images and then a slower transmission of data.

Choosing the right camera can seem like a daunting task because manufacturers offer so many options for lenses, mounting arrangements, pixel counts, and so on. Limit your selection criteria to basic needs and remember that a camera has only one job: to acquire clear images from which operators and software can extract useful information. With your goals in mind, and the information in this article, camera manufacturers can help you narrow a spectrum of choices. T


Author Information
Chris Brais works as the applications manager and is responsible for product integration and support for the Intelligent Products Division of Coreco Imaging. He graduated with a BS from Boston College and has more than 15 years of experience in imaging, semiconductor, and test and measurement technologies. cbrais@corecoimaging.com.


Acknowledgement
Thanks go to Bill Libiec, support specialist at Dalsa (Waterloo, ON, Canada), for his contributions to this article.

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

There are no other articles written 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