The present patent application claims the priority benefit of French patent application FR13/50813 which is herein incorporated by reference.
The present disclosure generally relates to optical inspection systems and, more specifically, to three-dimensional image determination systems intended for the on-line analysis of objects, particularly of electronic circuits. The present invention more specifically relates to systems fitted with digital cameras.
A system for optically inspecting an object, for example, an electronic circuit, generally comprises a device for projecting specific patterns onto the circuit to be inspected and at least one digital camera capable of acquiring a plurality of images of the circuit. The projected image comprises, for example, a succession of bright and dark fringes.
An example of a three-dimensional image determination method comprises projecting a plurality of images onto the circuit to be inspected. It may for example be images comprising repeated patterns. It may also be a random image. The images projected during two successive projections differ from each other. For example, when the image comprises patterns, said patterns may be shifted from one projected image to the other. An image of the circuit is acquired for each new position of the image projected onto the circuit.
A three-dimensional image may be determined from the images of the circuit acquired by the digital camera.
Thus, an embodiment provides a method of determining three-dimensional images of an object, comprising projecting a display onto the object with a projector; acquiring a plurality of two-dimensional images of the object with at least one first image sensor, a relative displacement of the object with respect to the assembly comprising the projector and the image sensor being performed during the image acquisitions; and determining the height of each point of the object as corresponding to an extremum of a function obtained from the acquired two-dimensional images.
According to an embodiment, the projector and/or the first image sensor are of perspective type.
According to an embodiment, the projected display is identical on acquisition of each two-dimensional image.
According to an embodiment, the display comprises fringes.
According to an embodiment, a relative displacement of the object with respect to the assembly comprising the projector and the image sensor is performed on acquisition of at least one of the two-dimensional images.
According to an embodiment, a relative displacement of the object with respect to the assembly comprising the projector and the image sensor is performed on acquisition of each two-dimensional image.
According to an embodiment, the relative displacement is accelerated between the acquisitions of the two images of at least one pair of successive two-dimensional images.
According to an embodiment, the relative displacement speed is constant to within 10%.
According to an embodiment, the method comprises acquiring a plurality of two-dimensional images of the object with at least one second image sensor, the height of each point of the object corresponding to an extremum of a function obtained from the images acquired by the first and second image sensors.
An embodiment also provides a system for determining three-dimensional images of an object, comprising:
a projector capable of projecting a display onto the object;
a first image sensor capable of acquiring a plurality of two-dimensional images of the object;
a conveyor capable of displacing the object with respect to the assembly comprising the projector and the first image sensor on successive acquisitions of two-dimensional images; and
processing means capable of determining the height of each point of the object as corresponding to an extremum of a function obtained from the acquired bidimensional images.
According to an embodiment, the projector and/or the image sensor are of perspective type.
The foregoing and other features and advantages will be discussed in detail in the following non-limiting description of specific embodiments in connection with the accompanying drawings, among which:
For clarity, the same elements have been designated with the same reference numerals in the different drawings.
For clarity, the same elements have been designated with the same reference numerals in the various drawings and, further, the various drawings are not to scale. In the following description, unless otherwise indicated, terms “substantially”, “approximately”, and “in the order of” mean “to within 10%”. Further, only those elements which are useful to the understanding of the present description have been shown and will be described. In particular, the means for controlling the conveyor of the optical inspection system described hereafter are within the abilities of those skilled in the art and are not described.
System 10 enables to determine a three-dimensional image of electronic circuit Card. Each electronic circuit Card is placed on a conveyor 12, for example, a planar conveyor. Conveyor 12 is capable of displacing circuit Card along a direction X, for example, a horizontal direction. As an example, conveyor 12 may comprise an assembly of straps 13 and of rollers driven by a rotating electric motor 14. As a variation, conveyor 12 may comprise a linear motor displacing a carriage supporting electronic circuit Card.
System 10 comprises an image projection device P comprising at least one projector, a single projector P being shown in
System 10 further comprises an image acquisition device C comprising at least one digital camera, a single camera C being shown in
In the present embodiment, camera C and projector P are fixed and electronic circuit Card is displaced with respect to camera C and to projector P via conveyor 12. As a variation, electronic circuit Card is fixed and camera C and projector P are displaced with respect to electronic circuit Card by any adapted conveying device.
To simplify the following description, a single projector P and a single camera C are considered. Camera C is fixed with respect to projector P.
The dimensions of circuit Card, for example, corresponding to a card having a length and a width varying from 50 mm to 550 mm, are generally greater than the field of view of camera C so that circuit Card should be displaced with respect to projector P and to camera C in order for the entire surface area of circuit Card to be seen by camera C.
An image acquisition phase A1 is carried out between times t0 and t1. During phase A1, circuit Card is motionless with respect to projector P and to camera C. The three-dimensional image of the portion of circuit Card seen by camera C is determined from a plurality of images acquired by camera C during phase A1 while different images are projected onto circuit Card by projector P. Each projected image corresponds, for example, to fringes. The position of the projected fringes is shifted from one projected image to the other. A displacement phase D1 is carried out between times t1 and t2, where circuit Card is displaced by conveyor 12 until another portion of the electronic circuit can be seen by camera C. An image acquisition phase A2 is carried out between times t2 and t3 for the determination of a three-dimensional image of this other portion of circuit Card. A displacement phase D2 is carried out between times t3 and t4, and an image acquisition phase A3 is carried out between times t4 and t5. In the example illustrated in
A disadvantage of the previously-described three-dimensional image determination method is that the total duration necessary to determine the three-dimensional image of the entire circuit Card, which is equal to the sum of the durations of image acquisition phases A1, A2, A3 and of the directions of displacement phases D1, D2 of circuit Card, may be significant, particularly due to the time taken for the displacement of circuit Card during which no image acquisition is performed.
Further, during an image acquisition phase, the image projected by projector P onto circuit Card is modified between two acquisitions. Means for modifying the projected image should thus be provided, which may require using a projector P having a complex structure and/or adapting computer processing system 16.
Thus, an object of an embodiment is to overcome all or part of the disadvantages of methods of three-dimensional image determination by an optical inspection system.
Another object of an embodiment is to decrease the duration of an operation of determination of a three-dimensional image of the entire electronic circuit to be inspected.
Another object of an embodiment is to simplify the provision of the images projected by projector P.
Another object of an embodiment is to use projectors and/or cameras having a simple and low-cost optical system.
Another object of an embodiment is to provide a three-dimensional image determination system implying fast image processing operations, whatever the shape of the three-dimensional scene to be observed.
To achieve all or part of these and other objects, a system of optical inspection of electronic circuits is provided, wherein the electronic circuit to be inspected is no longer motionless during an image acquisition phase for the determination of a three-dimensional image but is displaced during a phase of image acquisition for the determination of a three-dimensional image.
Hereafter, an optical system having its main rays parallel in the object space is called telecentric optical system. The object space designates the scene (circuit Card) independently for the cameras and the projectors. An optical system which is not telecentric is called perspective optical system. According to an embodiment, at least one device from among projector P and camera C is of perspective type. This advantageously enables to decrease the bulk of the inspection system, given that image projection or acquisition devices of perspective type have a smaller bulk than analog devices of telecentric type. This further advantageously enables to decrease the cost of the inspection system, given that image projection or acquisition devices of perspective type have a lower cost than analog devices of telecentric type.
According to an embodiment, a relative displacement between circuit Card and the assembly comprising projector P and camera C is performed all along the three-dimensional image determination operation. For this purpose, circuit Card may be displaced by conveyor 12 during the image acquisition, projector P and camera C remaining fixed. As a variation, circuit Card may be fixed and the assembly comprising projector P and camera C is displaced during the image acquisition.
As an example, the duration between two successive image acquisitions is in the range from 10 ms to 250 ms. The duration between successive image acquisitions may be substantially constant to within 10%.
In the embodiment illustrated in
In the embodiment illustrated in
As an example, conveyor 12 is controlled by computer processing system 16 to control the displacement of circuit Card between two successive acquisitions. The acquired images are used to determine the three-dimensional image of the entire circuit Card. However, for the determination of the three-dimensional image of a portion only of circuit Card, only a few successively acquired images are used, preferably more than three images, for example, eight images.
According to an embodiment, the image projected by projector P onto circuit Card on acquisition of the images by camera C is identical for a plurality of successively-acquired images, preferably for all the successively-acquired images.
Call RREF(O, X, Y, Z) a reference frame linked to reference plane REF where direction X is the displacement direction of circuit Card, Y is a direction parallel to plane REF and perpendicular to direction X, and Z is a direction perpendicular to directions X and Y.
A three-dimensional image of circuit Card corresponds to a cloud of an integral number M of points Qi1, where i is an integer varying from 1 to M. As an example, M is greater than several millions.
The exponent of Q1 designates the position occupied by circuit Card relative to camera C and to projector P during the image acquisition. In the example illustrated in
1(hi) of the external surface of circuit Card is located in reference frame RREF by coordinates (xi, yi, hi). Coordinate hi corresponds to the height of point Q
1 relative to plane REF. A method of determining a three-dimensional image of circuit Card comprises determining height hi of each point Q
1.
Each point Q1 has a corresponding point Cq
1 in the image plane of camera C and a corresponding point Pq
1 in the image plane of projector P. A reference frame RC(OC, X′, Y′, Z′) associated with camera C is considered, where OC is the optical center of camera C, direction Z′ is parallel to the optical axis of camera C, and directions X′ and Y′ are perpendicular to each other and perpendicular to direction Z′. In reference frame RC, to simplify the following description, it can approximately be considered that point Cq
1 has coordinates (Cu
f1, Cv
f1, fC), where fC is the focal distance of camera C. A reference frame RP(OP, X″, Y″, Z″) associated with projector P is considered, where OP is the optical center of projector P, direction Z″ is parallel to the optical axis of projector P, and directions X″ and Y″ are perpendicular to each other and perpendicular to direction Z″. In reference frame RP, to simplify the following description, it can be approximately considered that point Pq
1 has coordinates (Pu
f1, Pv
f1, fP), where fP is the focal distance of projector P.
Generally, calling PP the projection matrix of projector P and PC the projection matrix of camera C, one has the following equation system (1) for each point Q1, noted in homogeneous coordinates:
Each point Q1 corresponds to the intersection of a line DC associated with camera C and of a line DP associated with projector P.
Each point Pq1 of the image projected by projector P is associated a phase φi(hi). Light intensity I1C(Cq
1(hi)), measured by the pixel at point Cq
1 of the image acquired by the camera and corresponding to point Q
1, follows relation (2) hereafter:
(Cq1(hi))=A(hi)+B(hi)cos φi(hi) (2)
where A(hi) is the light intensity of the background at point Q1 of the image, B(hi) shows the amplitude between the minimum and maximum intensities at point Q
1 of the projected image.
In the example illustrated in
For each projected image, a 2π/N phase shift is applied. As an example, grey levels G1, G2 of two projected images are illustrated in 1(hi)), measured by the pixel at point Cq
1 for the d-th image acquired by the camera corresponding to point Q
1, follows relation (3) hereafter:
(Cq1(hi)=A+B cos(φ1(hi)+dα) (3)
where d is an integer which varies from 0 to N−1 and α is equal to 2π/N.
Vector I1C(hi) is defined according to relation (4) hereafter:
It is a linear equation system. It can be demonstrated that phase φi(hi) is given by relation (5) hereafter:
In the example shown in
As an example, in the case where the following conditions are fulfilled:
the optical axes of projector P and of camera C are coplanar;
a row of the image projected by projector P is associated with a row of the image acquired by camera C, these rows being located in a plane parallel to direction X;
the projected images comprise straight fringes which extend, for example, perpendicularly to direction X and have a sinusoidally-varying amplitude;
lines DP are perpendicular to plane REF and lines DC form an angle θ with plane REF,
equation system (1) may be simplified according to the following equation system (6):
considering that point QREF1 of coordinates ((x
iREF1, y
iREF1, 0) is the point of reference plane REF associated with point Cq
1 of camera C.
In the image plane of projector P, abscissa Puf1 of point Pq
1 follows, for example, relation (7) hereafter:
=φαφi(hi)+b (7)
where a and b are real numbers, a being equal to p0/2π with p0 corresponding to the pitch of the sinusoidal fringes.
Based on relations (6) and (7), the following relation (8) is obtained:
γ(φ1(Q
REF1)−φ1(Q
1)) (8)
where γ is equal to p0/(2π tan θ) and φ1(QREF1) is equal to the phase at point Q
REF1 of reference plane REF, that is, to the phase in the absence of the circuit.
In the case where the previously-mentioned conditions are not fulfilled, calculations are more complex. However, a literal expression of height hi may be obtained.
As compared with the previous case, equation system (1) cannot be simplified to provide equation system (6). However, it corresponds to a linear equation system for height hi. It is thus possible to find a literal expression for height hi.
As an example, two positions of the circuit are shown in which corresponds to point Q
after displacement of the circuit is obtained by relation (9) hereafter:
(hi)=RtQ1(hi)+Tt (9)
where Rt is a rotation matrix and Tt is a translation matrix, these matrixes being representative of the displacement of the circuit from position “1” to position “t”.
Projector P projects the same image onto the circuit on acquisition of the N successive images. This image comprises fringes which extend, for example, perpendicularly to direction X and having a sinusoidally-varying amplitude. Since the circuit is displaced with respect to the projector, light intensity IdC(Cqd(hi)) reflected by point Q
d is not the same as light intensity IBC(Cq
(hi)) reflected by point Q
when d is different from s.
In the case where rotation matrix Rt corresponds to the identity matrix, that is, in the case of a translation with no rotation, vector IiC(hi) is then defined by relation (10) hereafter:
Since projector P is telecentric, the phase difference between intensity IdC(Cqd(hi)) reflected by point Q
d and intensity Id+1C(Cq
d+1(hi)) reflected by point Q
d+1 is the same whatever the considered point in the circuit. The relative displacement speed of the circuit with respect to the assembly comprising camera C and projector P may thus be selected so that the phase difference between intensities IdC(Cq
d(hi)) and Id+1C(Cq
d+1(hi)) corresponds to a 2π/N phase difference. In the image plane of projector P, abscissa Pu
of point Pq
1 thus follows previously-described relation (7).
Further, since camera C is also of telecentric type, the displacement of each point Cqd of the camera associated with point Q
d is the same whatever point Q
d of the circuit. In particular, this displacement is independent from height hi.
The following relation (11) is thus obtained:
The expression of hi according to relation (8) can thus be used.
In the three-dimensional image determination methods illustrated in
The inventors have shown that, in this case, it is not possible to obtain an analytic expression of height hi.
The inventors have shown that an analytic expression of height hi cannot be obtained, particularly when the projector is of perspective type. Indeed, conversely to the example previously described in relation with d(hi)) reflected by point Q
d and intensity Id+1C(Cq
d+1(hi)) reflected by point Q
d+1 is different according to the considered point. Indeed, the phase difference necessarily varies according to height hi. It is thus not possible to select the relative displacement speed of the circuit with respect to the assembly comprising camera C and projector P so that the phase difference between intensity IdC(Cq
d(hi)) reflected by point Q
d and intensity Id+1C(Cq
d+1(hi)) reflected by point Q
d+1 corresponds to a 2π/N phase difference for all points of the external surface.
Thereby, previous relation (3) is no longer valid but should be replaced with relation (12) hereafter:
(Cq1(hi))=A+B cos(φi(hi)+δφid(hi)) (12)
where δφid(hi) is a function of height hi and of position d of point Qd.
Further, the inventors have shown that an analytic expression of height hi cannot be obtained when camera C is of perspective type. Indeed, when a relative displacement of circuit Card with respect to the assembly comprising camera C and projector P is performed between the acquisition of two images, the displacement of the pixel at point Cqd of the camera associated with point Q
d is not the same for all points Q
d of the circuit and, in particular, depends on height hi of point Q
d.
Thereby, as soon as camera C or projector P is of perspective type and a relative displacement of circuit Card with respect to camera C and to projector P is performed on acquisition of the images, the previously-described three-dimensional image determination algorithms cannot be applied.
The inventors have however determined that the three-dimensional image of the circuit could be obtained by determining a cost function Cost which particularly depends on height hi. The desired height hi then is that for which cost function Cost reaches a minimum value according to the following relation (13):
=argminhCosti(h) (13)
The cost function may be based on the comparison between signals obtained from the image acquired by the camera and the image displayed by the projector, the images acquired by more than one camera and the image displayed by the projector, or the images acquired by at least two cameras or more. The signal may correspond to a pseudo-phase or to the light intensity.
According to an embodiment, the cost function is determined by comparing the phase of the projected image with at least one phase estimate determined based on the image acquired by a camera or by comparing phase estimates determined based on the images acquired by at least two cameras. Expression (13) then amounts to minimizing a phase difference.
Previously-described relation (11) becomes relation (14) hereafter, by using relation (12):
An estimated vector {circumflex over (X)}iC (hi), having coordinates ({circumflex over (γ)}iC(hi),{circumflex over (β)}iC(hi))T is determined, which corresponds to an estimate of vector X1C(hi) and is provided by the following relation (15):
(hi)=(Δi(hi))+I1C(hi) (15)
Variables ĈiC(hi) and ŝiC(hi) given by the following relation (16) are further used:
In the embodiment illustrated in
According to an embodiment, cost function Cost2 for system 30 is determined according to the following relation (18):
According to another embodiment, optical inspection system 30 comprises G cameras C1, C2, . . . , CG, where G is an integer greater than or equal to 3 and cost function Cost3 is given by the following relation (19):
According to another embodiment, optical inspection system 30 comprises G cameras C1, C2, . . . , CG, where G is an integer greater than or equal to 3 and cost function Cost4 is given by the following relation (20):
According to an embodiment where inspection system 30 comprises at least two cameras C1, C2, the cost function is determined by directly comparing the images provided by at least two different cameras. Expression (13) then amounts to minimizing a light intensity difference.
As an example, cost function Cost5 is given by the following relation (21):
(hi)=∥IiC
According to another embodiment, optical inspection system 30 comprises G cameras C1, C2, . . . , CG and cost function Cost6 is given by the following relation (22):
The previously-described cost functions may be implemented in the case previously described in relation with
Specific embodiments have been described. Various alterations and modifications will occur to those skilled in the art. In particular, although in the embodiments, the projector is arranged vertically in line with the electronic circuit and the cameras are arranged on either side of the projector, cameras may be arranged vertically in line with the circuit to be inspected and projectors may be arranged on either side of the camera. Further, although an optical inspection system has been described for the inspection of electronic circuits, it should be clear that the optical inspection system may be used for the inspection of other objects.
Number | Date | Country | Kind |
---|---|---|---|
1350813 | Jan 2013 | FR | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/FR2014/050168 | 1/30/2014 | WO | 00 |