1. Field of the Invention
The present invention relates to a measurement apparatus, a measurement method, and a method of manufacturing an article.
2. Description of the Related Art
An image measurement apparatus is known as a measurement apparatus which measures the shape (dimension) of a target object. Such a measurement apparatus obtains a target object image, detects edges (positions thereof) at sub pixel precision by image processing, and obtains the distance between the edges, thereby measuring the shape of the target object.
The measurement apparatus generally includes an illumination unit which illuminates the target object, and an image obtaining unit which includes an imaging optical system and a light detector (image sensor) and obtains the target object image. In the illumination unit, transmitting illumination which illuminates the target object from its back side and reflecting illumination which illuminates the target object from its front side are used for the imaging optical system. Reflecting illumination includes coaxial epi-illumination which vertically illuminates the target object from above and ring illumination which illuminates the target object in a ring shape.
It is conventionally known that the shape of the target object can be measured at high precision if transmitting illumination is used as an illumination method of illuminating the target object in the measurement apparatus, whereas the shape of the target object cannot be measured at high precision if reflecting illumination is used. This is because a large variation occurs in the intensity (intensity distribution) of the image and the detection error of the edge by the image processing increases depending on the textures (processing marks and roughness) on a target object surface. However, reflecting illumination needs to be used to illuminate the unevenness, the non-through hole, and the like of the target object because transmitting illumination cannot illuminate them. Therefore, it is difficult to measure the shape of the target object at high precision.
To solve this, Japanese Patent Laid-Open Nos. 2012-132910 and 2012-198208 propose techniques each concerning a measurement apparatus which measures the shape of such a target object. Japanese Patent Laid-Open No. 2012-132910 proposes the measurement apparatus employing, for example, structured illumination which illuminates the target object in a stripe shape so as to cross the edge of the target object. On the other hand, Japanese Patent Laid-Open No. 2012-198208 proposes a technique of determining a correction coefficient by comparing the positions between the edge detected using transmitting illumination and the edge detected using epi-illumination, and correcting the edge positions detected using epi-illumination based on the determined correction coefficient.
In Japanese Patent Laid-Open No. 2012-132910, however, since the edge can only be detected in an illumination region having a narrow stripe, a plurality of images need to be obtained by changing a stripe position to detect the edges in a broad range, requiring much time for measurement. Further, it is difficult to detect the edge of the target object at high precision because a large variation in the intensity of the image occurs depending on the texture on an in-focus surface.
Furthermore, in Japanese Patent Laid-Open No. 2012-198208, the correction coefficient needs to be changed depending on the property (the material, the color, or the like) and the state (the processing mark, the surface roughness, the thickness, or the like of the target object) of the target object, imposing an overburden on a user. In addition, much time is required for an operation of determining the correction coefficient.
The present invention provides a measurement apparatus advantageous in measuring the shape of a target object.
According to one aspect of the present invention, there is provided a measurement apparatus which measures a shape of a target object including two surface regions distinguished by an edge as a boundary and having different heights, the apparatus including an illumination system configured to illuminate the target object, an image capturing unit configured to capture an image of the target object formed by light reflected by the target object, and a processing unit configured to perform processing of obtaining the shape of the target object, wherein the processing unit controls the illumination system to set a first state in which, out of the two surface regions, one surface region is illuminated, whereas other surface region is not or the other surface region is illuminated to have a smaller illuminance than an illuminance on the one surface region, and obtains a position of the edge based on an image signal of a first image captured by the image capturing unit in the first state.
Further aspects of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. Note that the same reference numerals denote the same members throughout the drawings, and a repetitive description thereof will not be given.
The illumination system 110 includes a light source 111, a spatial light modulator 112, and a lens 113. The light source 111 can use, for example, an LED, a lamp, or a fluorescent lamp. The spatial light modulator 112 includes, for example, a liquid crystal, LCOS (Liquid Crystal On Silicon), and a DMD (Digital Micromirror Device). The spatial light modulator 112 is controlled by a control unit 132 and spatially adjusts the intensity of light supplied from the light source 111, that is, the intensity of light which illuminates the target object 101. The lens 113 collimates light whose intensity is spatially adjusted by the spatial light modulator 112.
The image obtaining unit 120 includes a light detector 121 which receives light reflected or scattered by the target object 101 and an imaging optical system 122 which forms the image of the target object 101 in the light detector 121. The light detector 121 includes, for example, a CCD sensor and a CMOS sensor, and functions as an image capturing unit which generates an image by capturing the image of the target object 101 formed by light reflected or scattered by the target object 101. The imaging optical system 122 includes a first lens group 122a and a second lens group 122b. Note that all optical elements of the first lens group 122a and the second lens group 122b need not be lenses but some mirrors may be included, or all optical elements may be replaced by the mirrors of a mirror group. A half mirror 123 is arranged between the first lens group 122a and the second lens group 122b.
Light from the illumination system 110 is partially reflected by the half mirror 123 and condensed by the first lens group 122a, thereby illuminating the target object 101. Light reflected or scattered by the target object 101 enters the imaging optical system 122, transmits through the half mirror 123, and forms an image in the light detector 121 (that is, forms the image of the target object 101).
The target object 101 is held (placed) on a stage 134. The stage 134 is configured to be drivable by an actuator 133 in a direction parallel to an optical axis 124 of the imaging optical system 122. This makes it possible to adjust a focus on the surface of the target object 101. The stage 134 may be configured to be drivable not only in the direction parallel to the optical axis 124 but also in a direction (an X-Y direction) perpendicular to the optical axis 124 in order to measure the target object 101 which is larger than the field of view of the imaging optical system 122.
The image of the target object 101 captured (generated) by the light detector 121 is transferred to the control unit 132. The control unit 132 detects edges (positions thereof) from the image of the target object 101 by image processing, and obtains the shape (shape information) such as the dimension or the geometrical tolerance of the target object 101. In this embodiment, the control unit 132 functions as a processing unit which performs processing of obtaining the shape of the target object 101. The control unit 132 includes a display device such as a liquid crystal monitor or a cathode ray tube and displays the shape (shape information) of the target object 101 on the display device. The control unit 132 also includes a storage device (storage unit) such as a hard disk or an SSD, and can store the shape data of the target object 101 in the storage device and read out the shape data of the target object 101 stored in the storage device.
Measurement processing of the shape of the target object 101 in the measurement apparatus 10 will be described with reference to
In this embodiment, the target object 101 includes two types of surface regions distinguished by the edge as a boundary and having different heights. More specifically, the target object 101 includes surfaces 101a and 101b of different heights. Here, the dimension between the edges, that is, the dimension between a side surface 101c and a side surface 101d is measured as the shape of the target object 101. Light is blocked in this portion even if it is illuminated from below the target object 101. Therefore, transmitting illumination cannot be used and it is necessary to illuminate the target object 101 from above.
In step S101, the control unit 132 controls the illumination system 110 to set the first illumination state (second state) in which the surfaces 101a and 101b of the target object 101 are illuminated. More specifically, the control unit 132 controls (sets) the spatial light modulator 112 to make light transmit through all pixels 112a which form the spatial light modulator 112, as shown in
In step S102, the control unit 132 vertically drives the stage 134 via the actuator 133 and performs an autofocus operation of adjusting the focus on the target object 101. Any technique known in the art can be applied to the autofocus operation. When the dimension between the side surface 101c and the side surface 101d of the target object 101 is measured, a focus is adjusted, as shown in
In step S103, the light detector 121 obtains a first image 140 (second image) of the target object 101 in the first illumination state.
Referring to
The intensity of the image decreases in the position corresponding to the edge of the target object 101 indicated by the solid line in
In step S104, the control unit 132 detects the edges (at least one edge) of the target object 101 based on the first image obtained in step S103. An algorithm such as the Canny method by which sub pixel precision is obtained is used to detect the edge of the target object 101. In a general edge detection algorithm, the edge position is obtained by smoothing the image using a Gaussian filter or the like and then performing a differential operation. The detection precision of the edge position depends on the contrast in the edges and the noise (intensity variation) of the image around the edge. If, for example, the target object 101 is not chamfered, the intensity is not reduced so much on the edge of the target object 101, and thus the high contrast is not obtained. The large intensity variation in each region 141b of the first image 140 also becomes a factor of reducing the edge detection precision. Therefore, the edge position of the target object 101 cannot be obtained from the first image obtained in step S103 at high precision.
In step S105, the control unit 132 determines which of two types of surface regions (the surfaces 101a and 101b) of the target object 101 distinguished (divided) by the edge detected in step S104 as the boundary the focus is adjusted (that is, performs focus determination). In this embodiment, in the first image 140 shown in
In step S106, the control unit 132 controls the illumination system 110 to set the second illumination state (first state) in which the surfaces 101b of the target object 101 are illuminated, whereas the surface 101a is not. More specifically, the control unit 132 controls (sets) the spatial light modulator 112 to prevent light from transmitting through the pixel, out of the pixels 112a which form the spatial light modulator 112, in the region corresponding to the surface 101a of the target object 101, as shown in
In step S107, the light detector 121 obtains a second image 150 (first image) of the target object 101 in the second illumination state.
Referring to
In step S108, the control unit 132 detects the edges (at least one edge) of the target object 101 based on the second image obtained in step S107. As described above, the detection precision of the edge position depends on the contrast in the edges and the noise (intensity variation) of the image around the edge. In the second image 150 shown in
In step S109, the control unit 132 calculates the shape of the target object 101 based on the edge positions of the target object 101 detected in step S108. In this embodiment, the dimension between the side surface 101c and the side surface 101d of the target object 101 is calculated based on the positions of the edges corresponding to the boundaries between the region 151a and the regions 151b.
In step S110, the control unit 132 determines whether to measure the shape of another part of the target object 101. This determination may be made by displaying such a message on the display device to allow user's selection or made by a preset teaching program. If the shape of the other part of the target object 101 is measured, the process advances to step S101. If the shape of the other part of the target object 101 is not measured, the measurement processing ends.
As described above, in this embodiment, the image of the target object 101 is obtained while two types of surface regions of the target object 101 are illuminated and based on the obtained image, the image of the target object 101 is obtained while, out of two types of surface regions of the target object 101, one surface region is illuminated, whereas the other is not. Then, the edge positions of the target object 101 are detected based on the image of the target object 101 while, out of two types of surface regions of the target object 101, one surface region is illuminated, whereas the other is not, thereby obtaining the shape of the target object 101. It is therefore possible to detect the edge positions in a broad region, and measure the shape of the target object 101 in a short time and at high precision only by changing the illumination state of the target object 101 to obtain two images.
Furthermore, in this embodiment, the surfaces 101b of the target object 101 are illuminated selectively by adjusting the focus on the surface 101a of the target object 101. It is also possible, however, to illuminate the surface 101a of the target object 101 selectively by adjusting the focus on the surfaces 101b of the target object 101. Note that, in practice, it is more advantageous in illuminating the surfaces 101b of the target object 101 selectively by adjusting the focus on the surface 101a of the target object 101. The reason for this will be described with reference to
Therefore, it is preferable, as shown in
As described above, the measurement apparatus 10 according to this embodiment can measure, in a short time and at high precision, even the part of the target object 101 which cannot be measured using transmitting illumination.
In step S201, a control unit 132 performs alignment of the target object 101 on a measurement apparatus 10. Any technique known in the art can be applied to the alignment of the target object 101. The alignment of the target object 101 can be performed for the measurement apparatus 10 by, for example, holding the target object 101 using a jig and abutting the jig against an abutting portion (not shown) provided on a stage 134. The alignment may also be performed by illuminating (that is, using transmitting illumination) the target object 101 from below to obtain an image, and calculating the contour of the target object 101 to obtain the relative position and angle between the measurement apparatus 10 and the target object 101. In this case, a focus is adjusted in advance by autofocus or the like to improve the contrast of the contour of the target object 101.
In step S202, the control unit 132 reads out the shape data of the target object 101 stored in a storage device such as a hard disk or an SSD. Note that the shape data is data including the positional information of the edge of the target object 101 and includes data representing, for example, a designed value of the shape of the target object 101. The shape data may also be data representing edge positions obtained from the image of the target object 101 obtained by a light detector 121 while, out of two types of surface regions of the target object 101, one is illuminated and the other is not.
In step S203, the control unit 132 calculates the edge positions of the target object 101 based on the shape data of the target object 101 read out in step S202. More specifically, the edge position of the target object 101 relative to the measurement apparatus 10 is calculated by combining information on the alignment of the target object 101 performed in step S201 and the shape data of the target object 101 read out in step S202.
In step S204, the control unit 132 vertically drives the stage 134 via an actuator 133 and performs an autofocus operation of adjusting the focus on the target object 101 based on the edge position of the target object 101 calculated in step S203.
In step S205, the control unit 132 determines which of two types of surface regions (surfaces 101a and 101b) of the target object 101 distinguished (divided) by the edge calculated in step S203 as the boundary the focus is adjusted (that is, performs focus determination).
In step S206, the control unit 132 controls an illumination system 110 to set a selective illumination state (first state) in which the surfaces 101b of the target object 101 are illuminated, whereas the surface 101a is not. More specifically, the control unit 132 controls (sets) the spatial light modulator 112 to prevent light from transmitting through a pixel, out of pixels 112a which form a spatial light modulator 112, in the region corresponding to the surface 101a of the target object 101, as shown in
In step S207, the light detector 121 obtains the image (first image) of the target object 101 in the selective illumination state. Each surface 101b of the target object 101 is positioned farther away from the focus plane 125 than the surface 101a and out of focus, blurring the image and smoothing the influence of textures.
In step S208, the control unit 132 detects the edges (at least one edge) of the target object 101 based on the image obtained in step S207. As described above, the detection precision of the edge position depends on the contrast in the edges and the noise (intensity variation) of the image around the edge. As in the first embodiment, in the image obtained in step S207, while the intensity is almost zero in the region in focus, the value of the intensity is large in the region out of focus. Therefore, the high contrast in the edges is obtained in the image obtained in step S207. Furthermore, the image obtained in step S207 has the intensity of almost zero and its variation is small in the region corresponding to the surface 101a of the target object 101, and thus the edge position of the target object 101 can be obtained at high precision. Therefore, the edge position is obtained, at high precision, from the image obtained in the selective illumination state.
In step S209, the control unit 132 calculates the shape of the target object 101 based on the edge positions of the target object 101 detected in step S208. In this embodiment, the dimension between a side surface 101c and a side surface 101d of the target object 101 is calculated based on the positions of the edges corresponding to the boundaries between a region 151a and regions 151b.
In step S210, the control unit 132 determines whether to measure the shape of another part of the target object 101. If the shape of the other part of the target object 101 is measured, the process advances to step S203. If the shape of the other part of the target object 101 is not measured, the measurement processing ends.
If the target object 101 is measured in a plurality of focus positions, two images need to be obtained (the images need to be obtained in the first illumination state and the second illumination state, respectively) in the respective focus positions in the first embodiment. On the other hand, in this embodiment, it is only necessary to obtain one image in each focus position (it is only necessary to obtain the image in the selective illumination state) by using the known shape data of the target object 101. Therefore, the measurement processing in this embodiment is preferable when the target object 101 has a complex shape and measurement needs to be performed in a number of focus positions.
As described above, the measurement apparatus 10 according to this embodiment can measure even the part of the target object 101 which cannot be measured using transmitting illumination in a short time and at high precision.
The measurement apparatus 10 described above in each embodiment can be applied to manufacture an article such as a mechanical component. A method of manufacturing the article includes a step of measuring the shape of a target object using the above-described measurement apparatus 10 and a step of processing (for example, polishing), based on the measurement result, the target object to make it have a predetermined shape. The method of manufacturing the article according to this embodiment is advantageous in at least one of the performance, the quality, the productivity, and the production cost of the article, as compared to a conventional method.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2014-046752 filed Mar. 10, 2014, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2014-046752 | Mar 2014 | JP | national |