The invention relates to a three dimensional measuring apparatus, provided for measuring a position of at least one contact element, applied on a surface of an electronic component, said apparatus comprising an illumination source, provided for illuminating said contact element, said apparatus further comprising a first and a second camera, said first and second camera being each provided with a lens set-up having a focal point and optical axis, said first and second camera being disposed at opposite sides with respect to a perpendicular axis on said surface of said component, in such a manner that their optical axis form each time an angle ≠0° with respect to said perpendicular axis, said first and second camera each having an image field, provided for forming thereon a first, respectively a second image pattern of at least one of said contact elements, said first and second camera being connected with an image processor, provided for processing said image patterns formed in said image field by applying calculations on said first and second image patterns in order to determine, within a 3D reference frame, said position of said at least one contact element.
Such an apparatus is known from U.S. Pat. No. 6,064,756. The known apparatus comprises besides the first and second camera also a third camera, which is mounted perpendicular with respect to the surface of the component. This third camera is necessary since the position of one or more of the contact elements is determined by using triangulation calculations applied on the image recorded by the third camera and also on the image recorded by the first or second camera. The use of this triangulation is required to obtain the co-ordinates of the position in three dimensions.
Such an apparatus is also known from EP-A-1 185 841. The latter document describes the use of one perpendicularly mounted and one inclined camera for measuring the positions of contact elements of an electronic component.
A drawback of the known apparatus is that the angle at which the first and second camera are placed with respect to the third camera has to be known accurately. Indeed, the triangulation calculation, applied to determine the three dimensional position, requires an accurate knowledge of this angle, since the latter forms a basic parameter for this triangulation calculation.
It is an object of the present invention to realise a three dimensional measuring apparatus using another calculation than the triangulation for measuring a three dimensional position of at least one contact element, without affecting the measurement accuracy.
For this purpose, a three dimensional measuring apparatus according to the present invention is characterised in that said image processor is provided for applying a perspective reconstruction on measurements performed on said first and second image pattern, in order to apply said calculation with reference to a predetermined calibre. The perspective reconstruction used for determining the three dimensional position of contact elements on a surface of an electronic component is based on a calculation of the intersection point of two lines crossing each time the focal point of the lens set-up of each of the two cameras. The angles at which the cameras are placed with respect to the surface of the electronic component are not used in the perspective reconstruction. In this perspective reconstruction the angles of the cameras are only implicitly present.
A first preferred embodiment of an apparatus according to the present invention is characterised in that said image processor comprises a memory, provided for storing camera-model parameters for each camera, obtained by placing said calibre, having a set of two dimensional (x,y) points, in said reference frame and forming for each point (xi,yj) of said set an image point (i,j) thereof within each respective image field by tracing an optical line connecting said focal point and said point (xi,yj), and by determining within each respective image field image co-ordinates (i,j) of said image points, said camera-model parameters being formed by a set of equations converting each point (xi,yj) of said set in said image co-ordinates (i,j), said image processor being further provided for realising said perspective reconstruction by attributing a predetermined location C1(i,j), respectively C2(i,j) within said respective image patterns and for determining, using said camera-model parameters, a first point P1(x,y,z=0) and a second point P2(x,y,z=0) within said reference frame, said image processor being further provided for determining a first and a second line segment, connecting said first point P1(x,y,z=0) and second point P2(x,y,z=0) respectively, with the focal point of the lens set-up of said first, respectively said second camera and for determining co-ordinates (x,y,z) of a point (P) on said contact element situated at a cross-point of said first and second line segment. The camera-model parameters enable to establish a mathematical relationship between a two-dimensional position on the surface of the calibre and image points in the first and second image. The attribution of a predetermined location within an image pattern and the use of the camera-model parameters lead to the determination of two-dimensional co-ordinates of the calibre within the reference frame. The third dimension of the contact element is obtained by the determination of the cross-point of the first and second line segment.
A second preferred embodiment of an apparatus according to the present invention is characterised in that said first and second camera are disposed symmetrically with respect to said perpendicular axis. The symmetrical disposition of the cameras results in more straightforward software algorithms and structures.
Preferably, the optical axis of said first and second camera form among them an angle situated between 20° and 120°. An angle of 20° already provides a sufficient accuracy for determining the position of the contact element, whereas an angle of 120° forms an upper limit because otherwise the overall dimension of the apparatus would become too large. If the angles are too large, the image recorded by the camera is compressed in one direction resulting in a loss of resolution and accuracy.
Preferably, said predetermined location C1(i,j), respectively C2(i,j) is located at substantially a centre of said pattern. Since the centre of the pattern can be easily and reliably determined, an accurate and reliable determination of the co-ordinates is possible.
A third preferred embodiment of an apparatus according to the present invention is characterised in that said set of equations is formed by:
wherein the parameters a, b, c and d are related to a scaling and a rotation of said camera with respect to said reference frame, the parameters p and q giving an offset of an origin of said camera with respect to said reference frame and the parameters e and f being related to a camera tilt angle with respect to said reference plane. These equations are obtained by using a calibre having a grid of crosses at precisely known positions.
Preferably, said apparatus comprises selection means for selectively activating one of said illuminators. In such a manner an appropriate illumination can be selected in function of the type of contact elements to be measured.
A fourth preferred embodiment of an apparatus according to the present invention is characterised in that said apparatus comprises a third camera having an optical axis applied coincident with said perpendicular axis, said third camera being provided for recording an image of said surface for inspection purpose. The third camera can be used for surface inspection of the component or for determining a peripheral of the surface of the component.
Preferably said lens set-up comprises a further set of lenses mounted on a rotary lens mount, each lens of said further set having a predetermined focal point. The rotary lens mount enables to adapt the lens and thus the associated focal point to the type of electronic components to be measured.
A fifth preferred embodiment of an apparatus according to the present invention is characterised in that said illumination source is formed by a line projector provided for projecting an array of lines on said surface in order to form a further array of lines within said image fields, said image processor being provided for applying between a predetermined number of successive image patterns a first set of first windows within said first image, said image processor being also provided for determining within each of said first windows a first window crossing point indicating a crossing of said first window by one of said lines of said further array and for determining within said first window co-ordinates of said first window crossing point, said image processor being further provided for mapping said co-ordinates corresponding to said first window crossing point into said second image in order to obtain a mapped first window crossing point and determining within said second image a second set of windows around said mapped first window crossing point, said image processor being also provided for determining within said second window a further crossing point indicating a crossing of said second window by one of said lines of said further array and for determining co-ordinates within said surface on the basis of said first and second window crossing points. The use of such a line projection enables to determine in an accurate manner the position and deformation or warpage of the substrate.
The invention will now be described in more details with reference to the drawings illustrating preferred embodiments of an apparatus and a method according to the present invention. In the drawings:
a) to 5d) show for different electronic components their associated image pattern;
FIGS. 6 to 9 illustrate image patterns for a BGA (Ball Grid Array), a LGA (Land Grid Array), a GW (Gull Wing) or QFN (Quad Flat Non-leaded) and a LGA socket respectively;
a) and 12b) show a calibre;
a) to c) illustrate the optical relationship between the image and the object formed by an electronic component;
In the drawings a same reference sign has been allotted to a same or analogous element.
The apparatus for measuring three-dimensional co-ordinates of at least one contact element applied on a surface of an electronic component and illustrated in
The cameras are mounted in such a manner as to form an angle α1 respectively α2 with respect to a perpendicular axis a⊥ on the surface of the component. The cameras are disposed at opposite sides with respect to the perpendicular axis a⊥ and the angles α1 and α2 are measured with respect to the axis a⊥ and the optical axis (o1 and o2) of the lens set-up of the cameras.
The apparatus has a reference frame x, y, z as indicated on top of
The angles α1 and α2 at which the cameras are disposed should preferably be chosen in such a manner that α1+α2 are at least 20° in order to provide sufficient measurement accuracy. In the most preferred embodiment α1=α2=20°. An equal value for α1 and α2 renders calculations more easy as symmetrical images are obtained. However, α1 and α2 may have different values. The sum α1+α2 may however not be too large, as this would compress the image in the camera in one direction, resulting in a loss of resolution and accuracy. A too high value for α1+α2 would also lead to large outer dimensions of the whole apparatus housing. A value of α1+α2=120° is therefore considered as being an upper limit.
In case that the electronic component to be measured has resistors, capacitors or other parts placed close to the electrical contacts, the camera angle should be such that there is always a clear view of the electrical contact, which position has to be determined. This again requires small angles for α1 and α2.
Where S is the distance between the pad and the obstacle and δ a tolerance margin.
The image sensor of each camera (1, 2) is connected to an image processor 5 provided for applying a perspective reconstruction on the image pattern as recorded by the cameras. The image processor is formed by a microprocessor (5-1) connected to a memory (5-2). The memory is provided for storing camera-model parameters for each camera as will be described hereinafter.
In order to record an image of the contact elements 4 on the surface of the electronic component 3, the latter has to be illuminated. For this purpose the apparatus is provided with one or more illumination sources. The latter is for example formed by a LED ring illumination 7 placed near the component and providing a ring shaped illumination. This LED ring illumination is particularly suitable for measuring the balls of a BGA or CSP and for the pins of a PGA. A LED bar illuminator 8 could also be provided as illumination source. The LED bar is mounted under on oblique angle with respect to the component 3 and situated near the component but under the LED ring. The LED bars are used for illuminating a calibre during the calibration procedure of the apparatus and for illuminating the contact pads of the LGA component. Preferably the apparatus comprises two LED bars applied sidewise with respect to the component.
A further embodiment for the illumination source is formed by a diffuse illuminator 9 placed near the lens set-up of the cameras. Preferably two diffuse illuminators are used. The diffuse illuminators are used for measuring the quality of the substrate on which the contact elements are applied or for a three dimensional inspection of GW or QFN components or LGA sockets. Finally a coaxial illuminator 10 could form an illumination source. The coaxial illuminator is mounted coaxially with axis a⊥ and is used for illuminating the contact pads of the LGA components. The coaxial illuminator is further used for measuring the substrate quality and the outline of the component.
The apparatus according to the invention can be either provided with all the illumination sources described here before or only with a selection thereof, depending on the type of electronic components to be measured. In the case that the apparatus comprises more than one illumination source, the apparatus is preferably provided with selection means for selectively activating one of said illuminators. The selection means are for example formed by a set of push-buttons in order to manually select a source or by an automatic selector having an input, provided for inputting an identifier, identifying a type of contact element to be inspected. In the latter case, the illumination source is selected in function of the input identifier, which is supplied to a memory in which for each identifier there is stored an appropriate illumination source.
The embodiment of the apparatus illustrated in
The embodiment of the apparatus illustrated in
Since each component type has a particular pattern for its contact element, the images recorded by the cameras 1 and 2 will show specific image patterns as illustrated in FIGS. 5 to 9. The image of a single contact point is a specific image pattern correlated to the shape of the contact element and the used illumination source.
As illustrated in
Instead of using a single lens for the lens set-up of each camera, the latter could also be provided with a rotary lens mount as illustrated in
The lenses can have a different aperture, which allows a selection of the lens, which provides the best light intensity or depth of field (DOF) for the component, which is inspected. A large aperture will allow the lens to collect more light and the DOF will be limited. With a small aperture the lens will collect less light and the DOF will increase.
The rotary lens mount can be equipped with lenses with different focal distances and different apertures to provide an optimal combination of FOV, DOF and light intensity, depending on the components, which need inspection.
When required by the optical and geometrical properties of the components, which need to be inspected, the rotary lens mount can be replaced by a telecentric lens or a standard fixed focus lens. However, in general it is not advantageous to use telecentric lenses since these provide only a fixed FOV and tend to be very large and expensive.
In order to determine the co-ordinates of at least one contact element of the electronic component by using a perspective reconstruction, it is necessary to perform a calibration of the apparatus. For this purpose a calibre as illustrated in
During calibration the geometrical relation is established between the pixel positions in each image and the reference frame. The calibration is used to determine camera-model parameters for each camera. Those camera-model parameters will then be stored in the memory 5-2 of the image processor. As illustrated in
The equations Eq. 1 and Eq. 2 constitute the camera-model parameters. The parameters a, b, c and d are related to the scaling and the rotation of the camera sensor frame with respect to the reference frame. The parameters p and q give the offset of the origin of the camera sensor frame with respect to the reference frame. The parameters e and f are related to the tilt of the camera sensor plane with respect to the (x, y)-plane of the reference frame. For each camera and each lens there is a different camera model which is calculated during the calibration of the system and which is stored in the memory of the image processor.
The derivation of the equation 1 and 2 will be described in more detail with reference to the
z=ux+vy+t (Eq. 3)
The parameters u and v can be written as
u=tan (γ)
v=tan (ξ).
where ξ and γ are the tilt angles of the camera sensor plane as illustrated in
As illustrated in
Assume now that the focal point F lies on the z-axis of the reference frame so that F=(0, 0, fz). In order to describe a projected image point in the camera sensor plane in the (i, j) image frame of the sensor, one has to apply the following transformations to the image points obtained by the image of an (x, y, z) point in the reference frame:
From the position of the image points of the crosses, the camera model, the known focal length of the lens and the size of the pixels of the camera sensor, the focal point position F is calculated with respect to the reference frame.
In case a calibre is constructed with crosses, which do not all lie in the same plane, the focal point can be calculated without the prior knowledge of the focal length of the lens and the size of the pixels. If necessary for the performance of the system, the equations Eq. 1 and Eq. 2 can be extended to allow for the geometrical distortion of the lens.
The perspective reconstruction for calculating the three dimensional positions of the contact elements is based on the calculation of the intersecting point of two lines. The angles α1 and α2 of the camera are not used in this method. This distinguishes the present method from a triangulation method where the angles of the cameras are the basic parameters. In the perspective reconstruction the angles of the cameras α1 and α2 are only implicitly present in the camera-model parameters (Eq. 1 and Eq. 2). For the perspective reconstruction no camera angles are required. Only the knowledge of the focal points and the camera-model parameters is needed.
In these image patterns a predetermined location, C1(i1, j1) for image pattern 21 and C2(i2, j2) for image pattern 22 is attributed. Preferably those locations C1 and C2 are located substantially at the centre of the pattern. However, other positions than the centre are also possible such as one of the focal points of the ellipse could also be used. Alternatively a gravity point in the image could be determined and used for this purpose. The predetermined location could also be determined by using a convolution technique, i.e. by applying a sample over the recorded image. Once the locations C1 and C2 are attributed, the image co-ordinates (i1, j1) and (i2 ,j2) in the image frame can be determined. The camera-model parameters determined during calibration (Eq. 1 and Eq. 2) are now used in order to determine the co-ordinates of the first point P1(x1, y1, z=0) and a second P2(x2, y2, z=0) in the reference frame. Indeed, using the co-ordinates C1(i1, j1) respectively C2(i2, j2) the equation Eq. 1 and Eq. 2 will provide the co-ordinates of P1 and P2 in the reference frame (x, y, z ). The points P1 and P2 in the reference frame are those which form the image point C1 and C2 in the respective image pattern.
The camera-model parameters thus provide the co-ordinates of points P1 and P2 in the z=0 plane. For obtaining a z co-ordinate, some additional processing is required. For this purpose a first line segment L1, connecting the first point P1(x1, y1, z=0) with the focal point F1, is determined as well as a second line segment L2 connecting the second point P2(x2, y2, z=0) with the focal point F2. As both line segments cross each other, their crossing point P indicates a z-position of the ball 4. As the co-ordinates of P1, P2, F1 and F2 are known with respect to the reference frame x, y, z, the crossing point P can be easily determined from the equations representing L1 and L2. In such a manner, the z co-ordinate of the crossing point P is determined and thus the x, y, z position of P. It should be noted that the point P is not at the top of the ball, but the height difference (measured along the z-axis) is the same for all the balls.
A similar perspective reconstruction can be performed for LGA, GW or QFN components of LGA sockets. In each case a predetermined location C1 and C2 has to be attributed to the respective image pattern. So, for example, for the LGA pattern also the centre can be used, whereas for the QFN and LGA socket pin pattern, a cross could be determined starting from the image corners and the crossing point could be used as the points C1 and C2.
For measuring the height of the ball of a BGA with respect to the substrate surface, the ball top needs to be measured. This is done in a first step as described here before with respect to
To measure the 3D position of the substrate surface, a number of bright lines are projected on the substrate surface by using the line projector 11 (
When use is made of the line projector, the position of the projected lines needs to be located in the images.
The image processor is provided for applying within the recorded first image a first set of first windows 25. The latter being applied between a predetermined number of successive image patterns. As can be seen in image 1 of
Once the co-ordinates ICP1(i, j) of at least one first window crossing point for at least one line of the further array are determined, the co-ordinates of these positions are mapped into the second image in order to obtain a mapped first crossing point within the second image. This operation is necessary in order to recognise corresponding lines in both images. Indeed, since the projected line array issues from a same line projector, leading to a single line array on the substrate, there has to be correspondence between the further line arrays in both images. As illustrated in
The mapping of the first window crossing points C(P1) and C(P1′) in the second image will now be described in more details. Using the camera- model parameters (Eqs. 1-2) for the first window crossing points C(P1) and C(P1′), the points P1 and P1′ in the z=0 reference plane, corresponding to the lines I1 and I1′, are determined. Thereafter the lines P1-F1 and P1′-F1, connecting the points P1 and P1′ with the focal point F1 of the lens set-up of the first camera, are constructed. From the 3D measurement of the balls, the average z-position of the ball tops zb can be determined. Knowing zb and an estimate BH of the ball height, an estimate is made of zs, the expected z-position of the substrate. The lines P1-F1 and P1′-F1 intersect the z=zs plane in the points Pe and Pe′ (these are not shown in
Knowing the focal point F2 of the lens set-up of the second camera, the lines F2-Pe and F2-Pe′ are determined. The latter lines cross the z=0 plane in the points Pe2 and Pe2′ (also not shown). Using the inverted camera model parameters (Eq. 4 and Eq. 5) for second camera, the image points of Pe2 and Pe 2′ in the second image are determined. These image points form the mapped first window crossing points of C(P1) and C(P1′) in the second image. Due to the fact that the latter image points are obtained by mapping the first window crossing points, they are located in the vicinity of the location on which in the second images the second window crossing points ICP2(i,j) will be located.
On each of these mapped first window crossing points a second window belonging to a second set of second windows 26 are placed. Those second windows will contain the images in the second image of the projector lines points P and P′. The points ICP2(i,j) within these second windows where the projector lines 24 of the further array cross these second windows are now determined thereby providing the points C(P2) and C(P2′) in the second image. On the pairs of image points C(P1) and C(P1′) and C(P2) and C(P2′) the perspective reconstruction is applied in a analogous manner as it is applied to the pair of image points (C1, C2) in
The apparatus according to the present invention offers advantages with respect to other ones having a camera extending along the perpendicular axis a⊥.
Since the angle with the perpendicular axis a⊥ is smaller, it is possible to measure very large components. With a large angle it is impossible to illuminate a large component in a sufficient homogeneous way. It is also possible to measure components with obstacles in the centre (e.g. resistors, capacitors). This is illustrated in
The camera set-up is symmetric, which results in more accurate measurements, which are less sensitive to the position and rotation of the component. The thus obtained symmetric images result in more straightforward software algorithms and structures.
The perspective reconstruction allows the use of fixed focus lenses. In contrast, a triangulation reconstruction method requires telecentric lenses, which provide only a fixed FOV and tend to be very large and expensive as compared to fixed focus lenses. The described apparatus achieves a high degree of measurement accuracy which, with a triangulation reconstruction method, would be achieved when telecentric lenses are used. Therefore the described system is less expensive, more flexible and can be made more compact. The apparatus with the line projector allows for the measurement of the height of the contact pins with respect to the substrate.