Technique for enhanced two-dimensional imaging

Abstract: To obtain an enhanced two-dimensional image of a raised, light-reflective reflective feature (12), and its lower height surrounding background such that the contrast between them is enhanced, a line of light having a gradient profile is directed at an acute angle at the feature and its background to illuminate a strip of area thereacross. The reflectance intensity of the illuminated strip will vary in accordance with the height thereof because of the gradient intensity profile of the line of light. When the line of light is spanned across the feature and its background, the resultant image of the feature and its background, captured by spanning a linescan camera (24) thereacross, will exhibit an enhanced contrast between the feature and its background because of the greater height of the feature.

Description: Technical Field This invention relates to a method and apparatus for achieving an enhanced two-dimensional image of an object such that the object is contrasted from its surrounding background Background of the Invention Machine vision technology is now being employed in many industries for the purpose of rapidly accomplishing inspection of articles with very high accuracy. Within the electronics industry, machine vision systems are currently being employed to inspect populated circuit boards prior to soldering to detect missing and misplaced components as well as to inspect unpopulated boards prior to component placement to detect missing and misplaced solder paste deposits. In U.S. Patent 4,811,410, issued on March 7, 1989, in the names of I. Amir et al. (herein incorporated by reference), there is disclosed a circuit board inspection system comprised of a light source for illuminating a strip of area running across the surface of the board with light of substantially constant intensity. A linescan camera is provided for detecting the intensity of the light reflected from the illuminated strip. The output signal of the camera is processed by a vision system which initially serves to winnow the data so that only the data representing the image of predetermined regions of interest in the strip (where defects are more likely) is retained. The retained data is then processed to detect the presence of defects, if any, in the strip. By simultaneously spanning the circuit board with the light source and the camera, the entire surface of the board can thus be inspected for defects. While the Amir et al. vision system has proven itself capable of detecting defects such as missing and misplaced components and solder paste deposits, a lack of contrast between the features on the board (i.e., the components and/or solder paste deposits) can adversely affect the accuracy of inspection which is also the case for other conventional inspection systems. Often, the features of interest on the circuit board have a very low contrast with respect to the background and, as a consequence, the intensity of the light reflected from such features is often not appreciably greater than the light reflected from the board itself. Because the contrast between the circuit board and the features of interest is usually not very high, defect detection is difficult. Thus, there is a need for an improved two-dimensional imaging technique which advantageously enhances the boundary region between an object and its surrounding background to facilitate detection of the presence and position of the object. B. Carrihill et al. "Experiments with the Intensity Ratio Depth Sensor," Computer Vision, Graphics, and Image Processing, Academic Press, Inc., December 1985, Vol. 32, pp. 337-358 addresses the problem of improving visible contrast by adding a means for illuminating the target surface with a gradient light. Specifically, a linear wedge filter is used in combination with the light source so that a light intensity gradient is formed, such that the surface is "illuminated brightly on one side, but only half brightly on the other side". EP-A-0252547 discloses a method for locating weft threads in a fabric that improves image quality by means of "a contrast improving illumination". In one illustrated embodiment, a light source is oriented at an acute angle to the fabric. Because the weft threads have a convex surface and are oriented somewhat perpendicularly to the impinging light from the light source, the threads exhibit a strong reflectance on a portion of the convex surface facing toward the light source, and exhibit a shadow on the side of the surface facing away from the light source. According to the present invention there is provided a method as defined in claim 1 or apparatus as defined in claim 4. Briefly, in accordance with a preferred embodiment of the invention, a technique is disclosed for obtaining a two-dimensional image of a raised light-reflective topological feature (i.e., a component or a solder deposit) having a greater reflectivity than that of its surrounding, lower height background, to enhance the contrast between the feature and the background. The method is carried out by first illuminating the feature and its surrounding background with a gradient-profile light beam directed thereat at an angle. The intensity of the beam decreases laterally between the beam edges, and therefore the beam is said to have a gradient profile. By illuminating the feature with an angularly-directed gradient-profile beam, the intensity of the light reflected upward by the feature and its surrounding area will be proportional to the height of the feature or surrounding area from which such light is reflected. The image of the feature and its surrounding area illuminated by the gradient-profile beam are captured with an image-acquisition device (e.g., a linescan camera) positioned directly thereabove. The captured image is processed by a vision system which serves to determine the reflectance intensity associated with the feature and its surrounding background. If we assume that the surface reflectance is not much different from the object (otherwise good contrast will be achieved in any event), then the reflectance intensity will be proportional to the height of the feature and surrounding area and a higher reflectance intensity will be associated with the feature than its surrounding background because the feature is presumed to be at a greater height. In this way, the contrast between the feature and its surrounding area is enhanced. Likewise, if the feature is lower, the feature will look duller than its surrounding. Brief Description of the Drawing FIG. 1 is a simplified view of a substrate, showing the manner in which the image of a topological feature on the substrate may be may be enhanced by the technique of the present invention; FIG. 2 is a schematic view of a mechanism for generating a gradient profile line of light for enhancing the image in the manner taught in FIG. 1; FIG. 3 is a representation of the image of the substrate of FIG. 1 obtained by the enhancement technique of the present invention; and FIG. 4 is a representation of the image of the substrate of FIG. 1 obtained by a conventional two-dimensional imaging system. Detailed Description FIG. 1 is a side view of a substrate 10 (e.g., a circuit board) having at least one raised, light-reflective topological feature 12 on the board surface, such as a solder paste deposit, or an active or passive surface mount component. In the course of fabricating the substrate 10, an inspection is usually carried out to assure that none of the features 12 are missing or mis-positioned. In the event that the feature 12 is a solder paste deposit, it is far less costly to reprint the deposits, should any be found to be missing or misplaced, rather than to wait until after the placement of components on the circuit board. By the same token, it is far less costly to detect missing or misplaced components prior to solder-bonding to the circuit board than afterwards. Automated inspection of the substrate 10 using a conventional machine vision system, such as the one described in the aforementioned '410 patent, is fraught with the difficulty that the surface of the feature 12 may be diffuse, as is often the case with solder paste deposits and with a large majority of active and passive components. The light reflected vertically upward from feature 12 is often not significantly brighter than that reflected from the surface of the substrate 10 surrounding the feature. The lack of contrast between the feature 12 and the area on the substrate 10 surrounding it makes detection of defects difficult. To overcome this difficulty, I have developed a novel technique which advantageously serves to enhance the contrast between the raised, light-reflective topological feature 12 and the substrate 10. Such enhancement may be accomplished, in accordance with my invention, by directing a line of light 14, having a gradient intensity profile, at the feature 12 at an angle  relative to the surface of the substrate 10. It is important that the line of light 14, whose longitudinal axis extends into the plane of the drawing, have a gradient profile, that is, an intensity which decreases linearly along the z axis. Referring both to FIGS. 2 and 3, the line of light 14 is generated by a light source 16, typically, a well-controlled mercury or halogen lamp, whose light rays 18 are directed into a circle-to-line converter 20, typically a fiber optic bundle, which transform the rays 18 into the line of light 14 such that the longitudinal axis of the line extends into the plane of the drawing. A generally opaque wedge 22 is placed in front of the circle-to-line converter 22 to partially obstruct the line of light 14 so as to advantageously alter its profile (intensity) so that it is no longer constant but now has a linear gradient. To understand how the profile of the line of light 14 is altered by the wedge 22, reference should be had to FIG. 2. When placed in front of the circle-to-line converter 20, the wedge 22, which is opaque, partially obstructs the line 14 so that at a point A directly underneath the wedge, no light is received. Conversely, at a point B which lies in the same plane as, but is laterally spaced from, the point A , all of the light from the line of light 14 is received. Within the region between the points A and B , the wedge 22 will obstruct the line of light 14 by creating a shadow in which there is not a sharp transition between light and dark, but rather a more gradual transition. If, in the absence of the wedge 22, the light illuminating the region between A and B would be of uniform intensity (which would be true if the distance between the points A and B is small), then when the wedge is placed in front of the circle-to-line converter 20, the profile of the light illuminating the region between A and B will have a linear gradient. Assuming that the light striking the region between A and B is uniform in its illumination, the intensity I at any point z in this region will be given by the relationship: I = Imax - A + B z where Imax is the maximum illumination intensity. Equation (1) can be re-written as: I = Imax ( z - A ) - A + B If A is assumed to be zero, and B is defined by the relationship B = w 1 h 2 h 1 then substituting eq.(3) into eq.(2) yields I = Imax h 1 h 2 w 1 ( z ) Thus, the gradient of line of light 14 produced by placing the wedge 22 in front of the circle-to-line converter 20 can be controlled by varying the ratio between h 1 to h 2 . Note that it is possible to place the wedge 22 and the circle-to-line converter 20 as close as possible to the feature 12. When the gradient-profile line of light 14 is directed at an acute angle at the substrate 10, the intensity I of light reflected vertically upwardly will vary in accordance with the height ( z axis position) of the reflecting surface, assuming the reflectivity of the substrate is everywhere equal. If the gradient profile of the line of light 14 is assumed to be linear, then the reflectance intensity can be given by the relationship: I (z) = k ( ax + b ) where a,b and k are constants. The reflecting surface height (Z) varies along the x axis of the substrate 10 because of the presence of the feature 12. Under the conditions depicted in FIG. 1 where the feature 12 is presumed to lie between the coordinates 0 and x 0 , the reflecting surface height can be given by: Z ( x ) = u ( x ) - u ( x - x 0 ) where Combining eq. (5) and (6) yields I ( x ) = ka [ u ( x ) - u ( x - x 0 )] As may be appreciated from eq.(6), the resultant reflectivity intensity obtained by directing the gradient-profile line of light 14 at the substrate 10 will be greater in the region of the feature 12, owing to its greater height, than in the region surrounding to the feature which is typically of a lower height. The increase in the reflectance intensity attributed to the feature as a consequence of the use of a gradient-profile beam serves to enhance the contrast between the feature and the substrate. Referring to FIG. 1, in a preferred embodiment, the image of the substrate 10 and the feature 12 is captured with the aid of a linescan camera 24 of a type well known in the art which serves to image a thin strip of area on the substrate running along the y axis parallel to the line of light 14. The output of the camera 24 is coupled to a vision processor 26 identical to the vision processor described in the aforementioned '410 patent. The vision processor 26 serves to process the output signal of the camera 24 to initially winnow the data so that only the image data representative of predetermined regions of interest within the strip imaged by the camera is retained. The retained image data is then processed by the vision processor 26 to determine the intensity of the light reflected from the regions of interest within the strip imaged by the linescan camera 24. A monitor 28 is coupled to the vision processor 24 for displaying reflectance intensity information from the processor. To obtain an image of the entire surface of the substrate 10, it is necessary to span or sweep the substrate with the line of light 14 and the camera 24. Typically, this is accomplished by displacing the substrate 10 along the x -axis with the aid of an x -axis slide. There is a distinct advantage to imaging the substrate with a linescan camera 24 because the linescan camera advantageously serves to capture the image of a thin strip of area running along the y axis. By properly positioning the linescan camera 24, the strip which is imaged thereby can be made to coincide with the strip illuminated by the gradient profile beam of light 14. In this way, the gradient profile of the illumination of the imaged strip will be well defined. In contrast, the use of a two-dimensional array-type camera, in place of the linescan camera 24, would require strongly limiting the allowed gradient (and with it the image enhancement capabilities) in order to avoid camera saturation on one side of the image and a very dull image on the other. FIG. 3 is an image of the substrate 10 and the feature 12 thereon, as captured by the camera 24 and processed by the image processor 24, when the substrate and feature are spanned by the camera and the line of light 14. By contrast, FIG. 4 is an image of the substrate 10 and the feature 12 thereon, as captured by the camera 22 and processed by the image processor 24, when the substrate and feature are spanned by the camera and a line of light having a substantially uniform intensity profile. As compared to FIG. 4, the contrast between the feature 12 and the surrounding area on the substrate 10 surrounding the feature in FIG. 3 is much greater. In fact, as seen in FIG. 4, the contrast between the feature 12 and the area on the substrate 10 surrounding the feature is not very high, making it difficult to distinguish between the feature and the surrounding substrate area. The foregoing discloses a technique for enhancing the contrast between a light-reflective topological feature and its surrounding background within a captured image by illuminating the feature and its surrounding image with light having a gradient profile.

Claims: A method for obtaining a two-dimensional image of a light-reflective topological feature (12), which is of a different height from a surrounding background (10), such that the contrast between the feature and its surrounding background is enhanced, comprising the steps of: generating a light beam having a gradient intensity profile; directing the light beam at the light-reflective feature (12) and the surrounding background (10), which is of a different height, the light beam being directed so that the gradient intensity profile decreases along an axis defining the height of the light-reflective feature, such that the intensity of the light striking the feature and its surrounding background varies proportionately with their respective heights; capturing the image of the illuminated strip with a camera; processing the captured image to detect the intensity of the light reflected therefrom; and FURTHER CHARACTERISED BY THE STEPS OF forming the light beam as a line of light (14), having a measurable length and width, and having a gradient intensity profile across its width, illuminating a thin strip of area running across the light-reflective feature (12) and the surrounding background (10) with the line of light (14), and spanning the feature(12) and its surrounding background (10) with the line of light (14) and a linescan camera (24) for capturing the image so that a two-dimensional image thereof is obtained such that the contrast between the feature and its surrounding background is enhanced. The method according to claim 1 wherein the line of light (14) is generated by the steps of: directing a beam of light (18) into a circle-to-line converter (20) to produce a line of light; placing an opaque object (22) a spaced distance from the circle-to-line converter to partially obstruct the line to alter its intensity from being generally uniform to now being gradient in nature. The method according to claim 1 further including the step of adjusting the gradient profile of the line-of-light by varying the ratio of the distance between the opaque object (22) and the circle-to-line converter (20) to the distance between the wedge and the feature being illuminated. Apparatus for obtaining a two-dimensional image of a light-reflective feature (12) and a surrounding background (10), which is of a different height, such that the contrast within the image between the feature and its background is enhanced, comprising: means (16, 20) for generating a light beam having a gradient intensity profile; means (22) for directing the beam at the light-reflective feature (12) and the surrounding background (10), which is of a different height, the light beam being directed so that the gradient intensity profile decreases along an axis defining the height of the light-reflective feature, such that the intensity of the light striking the feature and its surrounding background varies proportionately with their respective heights; means (24) for capturing the image of the strip illuminated by the light beam; means (26) for processing the captured image to detect the intensity of the light reflected from the strip illuminated by the light beam; and FURTHER CHARACTERISED BY means for the generating the light beam as a line of light (14), having a measurable length and width, and having a gradient intensity profile across its width, means for illuminating a thin strip of area running across the light-reflective feature (12) and the surrounding background (10) with the line of light (14), and means (30) for spanning the feature (12) and its surrounding background (10) with the line of light (14) and with the image-capturing means to enable a two-dimensional image of the feature and its surrounding background to be obtained such that the contrast between the feature and its surrounding background is enhanced, and wherein the image capturing means is a linescan camera (24). The apparatus according to claim 4 wherein the means for directing the line of light comprises: a light source (16) for producing a light beam; a circle-to-line converter (20) for converting the light beam into a line of light; and an opaque wedge (22) placed in front of the circle-to-line converter to partially obstruct the line of light, thereby causing its intensity profile to be gradient in nature.

Inventors: ISRAEL AMIR, ISRAEL, AMIR
Applicants: AT & T CORP, AT&T CORP.
Application year: 1992
Main classification: G06K9
IPC codes: G01B11, G06T1, G06K9, G01N21