A method and system for locating objects with subpixel precision

Abstract: A method of locating an object which has a straight edge is disclosed. An illustrative embodiment of the invention orients (301) the object's edge so that it is at an oblique angle to the axis of the coordinate system of the sampling plane of the input device scanning the object. A subset of the pixels associated with the object's edge are identified (305) and used (309) to estimate the location of the object or edge.

Description: Field of the Invention The invention relates to automated guidance systems in general, and more particularly, to methods and systems for precisely locating and/or aligning objects. Background of the Invention Automated manufacturing systems usually incorporate a machine vision system for locating an article's components in preparation for the components assembly. Typically, the article's quality is constrained by the precision with which the machine vision system can locate and thereby manipulate the article's components. Therefore, it is advantageous for a machine vision system to be able to locate an object with great precision. Unfortunately, machine vision systems, like their biological counterparts, have physical limitations which hinder their ability to precisely determine the location of an object. In animals these limitations includes the number and sensitivity of the rods and cones in the eye. In machine vision systems the physical limitations include the number and sensitivity of discrete photoreceptors in the system's video camera. Currently, a videocamera can be fabricated which comprises a large number of highly sensitive photoreceptors. Its cost, however, can be prohibitive. Low cost, low resolution videocameras are commercially available but they often cannot provide the precision that is needed. It would be advantageous, therefore, if objects could be located precisely with low resolution equipment. According to the present invention, there is provided apparatus as defined in claim 1 or a method as defined in claim 7. Brief Description of the Drawings FIG.1 presents a diagram of an illustrative embodiment of the present invention. FIG.2 presents a diagram of an illustrative robot controller as shown in FIG. 1. FIG.3 presents a flowchart which depicts the operation of the illustrative embodiment. FIG.4 depicts a sampling window comprising a 128 x 128 array of image elements arranged in orthogonal rows and columns. FIG. 5 depicts an illustrative relationship of a reference window element to its respective neighbor image elements. FIG. 6 depicts an illustrative fiducial as shown in FIG. 1. FIG. 7 depicts the illustrative fiducial as shown in FIG. 1 and its angular orientation with respect to the rows and columns of window elements in the sampling window depicted in FIG. 4. FIG. 8 depicts an illustrative sampling window which represents an image containing the fiducial shown in FIG. 7. FIG. 9 depicts the sampling window shown in FIG. 8 as it has been masked to isolate a portion of the fiducial equal to a vertical period of the fiducial. FIG. 10 depicts the sampling window shown in FIG. 9 as it further isolates a set of image elements which partially define the more horizontal edges of the fiducial. FIG. 11 depicts the sampling window shown in FIG. 8 as it has been masked to isolate a portion of the fiducial equal to a horizontal period of the fiducial. FIG. 12 depicts the sampling window shown in FIG. 11 as it further isolates a set of image elements which partially define the more vertical edges of the fiducial. Detailed Description I. Introduction For clarity of explanation, the illustrative embodiments of the present invention are described as comprising individual operation blocks (including operation blocks labeled as "processors"). The functions these blocks represent may be provided through the use of either shared or dedicated hardware, including, but not limited to, hardware capable of executing software. (Use of the term "processor" should not, therefore, be understood to refer only to fixed functional elements and hardware capable of executing software.) Embodiments of the present invention may comprise digital signal processor (DSP) hardware, such as the AT&T DSP16 or DSP32C, used in combination with associated software to perform the functions and operations discussed below. The nomenclature used in this specification is that most commonly used in the art of machine vision. The use of these terms, however, should not be understood to imply that only optical devices can be used to create the signals which are processed. It will be clear to those skilled in the art of mechanical assembly, inspection or alignment how to fabricate embodiments of the present invention which use different forms of input devices. The detailed description comprises three sections in addition to this introduction. Section II describes an illustrative embodiment of the present invention. The illustrative embodiment is part of an automated manufacturing system which inserts components into a printed circuit board with a robot insertion tool. In order that the robot be able to place the components into the board in the right place, it is advantageous that the robot be capable of precisely locating the board. To facilitate this process, the illustrative embodiment advantageously locates each printed circuit board by fixing a bearing on the centroid of each of one or more landmarks on each printed circuit board. These landmarks are known as fiducial registration marks or fiducials. Section III describes a set of criteria for designing an advantageous fiducial and Section IV describes the process used by the illustrative embodiment to fix a bearing on a fiducial. The following U.S. patents describe prior art : (1) K. Fujiwara et al., U.S. Patent 4,621,406, issued Nov. 11, 1986 entitled "Electronic Component Insertion Apparatus;" (2) R.V. Lubrano et al., U.S. Patent 4,984,355, issued Jan. 15, 1991 entitled "Tool for Inserting/Extracting Package from Socket on PC Board;" (3) N.S. Zaremba et al., U.S. Patent 4,868,975, issued Sept. 26, 1989 entitled "Tool for Inserting Dual In-Line Packaged Circuits into Printed Circuit Board Sockets;" and (4) P. Mengel et al., U.S. Patent 5,031,224, issued July 9, 1991 entitled "Flexible Recognition of Subject Structures in Color and Half-tone Images." Moreover, Bum-Jae You et al., A Vision System for an Automatic Assembly Machine of Electronic Components, IEEE Transactions on Industrial Electronics and Control Instrumentation, Vol 37 (5), 1990, pages 349-357, discloses a vision system and a method for the automatic assembly of rectangular shaped electronic components. The system detects the orientation of said components in using a windowing/masking technique and their position in using a method which determines the center of a component from the positions of the upper and left boundaries of the component. US-A-4 209 830 (Yoshiaki Arimura et al.), 24 June 1980 discloses a system and a method for forming a position mark on an object and for determining the position of said objection at hand of that position mark. The detection of said position is determined by a windowing technique but by horizontal scanning of the object. II. The Illustrative Embodiment FIG. 1 depicts an illustrative embodiment of the present invention which inserts components into a printed circuit board without human intervention. The illustrative embodiment advantageously comprises: printed circuit board 101, a two-or three- dimensional object (such as fiducial 103) on printed circuit board 101 which object appears from the perspective of an input device (such as videocamera 109) to have at least one substantially straight edge, support 105 for substantially holding printed circuit board 101 in the X-Y plane and substantially at a predetermined angular orientation within that plane, videocamera 109 for scanning fiducial 103 and creating a set of video signals which represent the field of view of the videocamera, a monitoring station (such as robot controller 111) for processing the video signals generated by videocamera 109, robot insertion tool 123 (with robot arm 125) for inserting components into printed circuit board 101, lead 107 for carrying the video signals generated by videocamera 109 to robot controller 111, and lead 121 for carrying the signals representing the X-Y coordinates of fiducial 103 to robot insertion tool 123. As shown in FIG. 2, robot controller 111 advantageously comprises video capture circuitry 255, read-write memory (such as RAM 253), general purpose processor 251, read-only memory (such as ROM 259), and robot drive circuitry 257. It is preferred that video capture circuitry 255 receive a single video frame generated by videocamera 109 and apply the signals in that frame in ordered sequence into RAM 253 to create a "sampling window" (such as that depicted at 401 in FIG. 4) comprising an 128 x 128 array of "image elements" (illustrative ones of which are depicted at 403 in FIG. 4). Processor 251, utilizing one or more procedures stored in ROM 259, advantageously analyzes the image elements in the sampling window to estimate the location of fiducial 103. When processor 251 has estimated the position of fiducial 103, robot drive circuitry 257 conveys that location to robot insertion tool 123 via lead 121. It is preferred that printed circuit board 101 be held by support 105 substantially at a predetermined angular orientation so that printed circuit board 101 substantially lies in the X-Y plane and is substantially restrained from rotating around the Z axis. In embodiments where support 105 does not substantially restrain printed circuit board 101 from rotating around the Z axis, printed circuit board 101 may advantageously comprise a plurality of distinct fiducials so that the orientation and location of printed circuit board 101 may nevertheless be estimated. It will be clear to those skilled in the art how to fabricate embodiments of the present invention when printed circuit board 101 comprises multiple fiducials. III. Creating the Fiducial The shape, size and orientation of fiducial 103 on printed circuit board 101 advantageously conforms to the following criteria. Shape: Fiducial 103 is preferably a solid black square (such as that shown at 103 in FIG. 6) which is set against a highly contrasting (such as white) background which is large enough so that the field of view of videocamera 109 only contains images of fiducial 103 and background 603. It will be clear to those skilled in the art that fiducial 103 may alternately be a rhombus, a trapezoid or any other shape which from the perspective of videocamera 109 appears to have at least one substantially straight edge. Size: It is preferred that the size of fiducial 103 be set so that, when viewed from videocamera 109, fiducial 103 occupies approximately 25% of the field of view of videocamera 109. It is advantageous for the length of each side, d, of fiducial 103 to be set so that the distortions introduced into the sampling window because of the physical limitations of videocamera 109 destructively interfere. Therefore, the length of each side of fiducial 103 preferably equals: d=[ n+1 2n ]f where n is the number of rows (or columns) in the sampling window and f is the field of view, in linear measure, of videocamera 109 (as projected onto the plane containing the fiducial). In the illustrative embodiment, the sampling window contains 128 rows and 128 columns and has a field of view on the sampling plane of 1.0". From equation (1) the length of each side of fiducial 103 is advantageously set to: d=( 128+1 256 )(1.0" 2.54 cms)=0.504" (1.28 cms.) It will be clear to those skilled in the art how to set d for different values of f and n. It will be clear to those skilled in the art how to fabricate embodiments of the invention which satisfy equation (1) with any predetermined size fiducial by adjusting the distance between the focal plane of videocamera 109 and the fiducial. Orientation: As shown in FIG. 7, it is preferred that fiducial 103 be oriented in the X-Y plane so that when fiducial 103 is viewed through videocamera 109, the sides of fiducial 103 form a predetermined angle, , with respect to the axes of the columns and rows of the sampling window. This "tilting" of fiducial 103 with respect to the axes of the sampling window is advantageous in that it promotes the destructive interference of distortions caused by the physical limitations of videocamera 109. The angle  is an oblique angle, the effects of tilting are equivalent for 0°, 45°, 90°, 135° 180°, etc. and for each octant of 45°. Angles close to 0° or 45° enable potentially more precise measurements while angles centered between 0° and 45° (i.e., ≈22.5°) enable measurements which are less susceptible to noise. Advantageously,  is chosen to be cotan -1 (8) which is substantially 7.125°. It will be clear to those skilled in the art how to fabricate embodiments of the present invention which use different angles of . IV. The Operation of the Illustrative Embodiment FIG. 3 presents a flow chart which depicts the operation of the illustrative embodiment depicted in FIGs. 1 and 2. The operation of the illustrative embodiment begins at block 301 when printed circuit board 101 is mounted on support 105. As described above, printed circuit board 101 is advantageously mounted on support 105 so that the above fiducial criteria relating to size and orientation are satisfied. As depicted at block 303, videocamera 109 periodically, or on command, scans fiducial 103 and transmits to video capture circuitry 255 over lead 107 a set of video signals which represent the field of view of videocamera 109. As depicted at block 305, video capture circuitry 255 applies these signals in ordered sequence into RAM 253 to create sampling window 801. Because each image element in sampling window 801 represents some information about a distinct region in the field of view of videocamera 109, video capture circuitry 255 advantageously assigns an informative "token" (e.g., "Black" or "White") to each image element so that sampling window 801, in toto, represents the field of view of videocamera 109 when the scan was made. In the illustrative embodiment, a image element assigned a "BLACK" token is advantageously defined as representing a region which is darker than some threshold intensity (i.e., reflects less than some threshold intensity of light incident on a portion of printed circuit board 101). Congruously, a image element is assigned a "WHITE" token when it is not assigned a BLACK token. It will be clear to those skilled in the art how to fabricate embodiments of the present invention in which the window elements may be assigned characteristics which represent color or gray-scales. The respective image elements in sampling window 801 which are depicted as black are assigned the token BLACK and represent the field of view of videocamera 109 containing fiducial 103. The window elements which are depicted as white are assigned the token WHITE and represent the field of view of videocamera 109 containing the background 603 surrounding fiducial 103. While sampling window 801 may assume any one of numerous configurations, it is preferred that it comprise a 128 x 128 array of square image elements which are tiled in orthogonal rows and columns. Each image element in sampling window 801 is identified by a cartesian coordinate pair. For example, image element (0,127) is the window element in the north-west corner of sampling window 801 and window element (127,127) is the image element in the north-east corner of sampling window 801. It will be clear to those skilled in the art how to fabricate embodiments of the present invention which employ sampling windows with different dimensions (e.g., rectangular or nonorthogonal) or image elements with different shapes. While video capture circuitry 255 only assigns two tokens ("BLACK" and "WHITE"), it is preferred that processor 251 be capable assigning a third token, "NULL," to each image element. A NULL token provides no information about the field of view of videocamera 109 but is used as a placeholder in subsequent calculations. As shown at FIG. 3, processor 251 advantageously estimates the location of the centroid of fiducial 103 in two phases: (1) a "good estimate operation" (block 307) and (2) a "better estimate operation" (block 309). The good estimate operation (block 307) estimates the centroid of fiducial 103 by analyzing all of the image elements in sampling window 801. It should be noted that all operations described in this specification to be executed by processor 251 from procedures stored in ROM 259 are performed by the illustrative program listing disclosed in Appendix I. It will be clear to those skilled in the art how to use and/or modify this program listing to fabricate and use other embodiments of the present invention. Specifically, the good estimate operation (block 307) estimates the X-coordinate of the centroid of fiducial 103, X g , by averaging the X-coordinates of all of the image elements assigned a BLACK token. Analagously, the good estimate operation (block 307) estimates the Y-coordinate of the centroid of fiducial 103, Y g , by averaging the Y-coordinates of all of the image elements assigned a BLACK token. It will be clear to those skilled in the art how to program processor 251 to perform the good estimate operation. The good estimate operation (block 307) yields as an estimate of the centroid of fiducial 103 in sampling window 801 (X g = 75.74, Y g = 71.09). After processor 251 performs the good estimate operation (block 307), processor 251 begins executing the better estimate operation (block 309) as shown in FIG. 3. It is preferred that the better estimate operation (block 309) advantageously estimate the centroid of fiducial 103 by analyzing only one or more of those image elements in sampling window 801 which define an edge of fiducial 103. It should be noted that an edge can be represented by either image elements which are assigned BLACK tokens or by image elements which are assigned WHITE tokens. Specifically, the better estimate operation (block 309) advantageously estimates the X-coordinate of the centroid of fiducial 103, X b , by averaging the X-coordinates of some of the image elements which define the two edges of fiducial 103 which are most parallel to the Y-axis. Analagously, the better estimate operation (block 309) advantageously estimates the Y-coordinate of the centroid of fiducial 103, Y b , by averaging the Y-coordinates of some of the image elements which define the two edges of fiducial 103 which are most parallel to the X-axis. The better estimate operation (block 309) itself comprises: a "Y-coordinate operation" (block 311) and an "X-coordinate operation" (block 321). It will be clear those skilled in the art how to fabricate embodiments of the invention which perform only one of these two operations or which perform them both in either order, or perform them simultaneously on a multi-tasking or multiprocessor system. The Y-coordinate operation (block 311) advantageously comprises: (1) a "duplicate window operation" (block 313), (2) a "vertical masking operation" (block 315), (3) an "edge isolation operation" (block 317) and (4) a "Y-averaging operation" (block 319). In the duplicate window operation (block 313) processor 251 makes a duplicate of sampling window 801 (hereinafter the "duplicate sampling window"-not shown in Figures) in RAM 253. All steps performed by processor 251 during the execution of Y-coodinate operation (block 311) operate on the duplicate sampling window. The original sampling window 801 is preserved for the X-coordinate operation (block 321). After processor 251 has completed the duplicate window operation (block 313), it performs the vertical masking operation (block 315) on the duplicate sampling window. The vertical masking operation (block 315) is advantageous in that performs two functions: (1) it allows the image elements which define the more vertical edges of fiducial 103 to be isolated from the image elements which define the more horizontal edges, and (2) it further promotes the destructive interference of distortions due to the physical limitations of videocamera 109. The vertical masking operation (block 315) reassigns a NULL token to each image element in the duplicate sampling window which has an X-coordinate below or equal to X L , or above X H . The values X L and X H are advantageously determined by satisfying equations (2) and (3) simultaneously; X H - X g = X g - X L and X H -X L = dncos 2f . Equation (2) advantageously assures that the unmasked region is centered about the good estimate of the centroid of fiducial 103. This has two beneficial effects. First, it eliminates noise which tends to occur at the corners of a fiducial and, second, it serves to isolate the image elements which define the upper and lower edges of fiducial 103 from the left and right edges. Equation (3) advantageously assures that the number of image elements which respectively define the upper and lower edges are equal to "a multiple of the period of the fiducial." The period of the fiducial indicates approximately how many columns a portion of the edge of the fiducial must traverse to traverse one row. It is preferred that the number of image elements used in the Y-averaging operation (block 319) equal an integral multiple of the period of the fiducial because it further causes the distortions caused by by the physical limitations of videocamera 109 to cancel. From above, d=0.504", n = 128, =7.125°, f= 1.0" and X g =75.74. From equation (3): X H -X L = 1.28 cms (0.504")×128×cos(7.125°) 2×(1.0")2.54 cms =32.00 and equation (2); X H -75.74 = 75.74-X L , Solving equations (3a) and (2a) simultaneously yields, rounding to the nearest integer, X H = 92 and X L = 60. It will be clear to those skilled in the art how to determine X H and X L given different parameters. Thus, processor 251 assigns all window elements with X-coordinates greater than 92 or less than or equal to 60 a NULL token. The masked duplicate sampling window is depicted at 901 in FIG. 9. Those image elements which are assigned NULL tokens appear with cross-hatches. At this point the vertical masking operation (block 315) is complete. The edge isolation operation (block 317) advantageously identifies a subset of the image elements in the masked duplicate sampling window as "edge image elements." For the purpose of this specification an edge image element is defined as a image element which defines an edge on fiducial 103. In the illustrative embodiment an edge image element is advantageously defined as a image element which is assigned a BLACK token and which has at least one "neighbor image element" which is assigned a WHITE token. As a corrolary to this advantageous definition, a image element which is assigned a NULL or a WHITE token can never be an edge image element. For the purposes of this specification, a neighbor image element is defined as a image element which has a coordinate relationship with respect to another image element. In the illustrative embodiment (as shown in FIG. 5), image element 501 is advantageously defined to have four neighbor image elements: image element 503 (to the north of image element 501), image element 505 (to the east of window element 501), image element 507 (to the south of image element 501) and image element 509 (to the west of image element 501). It will be clear to those skilled in the art how to program processor 251 to perform the edge isolation operation (block 317). It will be clear to those skilled in the art how to fabricate and practice embodiments of the present invention in which the definition of neighbor image elements is different (e.g., includes image elements to the north-east, south-east, south-west and north-west of a given image element). When the edge isolation operation (block 317) is complete, the result is the duplicate sampling window depicted in FIG. 10 (all of the image elements are assigned a WHITE token and appear white except for the edge image elements which are assigned a BLACK token and appear black). The last step in the Y-coordinate operation (block 311) is the Y-averaging operation (block 319). In the Y-averaging operation (block 319), processor 251 determines the better estimate, Y b , of the Y-coordinate of the centroid of fiducial 103 by averaging the Y-coordinates of all of the edge image elements (i.e., those window elements in the duplicate sampling window, as depicted in FIG. 10, which are assigned a BLACK token). In the illustrative embodiment, the better estimate of the Y-coordinate of fiducial 103 is determined by processor 251 to be Y b = 68.87. It will be clear to those skilled in the art how to utilize only a subset of the edge image elements. It will also be clear to those skilled in the art how to estimate the Y-coordinate of the centroid of fiducial 103 after the vertical mask operation (block 317) and before the edge isolation operation (block 319). When the Y-coordinate operation (block 311) is completeae processor 251 advantageously begins execution of the X-coordinate operation (block 321). The X-coordinate operation (block 321) advantageously comprises: (1) a "horizontal masking operation" (block 323), (2) an "edge isolation operation" (block 325) and (3) a "X-averaging operation" (block 327). Processor 521 begins the X-coordinate operation (block 321) by performing the horizontal masking operation (block 315) on the original sampling window 801 which was left undisturbed by the Y-coordinate operation (block 311). The horizontal masking operation (block 315) is analagous to the vertical masking operation (block 315) and is advantageous for analagous reasons. The horizontal masking operation (block 315) reassigns a NULL token to each image element in the duplicate sampling window which has an Y-coordinate below or equal to Y L , or above Y H . The values Y L and Y H are advantageously determined by satisfying equations (4) and (5) simultaneously; Y H - Y g = Y g - Y L and Y H - Y L = dncos 2f . Equation (4) is analagous to equation (2) and is advantageous for analagous reasons and equation (5) is analagous to equation (3) and is advantageous for analagous reasons. From above, d=(0.504" )1.28cms. n = 128, =7.125°, f=(1.0") 2.54cms and Y g =71.09. From equation (3): Y H -Y L = (0.504")1.28cms×128×cos(7.125°) 2×(1.0")2.54cms. =32.00 and equation (2); Y H -71.09 = 71.09-Y L , Solving equations (4a) and (5a) simultaneously yields, rounding to the nearest integer, Y H = 87 and X L = 55. It will be clear to those skilled in the art how to determine X H and X L given different parameters. Thus, processor 251 assigns all window elements with Y-coordinates greater than 87 or less than or equal to 55 a NULL token. The masked duplicate sampling window is depicted at 1101 in FIG. 11. Those image elements which are assigned NULL tokens appear with cross-hatches. At this point the horizontal masking operation (block 323) is complete. The edge isolation operation (block 325) is identical to the edge isolation operation (block 317) in the Y-coordinate operation (block 311) and produces from the masked sampling window of FIG. 11 the sampling window depicted in FIG. 12 (all of the image elements are assigned a WHITE token and appear white except for the edge window elements which are assigned a BLACK token and appear black). The last step in the X-coordinate operation (block 321) is the X-averaging operation (block 327). In the X-averaging operation (block 327), processor 251 determines the better estimate, X b , of the X-coordinate of the centroid of fiducial 103 by averaging the X-coordinates of all of the edge image elements (i.e., those window elements in the duplicate sampling window, as depicted in FIG. 12, which are assigned a BLACK token). In the illustrative embodiment, the better estimate of the X-coordinate of fiducial 103 is determined by processor 251 to be X b = 71.65. It will be clear to those skilled in the art how to utilize only a subset of the edge image elements depicted in FIG. 12. It will also be clear to those skilled in the art how to estimate the X-coordinate of the centroid of fiducial 103 after the horizontal mask operation (block 323) and before the edge isolation operation (block 325). At this point the X-coordinate operation (block 321) and the better estimate operation (block 309) have completed execution. The better estimate of the centroid of fiducial 103 has been determined according to the illustrative embodiment to be X b =71.65,Y b =68.87. Robot drive circuitry 257 can relay those coodinates, via lead 121 to robot insertion tool 123 for use in inserting components into printed circuit board 101. Robot insertion tool 123 advantageously comprises means for moving robot arm 125 in the X and Y directions so that robot arm 125 may populate printed circuit board 101 according to the specifics of the particular embodiment. It should be noted that all operations described in this specification to be executed by processor 251 from procedures stored in ROM 259 are performed by the illustrative program listing disclosed in Appendix I. It will be clear to those skilled in the art how to use and/or modify this program listing to fabricate and use other embodiments of the present invention.

Claims: An apparatus for locating an object (103) on a substrate (101), the object, from the perspective of an input device (109), having at least one substantially straight edge, the apparatus comprising: an input device (109) for capturing an image of at least a portion of said substantially straight edge, and for creating a sampling window comprising an array of image elements which are arranged in a plurality of substantially parallel rows; a device (105) that is arranged to control and to orient said substrate with respect to said input device such that an image of said substantially straight edge of said object and at least one of said rows intersect at an angle that is both predetermined and oblique; a circuit for estimating a centroid of said object based on the sampling window information; a circuit that determines as edge elements by means of a masking operation a subset of said image elements which define said substantially straight edge for use in determining the precise location of said object on said substrate, the size of said subset being determined using a trigonometric function of said angle such that said size is approximately an integral multiple of the number of edge image elements that are in a row of said sampling window, wherein the position of said subset of image elements is with reference to the centroid of the object; and a circuit that precisely locates said object on said substrate based on the relative positions of the edge elements of said subset. The apparatus of claim 1 wherein said object is a fiducial registration mark on a printed circuit board and said input device is a videocamera. The apparatus of claim 2 wherein said fiducial registration mark is a rhombus comprising a first pair of opposite edges and a second pair of opposite edges. The apparatus of claim 3 wherein said circuit that determines comprises a circuit that isolates said images elements representing said first pair of opposite edges from said images elements representing said second pair of opposite edges. The apparatus of claim 4 wherein said circuit that precisely locates comprises a circuit that precisely locates said fiducial registration mark in a first dimension based on said images elements representing said first pair of opposite edges. The apparatus of claim 5 wherein said circuit that precisely locates further comprises a circuit that locates said fiducial registration mark in a second dimension based on said images elements representing said second pair of opposite edges. A method for locating an object (103) on a substrate (101), the object, from the perspective of an input device (109), having at least one substantially straight edge, the method comprising the following steps: scanning, with said input device, at least a portion of said substantially straight edge and creating a sampling window comprising an array of images elements which are arranged in a plurality of substantially parallel rows; orienting said substrate with respect to said input device such that an image of said substantially straight edge of said object and at least one of said rows intersect at an angle that is both predetermined and oblique; estimating a centroid of said object based on the sampling window; determining as edge image elements based on a masking operation a subset of said image elements which define said substantially straight edge for use in determining the precise location of said object on said substrate, said number is subset being determined using a trigonometric function of said angle such that said subset being approximately an integral multiple of the number of image elements of said substantially straight edge that are in a row of said sampling window, wherein the position of said subset of image elements is with reference to the centroid of the object; and precisely locating said object on said substrate based on the relative positions of said the edge image elements of said subset. The method of claim 7 wherein said object is a fiducial registration mark on a printed circuit board and said input device is a videocamera. The method of claim 8 wherein said fiducial registration mark is a rhombus comprising a first pair of opposite edges and a second pair of opposite edges. The method of claim 9 wherein said step of identifying comprises the step of isolating said edge elements representing said first pair of opposite edges from said edge elements representing said second pair of opposite edges. The method of claim 10 wherein said step of locating comprises the step of locating said fiducial registration mark in a first dimension based on said edge elements representing said first pair of opposite edges. The method of claim 11 wherein said step of locating further comprises the step of locating said fiducial registration mark in a second dimension based on said edge elements representing said second pair of opposite edges.

Inventors: O'GORMAN LAWRENCE PATRICK, SIMONS EVERETT FURBER, O'GORMAN, LAWRENCE PATRICK, SIMONS, EVERETT FURBER
Applicants: AT & T CORP, AT&T CORP.
Application year: 1993
Main classification: G06T7
IPC codes: B65H9, G06T7, H05K13