Height measurement method and height measurement device
11644304 ยท 2023-05-09
Assignee
Inventors
Cpc classification
H04N23/55
ELECTRICITY
H04N23/66
ELECTRICITY
H04N23/673
ELECTRICITY
G02B7/38
PHYSICS
G02B27/0075
PHYSICS
International classification
G02B27/00
PHYSICS
H04N23/55
ELECTRICITY
Abstract
A height measurement device includes: a lens system; a lens controller to output a drive signal to the lens system; a continuous illuminator to continuously illuminate a workpiece; an image detector to detect an image of the workpiece; an image calculation unit to calculate an EDOF image on a basis of a detected image; a focal depth adjustment unit to cause an extended focal depth of the EDOF image to be increased or decreased by increasing or decreasing an amplitude of the drive signal; a focus determination unit to determine a focus state of a portion of interest of the workpiece included in the EDOF image; and a height measurement unit to measure an upper limit or a lower limit of the extended focal depth, the upper limit or the lower limit being based on a timing at which the focus state of the portion of interest has changed.
Claims
1. A height measurement method by using an image detection device, the image detection device comprising: a lens system of a liquid resonant type whose focus position is varied in response to a drive signal to be inputted; a lens controller configured to output the drive signal to the lens system; a continuous illuminator configured to continuously illuminate a workpiece; and an image detector configured to detect an image of the workpiece through the lens system, the height measurement method comprising: calculating an EDOF image on a basis of a detected image that is detected by the image detector; causing an extended focal depth of the EDOF image to be increased or decreased by increasing or decreasing an amplitude of the drive signal; determining a focus state of a portion of interest of the workpiece included in the EDOF image; and measuring, as a height of the portion of interest, an upper limit or a lower limit of the extended focal depth, the upper limit or the lower limit being based on a timing at which the focus state of the portion of interest has changed in association with the increase or the decrease of the extended focal depth.
2. A height measurement device comprising: a lens system of a liquid resonant type whose focus position is varied in response to a drive signal to be inputted; a lens controller configured to output the drive signal to the lens system; a continuous illuminator configured to continuously illuminate a workpiece; an image detector configured to detect an image of the workpiece through the lens system; an image calculation unit configured to calculate an EDOF image on a basis of a detected image that is detected by the image detector; a focal depth adjustment unit configured to cause an extended focal depth of the EDOF image to be increased or decreased by increasing or decreasing an amplitude of the drive signal; a focus determination unit configured to determine a focus state of a portion of interest of the workpiece included in the EDOF image; and a height measurement unit configured to measure, as a height of the portion of interest, an upper limit or a lower limit of the extended focal depth, the upper limit or the lower limit being based on a timing at which the focus state of the portion of interest has changed in association with the increase or the decrease of the extended focal depth.
Description
BRIEF DESCRIPTION OF DRAWING(S)
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DESCRIPTION OF EMBODIMENT(S)
(14) An exemplary embodiment of the invention will be described below with reference to the attached drawings.
(15)
(16) The image detection device 1 is configured to detect an image of a surface of a workpiece 9 placed in an imaging area while periodically varying a focal length. The image detection device 1 includes an objective lens 2, a lens system 3 and an image detector 4 which are disposed on a common optical axis A intersecting with the surface of the workpiece 9.
(17) The image detection device 1 further includes: a continuous illuminator 5 configured to continuously illuminate the surface of the workpiece 9; a lens controller 6 configured to control an operation of the lens system 3 and an operation of the continuous illuminator 5; and a controlling PC 7 configured to operate the lens controller 6.
(18) An existing convex lens is used as the objective lens 2.
(19) The lens system 3 includes a liquid resonant variable focal length lens, and is configured to change a refractive index thereof in response to a drive signal Cf inputted from the lens controller 6. The drive signal Cf is a sinusoidal alternating-current (AC) signal of a frequency capable of generating a standing wave in the lens system 3.
(20) A focal length Df to a focus position Pf of the image detection device 1 can be changed as desired based on a focal length of the objective lens 2 by changing the refractive index of the lens system 3. In the image detection device 1, the drive signal Cf is a sinusoidal AC signal, and the focus position Pf and the focal length Df also sinusoidally vary periodically.
(21) The image detector 4 includes an existing charge coupled device (CCD) image sensor, any other type of a camera or the like. The image detector 4 is configured to receive an image of the workpiece 9 from the lens system 3 and output the image to the controlling PC 7 in a form of a detected image Im of a predetermined format.
(22) The continuous illuminator 5 includes a light-emitting element such as a light emitting diode (LED). The continuous illuminator 5 is configured to continuously illuminate the surface of the workpiece 9 under control of the lens controller 6.
(23) The driving of the lens system 3, the illumination of the continuous illuminator 5 and the image-detection of the image detector 4 of the image detection device 1 are respectively controlled according to the drive signal Cf, an illumination signal Ci and an image-detection signal Cc outputted from the lens controller 6. The controlling PC 7 is connected to the lens controller 6 in order to, for instance, configure settings of the lens controller 6 that controls the driving of the lens system 3, the illumination of the continuous illuminator 5 and the image-detection of the image detector 4.
(24)
(25) The lens controller 6 is a dedicated unit including hardware that controls the operation of the lens system 3 and the operation of the continuous illuminator 5. The lens controller 6 includes: a drive controller 61 configured to output the drive signal Cf to the lens system 3; an illumination controller 62 configured to output the illumination signal Ci to the continuous illuminator 5; and an image-detection controller 63 configured to output the image-detection signal Cc to the image detector 4.
(26) The drive controller 61 outputs the drive signal Cf to the lens system 3 and detects, when the lens system 3 oscillates in response to the drive signal Cf, an oscillation state Vf of the lens system 3 from an effective power or a drive current applied to the lens system 3. Thereafter, the drive controller 61 adjusts a frequency of the drive signal Cf by referring to the oscillation state Vf of the lens system 3, thereby being able to lock the frequency of the lens system 3 to a current resonant frequency of the lens system 3.
(27) The illumination controller 62 outputs the illumination signal Ci to the continuous illuminator 5 and controls on/off of the continuous illumination performed on the workpiece 9 in the imaging area.
(28) The image-detection controller 63 outputs the image-detection signal Cc to the image detector 4 and controls on/off of the image-detection. It should be noted that the detected image Im corresponding to one frame detected by the image detector 4 during a period from turning on of the image-detection to turning off of the image-detection is sent to and processed in the controlling PC 7.
(29) In the exemplary embodiment, the image-detection signal Cc is continued for a predetermined period of time, during which the workpiece 9 is continuously illuminated and the focus position Pf is periodically varied in response to the drive signal Cf.
(30) The detected image Im detected by the image detector 4 thus forms a focal sweep image over an entire variation range of the focus position Pf, i.e., over an entire focus range of the objective lens 2 and the lens system 3.
(31) The controlling PC 7 includes: a lens operation unit 71 configured to perform various setting operations on the lens controller 6; an image processor 72 configured to capture the detected image Im from the image detector 4 and process the detected image Im; and an operation interface 73 configured to receive a user's operation performed on the image detection device 1.
(32) A general-purpose personal computer is used as the controlling PC 7. A desired function of the controlling PC 7 is achieved by running dedicated software on the controlling PC 7. In other words, a function of the lens operation unit 71 that controls the lens controller 6 is achieved by running lens operation software. In addition, a function of the image processor 72 that processes the detected image Im obtained from the image detector 4 is achieved by running image processing software. The lens operation software and the image processing software can be operated by the user via the operation interface 73 including a display screen and an input device of the controlling PC 7.
(33) In the exemplary embodiment, the image processor 72 executes a height measurement procedure of the invention, whereby the image detection device 1 serves as a height measurement device of the invention.
(34) To that end, the image processor 72 includes an image memory 721, an image calculation unit 722, a focal depth adjustment unit 723, a focus determination unit 724 and a height measurement unit 725.
(35) The image memory 721 is allocated to a memory area of the controlling PC 7, and is able to store image data including the detected image Im from the image detector 4 or various pieces of image data generated by the image processor 72.
(36) The image calculation unit 722, the focal depth adjustment unit 723, the focus determination unit 724 and the height measurement unit 725 are achieved by software to be executed in the controlling PC 7, and are able to execute the height measurement procedure according to the invention.
(37) The image calculation unit 722 calculates the EDOF image on a basis of the detected image Im that is detected by image detector 4 and stored in the image memory 721.
(38) The detected image Im is detected by the image detector 4 in a state in which the workpiece 9 is continuously illuminated by the continuous illuminator 5 and the focus position Pf is periodically varied in response to the drive signal Cf. Accordingly, a focal sweep image is obtained in which a large number of images, corresponding to the respective focus positions Pf to be swept, are superimposed on each other.
(39) The image calculation unit 722 calculates the EDOF image by performing deconvolution using PSF on the focal sweep image obtained by the image detector 4. The extended focal depth (the extended field depth) of the EDOF image is extended to several times to several tens of times the focal depth of the original detected image Im.
(40) The focal depth adjustment unit 723 increases or decreases the amplitude of the drive signal Cf to be sent from the lens controller 6 to the lens system 3, thereby increasing or decreasing the extended focal depth of the EDOF image to be calculated by the image calculation unit 722.
(41) In
(42) In
(43) In
(44) In this manner, the extended focal depths (ED1 and ED2) can be increased or decreased by increasing or decreasing the amplitude of the drive signal Cf to be sent from the lens controller 6 to the lens system 3. The extended focal depths ED1 and ED2 can cause a clear increase or decrease (a difference between the upper limit Pt1 and upper limit Pt2 and a difference between the lower limit Pb1 and the lower limit Pb2) according to the extension magnification.
(45) The focus determination unit 724 determines the focus state of the portion of interest of the workpiece 9 included in the EDOF image calculated by the image calculation unit 722. The portion of interest has been specified in advance on the surface of the workpiece 9 by the user.
(46) For the determination of the focus state, an existing determination method that refers to a contrast or the like can be used.
(47) The portion of interest of the workpiece 9 is in the in-focus state when the portion of interest is inside the extended focal depth (ED1 or ED2), and is in an out-of-focus state when the portion of interest is outside the extended focal depth (ED1 or ED2).
(48) Therefore, if the portion of interest of the workpiece 9 is within the variation range of the extended focal depth (between the upper limit Pt1 and the upper limit Pt2 or between the lower limit Pb1 and the lower limit Pb2), the focus state of the portion of interest changes in association with the increase or the decrease of the extended focal depth.
(49) The height measurement unit 725 measures, as a height of the portion of interest, the upper limit or the lower limit of the extended focal depth. The upper limit or the lower limit of the extended focal depth is based on a timing at which the focus state of the portion of interest has changed in association with the increase or the decrease of the extended focal depth.
(50) That is, the height measurement unit 725 controls the focal depth adjustment unit 723 to increase or decrease the amplitude of the drive signal Cf, thereby causing, in the EDOF image calculated by the image calculation unit 722, a clear increase or decrease in the extended focal depth (a difference between the upper limit Pt1 and the upper limit Pt2 and a difference between the lower limit Pb1 and the lower limit Pb2) according to an extension magnification.
(51) During such an increase or decrease of the extended focal depth, the height measurement unit 725 refers to the focus determination performed by the focus determination unit 724. The height measurement unit 725 also sets, as the height of the portion of interest, the upper limit or the lower limit of the extended focal depth. The upper limit or the lower limit of the extended focal depth is based on the timing at which the portion of interest has changed (a timing at which the focus state has changed from the out-of-focus state to the in-focus state, or a timing at which the focus state has changed from the in-focus state to the out-of-focus state). Further, the height measurement unit 725 displays the height to the user via the operation interface 73.
(52) In this exemplary embodiment, the height measurement is performed in the following procedure.
(53) In
(54) In
(55) In
(56) In the height measurement according to the exemplary embodiment, first, the drive signal Cf is minimized (Step S3 in
(57) Here, the height measurement unit 725 determines a change in the focus state of the portion of interest (Step S7). If the focus state has not changed from the last time, the height measurement unit 725 increases the amplitude of the drive signal Cf (Step S8), and Steps from S4 to S6 are repeated.
(58) In
(59) As the drive signal Cf is increased to gradually increase an extended focal depth EDi from the extended focal depth ED1, the portion of interest TP comes inside the extended focal depth EDi as the upper limit or the lower limit of the current extended focal depth EDi passes the portion of interest TP. The portion of interest TP is thereby determined to be in the in-focus state by the focus determination unit 724.
(60) As a result, the portion of interest TP changes from the previous out-of-focus state to the in-focus state.
(61) When the height measurement unit 725 detects the change in the focus state of the portion of interest TP, the height measurement unit 725 measures the height of the portion of interest TP on the basis of the upper limit or the lower limit of the extended focal depth EDi.
(62) First, the height measurement unit 725 refers to the setting of the calculation of the EDOF image performed by the image calculation unit 722 to detect the upper limit and the lower limit of the extended focal depth EDi (Step S9 in
(63) In
(64)
(65) It should be noted that whether the height of the portion of interest TP is at the upper limit Pti or the lower limit Pbi of the extended focal depth EDi can be decided in advance on a basis of an approximate positional relationship between the portion of interest TP of the workpiece 9 and the extended focal depth. For example, by identifying whether the portion of interest TP is present above or below an unextended focal depth Do of a detected image Im which is the image prior to being made into the EDOF image, it is possible to decide whether the portion of interest TP is on an upper limit Pti side or a lower limit Pbi side of the extended focal depth EDi. Alternatively, the height of the portion of interest can be determined by performing the height measurement operation described above (Steps S3 to S10 in
(66) As described in the exemplary embodiment, it is possible to measure the height of the portion of interest TP of the workpiece 9 by using the lens system 3 which is a liquid resonant variable focal length lens and the continuous illumination performed by the continuous illuminator 5.
(67) As described above, the image of the workpiece 9 is detected by the image detector 4 through the lens system 3 in the invention. Since the continuous illuminator 5 continuously illuminates the workpiece 9, the image Im detected by the image detector 4 is a focal sweep image over an entire focus range of the lens system 3. In this case, the focus range of the lens system 3 is determined by the amplitude of the drive signal Cf (drive current value) from the lens controller 6.
(68) The focal sweep image detected by the image detector 4 is made into the EDOF image by performing a calculation process such as deconvolution using PSF. The extended focal depth EDi (extended field depth) of the EDOF image is extended to several times to several tens of times a focal depth Do of an original detected image Im. Accordingly, if the amplitude of the drive signal Cf of the lens system 3 is increased or decreased to increase or decrease the focal depth Do of the original detected image Im, the extended focal depth EDi shows a clear increase or decrease according to an extension magnification.
(69) If the portion of interest TP of the workpiece 9 is present within such a variation range of the extended focal depth EDi, the height of the portion of interest TP can be measured on a basis of the in-focus state of the portion of interest TP.
(70) For example, if the portion of interest TP is present outside the extended focal depth EDi in a state in which the drive signal Cf is reduced to decrease the extended focal depth EDi, the portion of interest TP is not in an in-focus state. With a gradual increase in the extended focal depth EDi by increasing the drive signal Cf, the portion of interest TP comes inside the extended focal depth EDi and turns into the in-focus state. Such a change in the focus state of the portion of interest TP occurs when the upper limit Pti or the lower limit Pbi of the extended focal depth EDi has exceeded the portion of interest TP. Thus, the height of the portion of interest TP can be measured on a basis of the upper limit Pti or the lower limit Pbi of the extended focal depth EDi. The upper limit Pti or the lower limit Pbi is based on the timing at which the focus state has changed.
(71) It should be understood that the scope of the invention is not limited to the above-described exemplary embodiment(s) but includes modifications and improvements compatible with the invention.
(72) In the exemplary embodiment of
(73) In contrast, as shown in
(74) In other words, the height may be measured in a similar manner upon decreasing the extended focal depth EDi from the increased state thereof, by determining that the in-focus state turns into the state that is not in focus.
(75) It should be noted that whether the height of the portion of interest TP is at the upper limit Pti or the lower limit Pbi of the extended focal depth EDi can be decided in advance on a basis of an approximate positional relationship between the portion of interest TP of the workpiece 9 and the extended focal depth EDi. For example, by identifying whether the portion of interest TP is present above or below an unextended focal depth Do of the detected image which is the image prior to being made into the EDOF image, it is possible to decide whether the portion of interest TP is on an upper limit Pti side or a lower limit Pbi side of the extended focal depth EDi. Alternatively, the height of the portion of interest TP can be determined by performing the height measurement operation described above two or more times by altering a positional relationship between the workpiece 9 and the lens system 3.
(76) As described above, a height measurement method and a height measurement device, which are capable of measuring a height of a workpiece 9 using a liquid resonant variable focal length lens 3 and a continuous illumination, can be provided in the invention.