Inspection device and inspection method

A single-camera inspection system with inclined optical paths enables efficient acquisition of two-dimensional and three-dimensional images by sharing the optical path for illumination and pattern light, addressing the size and cost issues of traditional multi-camera setups.

WO2024194923A1PCT designated stage expired Publication Date: 2024-09-26YAMAHA MOTOR CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/010583
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Existing inspection equipment requires multiple cameras to capture two-dimensional and three-dimensional images from multiple directions, leading to increased size and cost due to the need for separate systems for illumination and pattern light imaging.

Method used

A single camera system with an imaging lens and inclined optical systems that can capture illumination and pattern light from multiple directions using a shared optical path, allowing for simultaneous two-dimensional and three-dimensional image acquisition with a single camera.

Benefits of technology

The solution enables compact and cost-effective imaging by allowing a single camera to capture images from multiple directions, efficiently acquiring both two-dimensional and three-dimensional data without the need for multiple cameras or complex optical setups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023010583_26092024_PF_FP
    Figure JP2023010583_26092024_PF_FP
Patent Text Reader

Abstract

In the present invention, an imaging lens 33 is disposed so as to face, from a Z direction (straight-facing direction), a workpiece placement surface 12 (placement surface) on which a workpiece W (inspection object) is placed. The imaging lens 33 forms light Lo, Lv1, Lp1, that is incident from the object side on which the workpiece placement surface 12 is disposed, into an image at a solid-state imaging element 41 (imaging element) of a camera 32 that is disposed on the image side. Provided is a first inclination optical system 61 that guides light to the imaging lens 33, said light travelling in a first inclination direction V1 which is inclined with respect to the Z direction. Light Lo, Lp1 reflected in the Z direction from the workpiece placement surface 12 is formed into an image, by the imaging lens 33, at the solid-state imaging element 41. Light Lv1 reflected in the first inclination direction V1 from the workpiece placement surface 12 is guided to the imaging lens 33 by the first inclination optical system 61, and is then formed into an image, by the imaging lens 33, at the solid-state imaging element 41.
Need to check novelty before this filing date? Find Prior Art

Description

Inspection device and inspection method

[0001] The present invention relates to a technology for inspecting an object to be inspected based on the results of imaging the object while irradiating the object with illumination light for capturing a two-dimensional image and pattern light for capturing a three-dimensional image.

[0002] Patent Document 1 discloses an apparatus for acquiring a two-dimensional image of an object to be inspected by imaging the object with a line sensor while rotating the line sensor relative to the object to be inspected. Patent Document 2 discloses an apparatus for acquiring a three-dimensional image of solder by imaging the solder while irradiating the solder with light of different hues (red and green) from two types of light sources.

[0003] Japanese Patent No. 3600010 Japanese Patent Laid-Open No. 2009-168453

[0004] In this way, when inspecting an object to be inspected, two-dimensional images and three-dimensional images of the object to be inspected are acquired as needed. Therefore, it is preferable that two-dimensional images and three-dimensional images can be acquired using a single inspection device. Specifically, this can be achieved by an inspection device that combines a mechanism for acquiring two-dimensional images by irradiating the object to be inspected with illumination light and capturing the illumination light reflected by the object to be inspected, and a mechanism for acquiring three-dimensional images by irradiating the object to be inspected with pattern light for light sectioning and capturing the pattern light reflected by the object to be inspected.

[0005] However, when acquiring a two-dimensional image, the illumination light is captured from multiple directions (fields of view) as necessary. Furthermore, when acquiring a three-dimensional image, the pattern light diffusely reflected by the object under inspection is captured. However, providing multiple cameras corresponding to multiple directions for capturing the illumination light or providing a camera for capturing the pattern light results in an increase in the size and cost of the inspection device.

[0006] The present invention has been made in consideration of the above-mentioned problems, and aims to make it possible to perform imaging from multiple directions to obtain two-dimensional images and imaging to obtain three-dimensional images using a single camera.

[0007] The inspection device of the present invention comprises a camera having an imaging element that images received light, an imaging lens that is provided on the object side and faces a mounting plane on which an object to be inspected is placed from a predetermined facing direction, a first tilted optical system that guides light from the mounting plane in a first tilted direction tilted with respect to the facing direction to the imaging lens, an illumination system that generates illumination light to be irradiated toward the mounting plane, and a first pattern irradiation unit that irradiates the mounting plane with linear pattern light from a first cutting direction tilted with respect to the facing direction to measure the shape of the object to be inspected placed on the mounting plane by a light cutting method, and the imaging lens images light reflected from the mounting plane in the facing direction on the imaging element, and images light reflected from the mounting plane in the first tilted direction and guided by the first tilted optical system on the imaging element.

[0008] The inspection method according to the present invention is an inspection method for inspecting an object to be inspected based on an image captured by an imaging lens provided on the object side and facing a mounting plane on which the object to be inspected is placed from a predetermined direct facing direction, and imaging the light incident from the object side onto the imaging element of the camera, and includes the steps of: generating illumination light to be irradiated toward the mounting plane; irradiating the mounting plane with linear pattern light from a first cutting direction inclined with respect to the direct facing direction for measuring the shape of the object to be inspected placed on the mounting plane by a light cutting method; guiding light from the mounting plane toward the first inclined direction inclined with respect to the direct facing direction to the imaging lens by a first inclined optical system; imaging the light reflected from the mounting plane in the direct facing direction onto the imaging element by the imaging lens; and imaging the light reflected from the mounting plane in the first inclined direction and guided by the first inclined optical system onto the imaging element by the imaging lens.

[0009] In the present invention (inspection device and inspection method) configured as described above, an imaging lens is provided facing the mounting plane on which the inspection object is placed from the front. This imaging lens images light incident from the object side where the mounting plane is provided onto an imaging element of a camera provided on the image side. Furthermore, a first tilting optical system is provided to guide light traveling in a first tilting direction tilted from the front-facing direction to the imaging lens. Light reflected from the mounting plane in the front-facing direction is imaged on the imaging element by the imaging lens. Light reflected from the mounting plane in the first tilting direction is guided by the first tilting optical system to the imaging lens and imaged on the imaging element by the imaging lens. In other words, each light reflected from the mounting plane in multiple directions (the front-facing direction and the first tilting direction) is imaged on the imaging element of the same camera. Therefore, while irradiating illumination light onto the inspection object placed on the mounting plane, the camera can capture images of both the illumination light reflected in the front-facing direction and the illumination light reflected in the first tilting direction. Furthermore, while the pattern light is irradiated onto the object to be inspected, the pattern light reflected in the front direction can be captured by the camera. In this way, it is possible to perform imaging from multiple directions (the front direction and the first oblique direction) for acquiring a two-dimensional image and imaging for acquiring a three-dimensional image using a single camera.

[0010] The inspection device may also be configured such that the illumination system includes a coaxial illumination unit that generates coaxial light that passes through the imaging lens in a facing direction from the image side opposite the object side toward the object side, the first tilting optical system that changes the traveling direction of some of the coaxial light to a first tilting direction to generate illumination light that travels toward the mounting plane from the first tilting direction, and the imaging lens that emits light different from the part of the coaxial light in a facing direction to generate illumination light that travels toward the mounting plane from the facing direction. In this configuration, the first tilting optical system irradiates the mounting plane with illumination light from the first tilting direction, and the imaging lens can image the illumination light that is reflected from the mounting plane in the first tilting direction and returned to the first tilting optical system on the imaging element. That is, irradiation of the illumination light from the first tilting direction and imaging of the illumination light from the first tilting direction are performed using a common optical path. Furthermore, the imaging lens can irradiate the mounting plane with illumination light from the facing direction, and the imaging lens can image the light that is reflected from the mounting plane in the facing direction and returned to the imaging lens on the imaging element. In other words, irradiation of illumination light from the front direction and imaging of illumination light from the front direction are performed using a common optical path. By sharing the optical path in this way, the inspection device can be made more compact.

[0011] The inspection device may be configured so that the object plane of the front optical path, through which light emitted from the mounting plane in the front direction reaches the image sensor via the imaging lens, coincides with the object plane of the first inclined optical path, through which light emitted from the mounting plane in the first inclined direction reaches the image sensor via the first inclined optical system and the imaging lens. With this configuration, for example, the illumination light and pattern light can be irradiated and imaged in parallel on the inspection object placed on the mounting plane. This allows for efficient acquisition of two-dimensional and three-dimensional images of the inspection object.

[0012] The inspection device may further include an optical path adjustment member disposed between the mounting plane and the imaging lens in the front-facing optical path, the optical path adjustment member diverting light traveling in the front-facing direction from the mounting plane before emitting the light in the front-facing direction toward the imaging lens, thereby aligning the object plane of the front-facing optical path with the object plane of the first inclined optical path. With this configuration, for example, the illumination light and the pattern light can be irradiated and imaged in parallel on the inspection object placed on the mounting plane. This allows efficient acquisition of two-dimensional and three-dimensional images of the inspection object.

[0013] The inspection device may further include an optical path adjustment member disposed between the imaging lens and the imaging element in the first inclined optical path, and the optical path adjustment member causes light incident from the imaging lens to propagate within the optical path adjustment member before emitting the light toward the imaging element, thereby aligning the object plane of the first inclined optical path with the object plane of the front-facing optical path. With this configuration, for example, illumination light and imaging of an inspection object placed on a mounting plane can be performed in parallel, and illumination light and imaging of an inspection object can be performed in parallel. This allows efficient acquisition of two-dimensional and three-dimensional images of the inspection object.

[0014] The inspection device may also be configured such that the first pattern irradiation unit and the first tilted optical system are arranged so that the direction in which pattern light incident on the mounting plane from the first cutting direction is specularly reflected from the mounting plane coincides with the first tilted direction. With this configuration, the pattern light is irradiated onto the inspection object having specular reflection characteristics from the first cutting direction, and the pattern light specularly reflected from the inspection object can be guided to the imaging lens by the first tilted optical system. Therefore, a three-dimensional image of the inspection object having specular reflection characteristics can be further acquired with a single camera.

[0015] The inspection device may further include a second tilt optical system that guides light from the mounting plane in a second tilt direction tilted with respect to the facing direction to the imaging lens, and a second pattern irradiation unit that irradiates the mounting plane with linear pattern light from the second cutting direction tilted with respect to the facing direction to measure the shape of the inspection object placed on the mounting plane by the light-section method, wherein the first tilt optical system is arranged on one side of the optical axis of the imaging lens, the first pattern irradiation unit is arranged on the other side opposite to the one side, the second tilt optical system is arranged on the other side, and the second pattern irradiation unit is arranged on one side. With this configuration, it is possible to use a single camera to capture images from multiple directions (the facing direction, the first tilt direction, and the second tilt direction) to acquire two-dimensional images and to capture images of the pattern light irradiated from multiple directions (the first light-section direction and the second cutting direction) to acquire three-dimensional images.

[0016] The inspection device may be configured so that the object plane of the front-facing optical path, through which light emitted from the mounting plane in the front-facing direction reaches the image sensor via the imaging lens, coincides with the object plane of the first inclined optical path, through which light emitted from the mounting plane in the first inclined direction reaches the image sensor via the first inclined optical system and the imaging lens, and the object plane of the second inclined optical path, through which light emitted from the mounting plane in the second inclined direction reaches the image sensor via the second inclined optical system and the imaging lens. With this configuration, for example, the illumination light and pattern light can be irradiated and imaged on the inspection object placed on the mounting plane in parallel. This allows for efficient acquisition of two-dimensional and three-dimensional images of the inspection object.

[0017] The inspection device may also be configured such that the first pattern irradiation unit and the first tilting optical system are arranged so that the direction in which pattern light incident on the mounting plane from the first cutting direction is specularly reflected from the mounting plane coincides with the first tilting direction, and the second pattern irradiation unit and the second tilting optical system are arranged so that the direction in which pattern light incident on the mounting plane from the second cutting direction is specularly reflected from the mounting plane coincides with the second tilting direction. With this configuration, the pattern light is irradiated onto the inspection object having specular reflection characteristics from the first and second cutting directions, and the pattern light specularly reflected from the inspection object can be guided to the imaging lens by the first and second tilting optical systems. Therefore, a three-dimensional image of the inspection object having specular reflection characteristics can be further acquired with a single camera.

[0018] Furthermore, the inspection device may be configured so that the angle between the first tilt direction and the mounting plane is different from the angle between the second cutting direction and the mounting plane, and the angle between the second tilt direction and the mounting plane is different from the angle between the first cutting direction and the mounting plane. With this configuration, the pattern light irradiated onto the mounting plane does not pass through the first and second tilt optical systems, resulting in a decrease in the amount of pattern light. In other words, it is possible to efficiently irradiate the required amount of pattern light while acquiring a three-dimensional image of the inspection object.

[0019] The inspection device may further include a control unit that sets a front view region and an inclined view region for the image sensor, and the imaging lens forms an image of light emitted in a front direction from the mounting plane in the front view region of the image sensor, and forms an image of light emitted in a first inclined direction from the mounting plane and guided by the first inclined optical system in the inclined view region of the image sensor. This makes it possible to perform imaging from multiple directions (front view direction and first inclined direction) for acquiring two-dimensional images and imaging for acquiring three-dimensional images using one image sensor of one camera.

[0020] The inspection device may further include a scan driver that moves an inspection head, including an image sensor, an image sensor lens, a first tilted optical system, an illumination system, and a first pattern irradiation unit, in a scan direction relative to the mounting surface. The control unit causes the scan driver to move the inspection head relative to the mounting surface in the scan direction, while causing the image sensor to capture an image formed by the illumination light focused in the tilted field of view multiple times to acquire multiple tilted field illumination images. This configuration can reduce the width of the tilted field illumination image acquired in one acquisition. As a result, a two-dimensional image of the inspection object placed on the mounting surface can be acquired by reducing the difference in telecentricity between the front and back in the tilt direction when capturing images from the first tilted direction.

[0021] The inspection device may further include an illumination light transmission filter disposed between the image sensor and the imaging lens so as to at least partially overlap the inclined field of view region, the illumination light transmission filter allowing transmission of light of the wavelength of the illumination light while restricting transmission of light of the wavelength of the pattern light, and the control unit acquiring an image constituted by light focused in a region of the inclined field of view that overlaps with the illumination light transmission filter as the inclined field of view illumination image. With this configuration, the illumination light transmission filter can suppress the influence of the pattern light while appropriately acquiring the inclined field of view illumination image.

[0022] The inspection device may further include a pattern light transmission filter disposed adjacent to the illumination light transmission filter between the image sensor and the imaging lens, the pattern light transmission filter allowing transmission of light of the wavelength of the pattern light while restricting transmission of light of the wavelength of the illumination light. The control unit may also be configured to cause the scan driver to move the inspection head relatively in the scan direction while causing the image sensor to capture multiple images of the pattern light focused in the region of the inclined field of view that overlaps the pattern light transmission filter, thereby acquiring multiple inclined field of view pattern images. The multiple inclined field of view pattern images are then arranged to acquire a three-dimensional image of the inspection object placed on the mounting surface. With this configuration, the width of the inclined field of view pattern image acquired in one acquisition can be reduced. As a result, when imaging from the first inclined direction, the difference in telecentricity between the front and back in the tilt direction can be reduced, allowing the three-dimensional image of the inspection object to be captured. Moreover, the pattern light transmission filter allows the inclined field of view pattern image to be appropriately acquired while suppressing the influence of the illumination light.

[0023] The inspection device may further include a scan driver that moves an inspection head, including an image sensor, an image sensor lens, a first tilted optical system, an illumination system, and a first pattern irradiation unit, in a scan direction relative to the mounting surface. The control unit causes the scan driver to move the inspection head relative to the scanning direction while causing the image sensor to capture an image composed of the pattern light focused in the frontal field of view multiple times to acquire multiple frontal field pattern images, and arranges the multiple frontal field pattern images to acquire a three-dimensional image of the inspection object placed on the mounting surface. With this configuration, the width of the frontal field pattern image acquired in one acquisition can be reduced. As a result, a three-dimensional image of the inspection object can be acquired by suppressing the difference in telecentricity between the front and back in the tilt direction when capturing images from the first tilted direction.

[0024] The inspection device may also be configured to further include a pattern light transmission filter disposed between the image sensor and the imaging lens so as to at least partially overlap the front field of view region, the pattern light transmission filter allowing transmission of light of the wavelength of the pattern light while restricting transmission of light of the wavelength of the illumination light, and the control unit acquiring, as the front field of view pattern image, an image formed by light imaged in a region of the front field of view that overlaps with the pattern light transmission filter. With this configuration, the pattern light transmission filter can appropriately acquire the front field of view pattern image while suppressing the influence of the illumination light.

[0025] The inspection device may further include an illumination light transmission filter disposed adjacent to the pattern light transmission filter between the image sensor and the imaging lens, the illumination light transmission filter allowing transmission of light with the wavelength of the illumination light while restricting transmission of light with the wavelength of the pattern light. The control unit may also be configured to cause the scan driver to move the inspection head relatively in the scan direction while causing the image sensor to capture multiple images of the illumination light focused in the area of ​​the front field of view that overlaps the illumination light transmission filter, thereby acquiring multiple front field illumination images. The multiple front field illumination images may then be arranged to acquire a two-dimensional image of the object placed on the mounting surface. With this configuration, the width of the front field illumination image acquired in one acquisition can be reduced. As a result, the difference in telecentricity between the front and back in the tilt direction during image acquisition can be reduced, allowing the two-dimensional image of the object to be captured. Furthermore, the illumination light transmission filter allows the front field illumination image to be appropriately acquired while suppressing the influence of the pattern light.

[0026] The inspection device may further include a scan drive unit that moves the inspection head, which includes the image sensor, the image pickup lens, the first tilt optical system, the illumination system, and the first pattern irradiation unit, in the scan direction relative to the mounting plane, and a rotation drive unit that rotates the inspection head around a rotation axis that is parallel to the facing direction. With this configuration, the inspection head can be rotated appropriately in response to changes in the scan direction.

[0027] According to the present invention, it is possible to perform imaging from a plurality of directions to obtain a two-dimensional image and imaging to obtain a three-dimensional image using a single camera.

[0028] 9A is a plan view schematically showing an example of an inspection apparatus according to the present invention. FIG. 9B is a side view schematically showing a configuration related to an inspection head provided in the inspection apparatus of FIG. 1. FIG. 9C is a block diagram showing the electrical configuration of the inspection apparatus of FIG. 1. FIG. 9D is a side view schematically showing a configuration of a first example of an inspection head. FIG. 9E is a bottom view schematically showing the positional relationship between a solid-state imaging element and an optical filter. FIG. 9F is a side view schematically showing the positional relationship between a solid-state imaging element and an optical filter. FIG. 9G is a diagram schematically showing a line image captured by the inspection head. FIG. 9H is a diagram schematically showing the relationship between a region of interest set for a solid-state imaging element and an optical filter. FIG. 9H is a diagram schematically explaining a first example of a method for acquiring a three-dimensional image. FIG. 9I is a diagram schematically explaining a first example of a method for acquiring a three-dimensional image. FIG. 9I is a diagram schematically explaining a first example of a method for acquiring a three-dimensional image. FIG. 9I is a diagram schematically explaining a second example of a method for acquiring a three-dimensional image. FIG. 9I is a side view schematically showing a configuration of a second example of an inspection head. FIG. 9I is a side view schematically showing a configuration of a third example of an inspection head. FIG. 9I is a diagram schematically showing an optical path adjustment member used in the inspection head of FIG. 9A. 10 is a side view schematically showing a configuration of a fourth example of an inspection head;FIG. 11 is a diagram schematically showing a modified example of the relationship between an optical filter and a region of interest set on a solid-state imaging element;FIG.

[0029] Fig. 1A is a plan view schematically showing an example of an inspection apparatus according to the present invention, Fig. 1B is a side view schematically showing the configuration related to an inspection head provided in the inspection apparatus of Fig. 1, and Fig. 2 is a block diagram showing the electrical configuration provided in the inspection apparatus of Fig. 1. In Figs. 1A, 1B and the following figures, the horizontal X direction, the horizontal Y direction perpendicular to the X direction, and the vertical Z direction are appropriately shown. This inspection apparatus 1 measures the two-dimensional and three-dimensional shapes of a workpiece W to be inspected.

[0030] The inspection device 1 includes an inspection stage 11 arranged horizontally, and the upper surface of the inspection stage 11 serves as a workpiece placement plane 12 on which a workpiece W is placed. The workpiece placement plane 12 is a horizontal plane parallel to the X and Y directions.

[0031] The inspection device 1 includes a head driving mechanism 2 arranged above the inspection stage 11. The head driving mechanism 2 has a pair of Y-axis rails 21 arranged at a distance in the X direction. Each of the pair of Y-axis rails 21 extends parallel to the Y direction, and a workpiece placement plane 12 is provided between the pair of Y-axis rails 21. The head driving mechanism 2 also has an X-axis rail 22 extending in the X direction, and both ends of the X-axis rail 22 in the X direction are supported by the pair of Y-axis rails 21 so as to be movable in the Y direction. The head driving mechanism 2 also has a head holder 23, which is supported by the X-axis rail 22 so as to be movable in the X direction.

[0032] The head drive mechanism 2 also has a Y-axis motor 24 that drives the X-axis rail 22 in the Y direction relative to the Y-axis rail 21. That is, one of the pair of Y-axis rails 21 has a built-in ball screw, and the X-axis rail 22 is attached to the nut of this ball screw. The Y-axis motor 24 is coupled to one end of the ball screw built into the Y-axis rail 21, and drives the X-axis rail 22 in the Y direction by rotating this ball screw. The head drive mechanism 2 also has an X-axis motor 25 that drives the head holder 23 in the X direction relative to the X-axis rail 22. That is, the X-axis rail 22 has a built-in ball screw, and the head holder 23 is attached to the nut of this ball screw. The X-axis motor 25 is coupled to one end of the ball screw built into the X-axis rail 22, and drives the head holder 23 in the X direction by rotating the ball screw.

[0033] The head holder 23 has a Z-axis rail 231 supported by the X-axis rail 22, and a lifting frame 232 supported by the Z-axis rail 231 so as to be movable in the Z direction. Furthermore, the head drive mechanism 2 has a Z-axis motor 26 ( FIG. 2 ) that drives the lifting frame 232 in the Z direction relative to the Z-axis rail 231. That is, the Z-axis rail 231 has a built-in ball screw, and the lifting frame 232 is attached to a nut of this ball screw. The Z-axis motor 26 is coupled to one end of a ball screw built into the Z-axis rail 231, and drives the lifting frame 232 in the Z direction by rotating this ball screw.

[0034] The inspection device 1 also includes an inspection head 3 held by a head holder 23. The inspection head 3 is held by a lifting frame 232 so as to be rotatable in a rotation direction R about a rotation axis Az parallel to the Z direction. That is, the lifting frame 232 has a rotation mechanism 233 that rotates the inspection head 3 in the rotation direction R, and an R-axis motor 27 is attached to the lifting frame 232. The rotation mechanism 233 rotates the inspection head 3 in the rotation direction R by the torque output by the R-axis motor 27.

[0035] It should be noted that the specific configuration for driving the inspection head 3 in the X-direction, Y-direction, Z-direction, and rotation direction R is not limited to this example. For example, the Y-axis motor 24, the X-axis motor 25, the Z-axis motor 26, or the R-axis motor 27 may be configured by a linear motor.

[0036] 2 , the inspection device 1 includes a controller 9 that controls the head drive mechanism 2 and the inspection head 3. The controller 9 includes an arithmetic processing unit 91, a Y-position detection signal receiving unit 94, an X-position detection signal receiving unit 95, a Z-position detection signal receiving unit 96, and an R-position detection signal receiving unit 97. The arithmetic processing unit 91 is a processor such as a CPU (Central Processing Unit), and supervises control of the inspection device 1.

[0037] The Y-position detection signal receiving unit 94 acquires a Y-axis position detection signal Sy indicating the position of the inspection head 3 in the Y direction from the encoder of the Y-axis motor 24 and transmits it to the arithmetic processing unit 91. The arithmetic processing unit 91 transmits a Y-axis operation command Cy indicating the drive amount of the inspection head 3 in the Y direction to the Y-position detection signal receiving unit 94, and the Y-position detection signal receiving unit 94 transmits the Y-axis operation command Cy to the Y-axis motor 24. The Y-axis motor 24 then drives the inspection head 3 in the Y direction by the drive amount indicated by the Y-axis operation command Cy. At this time, the arithmetic processing unit 91 positions the inspection head 3 at a target position in the Y direction by feedback-controlling the Y-axis operation command Cy based on the Y-axis position detection signal Sy.

[0038] The X-position detection signal receiving unit 95 acquires an X-axis position detection signal Sx indicating the position of the inspection head 3 in the X direction from the encoder of the X-axis motor 25 and transmits it to the arithmetic processing unit 91. The arithmetic processing unit 91 transmits an X-axis operation command Cx indicating the drive amount of the inspection head 3 in the X direction to the X-position detection signal receiving unit 95, and the X-axis detection signal receiving unit 95 transmits the X-axis operation command Cx to the X-axis motor 25. The X-axis motor 25 then drives the inspection head 3 in the X direction by the drive amount indicated by the X-axis operation command Cx. At this time, the arithmetic processing unit 91 positions the inspection head 3 at a target position in the X direction by feedback-controlling the X-axis operation command Cx based on the X-axis position detection signal Sx.

[0039] The Z-position detection signal receiving unit 96 acquires a Z-axis position detection signal Sz indicating the position of the inspection head 3 in the Z direction from the encoder of the Z-axis motor 26 and transmits it to the arithmetic processing unit 91. The arithmetic processing unit 91 transmits a Z-axis operation command Cz indicating the drive amount of the inspection head 3 in the Z direction to the Z-position detection signal receiving unit 96, and the Z-axis detection signal receiving unit 96 transmits the Z-axis operation command Cz to the Z-axis motor 26. The Z-axis motor 26 then drives the inspection head 3 in the Z direction by the drive amount indicated by the Z-axis operation command Cz. At this time, the arithmetic processing unit 91 positions the inspection head 3 at a target position in the Z direction by feedback-controlling the Z-axis operation command Cz based on the Z-axis position detection signal Sz.

[0040] The R-position detection signal receiving unit 97 acquires an R-axis position detection signal Sr indicating the position of the inspection head 3 in the R direction from the encoder of the R-axis motor 27 and transmits it to the arithmetic processing unit 91. The arithmetic processing unit 91 transmits an R-axis operation command Cr indicating the drive amount of the inspection head 3 in the R direction to the R-position detection signal receiving unit 97, and the R-position detection signal receiving unit 97 transmits the R-axis operation command Cr to the R-axis motor 27. The R-axis motor 27 then drives the inspection head 3 in the R direction by the drive amount indicated by the R-axis operation command Cr. At this time, the arithmetic processing unit 91 positions the inspection head 3 at a target position in the R direction by feedback-controlling the R-axis operation command Cr based on the R-axis position detection signal Sr.

[0041] Furthermore, the arithmetic processing unit 91 transmits an imaging command Ci instructing the inspection head 3 to perform imaging. Upon receiving the imaging command Ci, the inspection head 3 images the workpiece W and transmits image data Di of the workpiece W to the arithmetic processing unit 91.

[0042] Fig. 3 is a side view schematically showing the configuration of a first example of the inspection head. Fig. 3 shows the scanning direction N of the inspection head 3 and the N1 and N2 sides of the scanning direction N. Here, the scanning direction N is horizontal, and the N1 and N2 sides of the scanning direction N face opposite each other. This scanning direction N is set relative to the inspection head 3, and when the inspection head 3 rotates in the rotation direction R, the scanning direction N also rotates in the rotation direction R along with the inspection head 3.

[0043] The inspection head 3 has a cylindrical lens barrel 31 extending in the Z direction, a camera 32 attached to the upper end of the lens barrel 31, and an imaging lens 33 attached to the lower end of the lens barrel 31. Furthermore, the inspection head 3 has an illumination system 34 that irradiates light for measuring two-dimensional shapes, and a pattern irradiation system 35 that irradiates linear pattern light for measuring three-dimensional shapes by the light-section method.

[0044] The imaging lens 33 is located above the workpiece mounting plane 12 and faces the workpiece mounting plane 12 in the Z direction, with the optical axis Ao of the imaging lens 33 extending parallel to the Z direction. That is, the optical axis Ao of the imaging lens 33 is perpendicular to the workpiece mounting plane 12, and the imaging lens 33 faces the workpiece mounting plane 12 in the direction in which the normal to the workpiece mounting plane 12 extends (the Z direction). The imaging lens 33 emits light incident from the object side of the imaging lens 33 toward the camera 32 located on the image side of the imaging lens 33, and the camera 32 captures an image of the light emitted from the imaging lens 33. The imaging lens 33 is a lens that is telecentric on both the object side and the image side (i.e., on both sides), and forms an image of the object plane P1 or P2 on the image plane by focusing light from the object plane P1 or P2 on the image plane.

[0045] The camera 32 includes a solid-state imaging element 41 and an optical filter 45. The solid-state imaging element 41 has a plurality of pixels arranged two-dimensionally, each of which outputs data corresponding to the result of detecting light. An example of such a solid-state imaging element 41 is a CMOS sensor. The solid-state imaging element 41 is disposed on the image plane of the imaging lens 33 and receives light focused by the imaging lens 33 to generate image data Di. The optical filter 45 is disposed between the imaging lens 33 and the solid-state imaging element 41. Light traveling from the imaging lens 33 toward the solid-state imaging element 41 passes through the optical filter 45 before reaching the solid-state imaging element 41 ( FIGS. 4A and 4B ). FIG. 4A is a bottom view schematically illustrating the positional relationship between the solid-state imaging element and the optical filter, and FIG. 4B is a side view schematically illustrating the positional relationship between the solid-state imaging element and the optical filter. As shown in FIG. 4A , when viewed from the bottom in the Z direction, the optical filter 45 is disposed so as to overlap the solid-state imaging element 41, and the solid-state imaging element 41 is included within the optical filter 45. As shown in FIG. 4B, the optical filter 45 faces the solid-state imaging device 41 with a gap in between in the Z direction.

[0046] The illumination system 34 includes a coaxial illumination unit 51 that generates coaxial light Lc that passes through the imaging lens 33 in the Z direction from the image side toward the object side of the imaging lens 33. The coaxial illumination unit 51 includes a coaxial illuminator 511 attached to the side of the lens barrel 31 and a half mirror 513 disposed inside the lens barrel 31. The coaxial illuminator 511 emits light toward the half mirror 513. The light emitted by the coaxial illuminator 511 is visible light. The half mirror 513 is disposed between the imaging lens 33 and the camera 32 and reflects the light from the coaxial illuminator 511 toward the imaging lens 33 while transmitting the light from the imaging lens 33 toward the camera 32. The imaging lens 33 emits the light reflected by the half mirror 513 as coaxial light Lc toward the object side of the imaging lens 33. This coaxial light Lc is emitted from the imaging lens 33 toward the object side in parallel with the Z direction. That is, the coaxial light Lc emitted from the imaging lens 33 to the object side is collimated light parallel to the Z direction.

[0047] The coaxial light Lc emitted from the central portion 330 of the imaging lens 33 travels parallel to the Z direction from the imaging lens 33 to the object plane P1 (i.e., travels straight) and is irradiated onto the object plane P1 as illumination light Lo. In this way, the illumination light Lo is irradiated onto the object plane P1 from the Z direction.

[0048] The coaxial light Lc emitted from a peripheral portion 331 of the imaging lens 33 on the N1 side of the central portion 330 is incident on a first tilting optical system 61. The first tilting optical system 61 is disposed on the N1 side of the optical axis Ao of the imaging lens 33 and converts the coaxial light Lc emitted from the peripheral portion 331 into illumination light Lv1 that is incident on an object plane P2 along a first tilt direction V1 that is tilted with respect to the Z direction. Note that, in a planar view from the Z direction, the first tilt direction V1 is parallel to the scan direction N, and the illumination light Lv1 is incident on the object plane P1 from the N1 side. The first tilting optical system 61 includes a reflecting member 611 that reflects the coaxial light Lc emitted from the peripheral portion 331 of the imaging lens 33 toward the N1 side of the scan direction N, a reflecting member 612 that reflects the light from the reflecting member 611 diagonally downward, and a reflecting member 613 that reflects the light from the reflecting member 612 in the first tilt direction V1 toward the object plane P2. The reflecting members 611, 612, and 613 are, for example, mirrors or prisms.

[0049] The coaxial light Lc emitted from a peripheral portion 332 of the imaging lens 33 on the N2 side from the central portion 330 is incident on the second tilting optical system 62. The second tilting optical system 62 is disposed on the N2 side of the optical axis Ao of the imaging lens 33 and converts the coaxial light Lc emitted from the peripheral portion 332 into illumination light Lv2 that is incident on the object plane P2 along a second tilt direction V2 that is tilted with respect to the Z direction. Note that, in a plan view from the Z direction, the second tilting direction V2 is parallel to the scanning direction N, and the illumination light Lv2 is incident on the object plane P1 from the N2 side. The second tilting optical system 62 includes a reflecting member 621 that reflects the coaxial light Lc emitted from the peripheral portion 332 of the imaging lens 33 toward the N2 side of the scanning direction N, a reflecting member 622 that reflects the light from the reflecting member 621 diagonally downward, and a reflecting member 623 that reflects the light from the reflecting member 622 in the second tilt direction V2 toward the object plane P2. The reflecting members 621, 622, and 623 are, for example, mirrors or prisms.

[0050] Furthermore, the illumination system 34 has a first oblique illumination unit 71 and a second oblique illumination unit 72. The first oblique illumination unit 71 is disposed above the object plane P2 and irradiates the object plane P2 with illumination light from the N1 side of the optical axis Ao. The second oblique illumination unit 72 is disposed above the object plane P2 and irradiates the object plane P2 with illumination light from the N2 side of the optical axis Ao.

[0051] As described above, the imaging lens 33 forms an image of light from the object plane P1 or P2 on the solid-state imaging element 41 disposed on the image plane. At this time, the optical paths that reach the solid-state imaging element 41 include a direct optical path Oo, a first inclined optical path Ov1, and a second inclined optical path Ov2.

[0052] That is, of the illumination light reflected by the object plane P1, light traveling parallel to the Z direction from the object plane P1 is incident on the central portion 330 of the imaging lens 33 and is imaged on the solid-state imaging element 41 by the imaging lens 33. That is, a front optical path Oo is provided, which is an optical path along which light emitted in the Z direction from the object plane P1 reaches the solid-state imaging element 41 via the imaging lens 33.

[0053] Furthermore, of the illumination light reflected by the object surface P2, light traveling from the object surface P2 in a direction parallel to the first tilt direction V1 is guided by the first tilt optical system 61 to the peripheral portion 331 of the imaging lens 33, and is imaged by the imaging lens 33 on the solid-state imaging element 41. In other words, a first tilted optical path Ov1 is provided as an optical path along which light emitted from the object surface P2 in the first tilt direction V1 reaches the solid-state imaging element 41 via the first tilt optical system 61 and the imaging lens 33.

[0054] Furthermore, of the illumination light reflected by the object surface P2, light traveling from the object surface P2 in a direction parallel to the second tilt direction V2 is guided by the second tilt optical system 62 to the peripheral portion 332 of the imaging lens 33, and is imaged by the imaging lens 33 on the solid-state imaging element 41. In other words, a second tilted optical path Ov2 is provided as an optical path along which light emitted from the object surface P2 in the second tilt direction V2 reaches the solid-state imaging element 41 via the second tilt optical system 62 and the imaging lens 33.

[0055] Note that the object planes P1 and P2 are shifted in the Z direction due to the difference between the path from the object plane P1 to the imaging lens 33 on the direct optical path Oo and the path from the object plane P2 to the imaging lens 33 on the first inclined optical path Ov1. In other words, the object plane P1 is farther from the imaging lens 33 than the object plane P2.

[0056] The pattern irradiation system 35 includes a first pattern irradiation unit 81. The first pattern irradiation unit 81 irradiates the object surface P1 with pattern light Lp1 for measuring a three-dimensional shape using a light-section method. The pattern light Lp1 is laser light and has a linear shape extending in an orthogonal direction perpendicular to the scanning direction N and the Z direction. The first pattern irradiation unit 81 is disposed on the N2 side of the optical axis Ao of the imaging lens 33 and emits pattern light Lp1 that is incident on the object surface P1 along a first cutting direction Q1 that is inclined with respect to the Z direction. Note that, in a planar view from the Z direction, the first cutting direction Q1 is parallel to the scanning direction N, and the pattern light Lp1 is incident on the object surface P1 from the N2 side.

[0057] The pattern irradiation system 35 also includes a second pattern irradiation unit 82. The second pattern irradiation unit 82 irradiates the object surface P1 with pattern light Lp2 for measuring a three-dimensional shape using a light-section method. The pattern light Lp2 is laser light and has a linear shape extending in an orthogonal direction perpendicular to the scanning direction N and the Z direction. The second pattern irradiation unit 82 is disposed on the N1 side of the optical axis Ao of the imaging lens 33 and emits pattern light Lp2 that is incident on the object surface P1 along a second cutting direction Q2 that is inclined with respect to the Z direction. Note that, in a planar view from the Z direction, the second cutting direction Q2 is parallel to the scanning direction N, and the pattern light Lp2 is incident on the object surface P1 from the N1 side.

[0058] 5A is a diagram schematically illustrating a line image captured by the inspection head. The calculation processing unit 91 causes the inspection head 3 to capture a linear line image Il extending parallel to an orthogonal direction M orthogonal to the scanning direction N. That is, light from the object plane P1 or P2 is focused on the solid-state imaging element 41 by the imaging lens 33, and the solid-state imaging element 41 captures the line image Il composed of output data from each pixel of the solid-state imaging element 41 that corresponds to the line image Il. Here, the line image Il has a width of one or more predetermined number of pixels in the scanning direction N.

[0059] 5B is a diagram schematically illustrating the relationship between the region of interest set for the solid-state imaging element and the optical filter. As described above, the solid-state imaging element 41 captures light that has reached the solid-state imaging element 41 via the direct optical path Oo, the first inclined optical path Ov1, and the second inclined optical path Ov2. In response, the arithmetic processing unit 91 sets a direct field of view region Fo, a first inclined field of view region Fv1, and a second inclined field of view region Fv2 arranged in the scanning direction N on the solid-state imaging element 41. The direct field of view region Fo is a region of interest corresponding to the direct optical path Oo, and light reaching the solid-state imaging element 41 via the direct optical path Oo from the object plane P1 is incident on the direct field of view region Fo. The first inclined field of view region Fv1 is a region of interest corresponding to the first inclined optical path Ov1, and light reaching the solid-state imaging element 41 via the first inclined optical path Ov1 from the object plane P2 is incident on the first inclined field of view region Fv1. The second inclined field region Fv2 is a region of interest corresponding to the second inclined optical path Ov2, and light that reaches the solid-state imaging element 41 from the object plane P2 via the second inclined optical path Ov2 is incident on the second inclined field region Fv2.

[0060] As described above, the optical filter 45 is disposed opposite the solid-state imaging element 41. The optical filter 45 has two types of bandpass filters 451 and 452 that selectively allow the transmission of light of different wavelengths. The bandpass filter 451 allows the transmission of patterned light Lp1 and Lp2, while restricting the transmission of illumination light Lo, Lv1, and Lv2. The bandpass filter 452 allows the transmission of illumination light Lo, Lv1, and Lv2, while restricting the transmission of patterned light Lp1 and Lp2. Note that in FIG. 5B , the bandpass filters 451 and 452 are distinguished by different hatching (diagonal hatching and dot hatching).

[0061] The bandpass filter 452 is provided so as to overlap the entire first inclined field of view Fv1. Therefore, the bandpass filter 452 allows the illumination light Lo, Lv1, and Lv2 to be incident on the first inclined field of view Fv1, while the bandpass filter 452 restricts the pattern light Lp1 and Lp2 from being incident on the first inclined field of view Fv1.

[0062] The bandpass filter 452 is also provided so as to overlap the entire second inclined field of view Fv2. Therefore, the bandpass filter 452 allows the illumination lights Lo, Lv1, and Lv2 to be incident on the second inclined field of view Fv2, while the bandpass filter 452 restricts the pattern lights Lp1 and Lp2 from being incident on the second inclined field of view Fv2.

[0063] Furthermore, the bandpass filter 452 is provided so as to overlap edge regions Foe of the frontal field of view Fo, which are provided at both ends in the scanning direction N. Therefore, the bandpass filter 452 allows the illumination lights Lo, Lv1, and Lv2 to be incident on the edge regions Foe of the frontal field of view Fo, while the bandpass filter 452 restricts the pattern lights Lp1 and Lp2 from being incident on the edge regions Foe of the frontal field of view Fo.

[0064] The bandpass filter 451 is also provided so as to overlap a central region Foc of the frontal field of view Fo, which is provided between the end regions Foe on both ends in the scanning direction N. Therefore, the bandpass filter 451 allows the pattern lights Lp1 and Lp2 to be incident on the central region Foc of the frontal field of view Fo, while the bandpass filter 451 restricts the illumination lights Lo, Lv1, and Lv2 from being incident on the central region Foc of the frontal field of view Fo.

[0065] In this configuration, the arithmetic processing unit 91 can capture images of the workpiece W placed on the workpiece placing plane 12 from each of the Z direction, the first inclined direction V1, and the second inclined direction V2 to acquire a two-dimensional image of the workpiece W. Note that the image acquired by the inspection head 3 in one imaging session is a linear line image Il extending in an orthogonal direction perpendicular to the scanning direction N. Therefore, the arithmetic processing unit 91 acquires a two-dimensional image composed of multiple line images Il by having the inspection head 3 capture the line image Il multiple times while moving (i.e., scanning) the inspection head 3 relative to the workpiece placing plane 12.

[0066] When acquiring a two-dimensional image from the Z direction, the arithmetic processing unit 91 adjusts the position (i.e., height) of the inspection head 3 in the Z direction by controlling the Z-axis motor 26 so that the object plane P1 coincides with the workpiece placement plane 12. Next, the arithmetic processing unit 91 adjusts the scan direction N. For example, when acquiring a two-dimensional image while moving the inspection head 3 in the X direction, the arithmetic processing unit 91 adjusts the position (i.e., rotation angle) of the rotation direction R of the inspection head 3 by controlling the R-axis motor 27 so that the scan direction N coincides with the X direction. Furthermore, when acquiring a two-dimensional image while moving the inspection head 3 in the Y direction, the arithmetic processing unit 91 adjusts the position of the rotation direction R of the inspection head 3 by controlling the R-axis motor 27 so that the scan direction N coincides with the Y direction. Note that, in order to acquire a two-dimensional image, the direction in which the inspection head 3 is moved does not need to be parallel to the X direction or the Y direction, and may be inclined relative to these directions.

[0067] Once the adjustment of the rotation angle of the inspection head 3 is complete, the arithmetic processing unit 91 controls the head drive mechanism 2 to move the inspection head 3 in the scan direction N, and transmits an imaging command Ci to the inspection head 3 to capture a line image Il to obtain a two-dimensional image viewed from the Z direction. Upon receiving this imaging command Ci, the inspection head 3 turns on the coaxial illumination 511 to irradiate the object surface P1 with illumination light Lo, and captures the line image Il multiple times using light that passes through the frontal optical path Oo and reaches the solid-state imaging element 41. As described above, the light that passes through the frontal optical path Oo (light with the same wavelength as the illumination light) reaches the end region Foe of the frontal field of view Fo set on the solid-state imaging element 41. Therefore, the inspection head 3 captures the line image Il multiple times using the end region Foe of the frontal field of view Fo. In this way, the inspection head 3 acquires multiple line images Il (in other words, image data Di) and transmits them to the arithmetic processing unit 91. Then, the calculation processing unit 91 arranges multiple line images Il in the scanning direction N to obtain a two-dimensional image of the workpiece W viewed from the Z direction.

[0068] When acquiring a two-dimensional image from the first inclined direction V1, the arithmetic processing unit 91 adjusts the position (i.e., height) of the inspection head 3 in the Z direction by controlling the Z-axis motor 26 so that the object plane P2 coincides with the workpiece placement plane 12. Next, the arithmetic processing unit 91 adjusts the scan direction N. After completing the adjustment of the rotation angle of the inspection head 3, the arithmetic processing unit 91 controls the head drive mechanism 2 to move the inspection head 3 in the scan direction N, and transmits an imaging command Ci to the inspection head 3 instructing it to capture a line image Il to acquire a two-dimensional image viewed from the first inclined direction V1. Upon receiving this imaging command Ci, the inspection head 3 turns on the coaxial illumination 511 to irradiate the object plane P2 with illumination light Lv1, and captures the line image Il multiple times using light that has passed through the first inclined optical path Ov1 and reached the solid-state image sensor 41. As described above, the light that has passed through the first inclined optical path Ov1 (light with the same wavelength as the illumination light) reaches the first inclined field of view Fv1 set in the solid-state image sensor 41. Therefore, the inspection head 3 captures the line image Il multiple times using the first inclined field of view Fv1. In this way, the inspection head 3 acquires the multiple line images Il (in other words, image data Di) and transmits them to the arithmetic processing unit 91. Then, the arithmetic processing unit 91 arranges the multiple line images Il in the scanning direction N to acquire a two-dimensional image of the workpiece W viewed from the first inclined direction V1.

[0069] When acquiring a two-dimensional image from the second inclined direction V2, the arithmetic processing unit 91 adjusts the position (i.e., height) of the inspection head 3 in the Z direction by controlling the Z-axis motor 26 so that the object plane P2 coincides with the workpiece placement plane 12. Next, the arithmetic processing unit 91 adjusts the scan direction N. After completing the adjustment of the rotation angle of the inspection head 3, the arithmetic processing unit 91 controls the head drive mechanism 2 to move the inspection head 3 in the scan direction N, and transmits an imaging command Ci to the inspection head 3 instructing it to capture a line image Il to acquire a two-dimensional image viewed from the second inclined direction V2. Upon receiving this imaging command Ci, the inspection head 3 turns on the coaxial illumination 511 to irradiate the object plane P2 with illumination light Lv2, and captures the line image Il multiple times using light that has passed through the second inclined optical path Ov2 and reached the solid-state image sensor 41. As described above, the light that has passed through the second inclined optical path Ov2 (light with the same wavelength as the illumination light) reaches the second inclined field of view Fv2 set in the solid-state image sensor 41. Therefore, the inspection head 3 captures the line image Il multiple times using the second inclined field of view Fv2. In this way, the inspection head 3 acquires the multiple line images Il (in other words, image data Di) and transmits them to the arithmetic processing unit 91. Then, the arithmetic processing unit 91 arranges the multiple line images Il in the scanning direction N to acquire a two-dimensional image of the workpiece W viewed from the second inclined direction V2.

[0070] The acquisition of the two-dimensional image from the first inclined direction V1 and the acquisition of the two-dimensional image from the second inclined direction V2 are performed by aligning the same object plane P2 with the workpiece placement plane 12. Therefore, the imaging of the line image Il constituting the two-dimensional image from the first inclined direction V1 and the imaging of the line image Il constituting the two-dimensional image from the second inclined direction V2 can be performed in parallel while moving the inspection head 3 in the scanning direction N.

[0071] In this configuration, the arithmetic processing unit 91 can capture an image of the workpiece W placed on the workpiece placing plane 12 from the Z direction to acquire a three-dimensional image of the workpiece W. Note that the image acquired by the inspection head 3 in one image capture is a linear line image Il extending in an orthogonal direction perpendicular to the scanning direction N. Therefore, the arithmetic processing unit 91 acquires a three-dimensional image made up of a plurality of line images Il by having the inspection head 3 capture the line image Il a plurality of times while moving (i.e., scanning) the inspection head 3 relative to the workpiece placing plane 12.

[0072] 6A, 6B, and 6C are diagrams illustrating a first example of a method for acquiring a three-dimensional image. The workpiece W shown in FIGS. 6A, 6B, and 6C has a length Wx in the X direction, a width Wy in the Y direction, and a height Wz in the Z direction. Pattern light Lp1 is irradiated onto the workpiece W from a first cutting direction Q1. In the examples of these figures, the scanning direction N is set to the X direction.

[0073] Therefore, the position Xh in the X direction of the pattern light Lp1 on the top surface of the workpiece W and the position Xl in the X direction of the pattern light Lp1 on the workpiece mounting plane 12 differ depending on the difference in height between the top surface of the workpiece W and the workpiece mounting plane 12. In this case, the height Wx of the workpiece W is given by the following equation, Wx = |Xh - Xl| × tan θ, using the angle θ between the pattern light Lp1 and the workpiece mounting plane 12. Therefore, the calculation processing unit 91 can capture multiple line images Il and obtain information indicating the height of the workpiece W based on the position where the pattern light Lp1 is irradiated in each line image Il, thereby acquiring a three-dimensional image of the workpiece W.

[0074] Specifically, when acquiring a three-dimensional image, the arithmetic processing unit 91 adjusts the position (i.e., height) of the inspection head 3 in the Z direction by controlling the Z-axis motor 26 so that the object plane P1 coincides with the workpiece placement plane 12. Next, the arithmetic processing unit 91 adjusts the scan direction N. After completing the adjustment of the rotation angle of the inspection head 3, the arithmetic processing unit 91 controls the head drive mechanism 2 to move the inspection head 3 in the scan direction N, and transmits an imaging command Ci to the inspection head 3 to instruct it to capture a line image Il to acquire a three-dimensional image. Upon receiving this imaging command Ci, the inspection head 3 turns on the first pattern irradiation unit 81 to irradiate the object plane P1 with pattern light Lp1, and captures the line image Il multiple times using light that has passed through the frontal optical path Oo and reached the solid-state image sensor 41. As described above, the light that has passed through the frontal optical path Oo (light with the same wavelength as the pattern light) reaches the central region Foc of the frontal field of view Fo set in the solid-state image sensor 41. Therefore, the inspection head 3 captures the line image Il multiple times using the central region Foc of the frontal field of view region Fo. In this way, the inspection head 3 acquires multiple line images Il (in other words, image data Di) and transmits them to the arithmetic processing unit 91. Then, the arithmetic processing unit 91 arranges the multiple line images Il in the scanning direction N to acquire a three-dimensional image of the workpiece W viewed from the Z direction.

[0075] Fig. 7 is a diagram illustrating a second example of a method for acquiring a three-dimensional image. Fig. 7 illustrates a plurality of pixel rows 411 to 415, each of which is composed of a plurality of pixels aligned in an orthogonal direction M perpendicular to the scanning direction N. In particular, Fig. 7 illustrates in chronological order (at times T1 to T5) how the pixel rows 411 to 415 sequentially capture images of the target position Nt each time the inspection head 3 moves one pixel of the solid-state imaging element 41 in the scanning direction N.

[0076] 6A, 6B, and 6C, a three-dimensional image of the workpiece W is acquired based on differences in the irradiation position of the pattern light Lp1 in the scanning direction N (X direction). In contrast, in the example of Fig. 7, a three-dimensional image of the workpiece W is acquired based on differences in the time at which the pattern light Lp1 is captured.

[0077] At time T1, the pixel array 411 captures an image of the target position Nt. At time T1, the pattern light Lp1 is not irradiated onto the target position Nt, and the image captured by the pixel array 411 does not include the pattern light Lp1.

[0078] At time T2, which follows time T1, the pixel row 412 captures an image of the target position Nt. At time T2, the pattern light Lp1 irradiated onto the top surface of the workpiece W is located at the target position Nt. Therefore, of the multiple pixels belonging to the pixel row 412, the pixels corresponding to the top surface of the workpiece W capture the image of the pattern light Lp1, and the pixels corresponding to the workpiece placement plane 12 do not capture the image of the pattern light Lp1.

[0079] At time T3 after time T2, the pixel array 413 captures an image of the target position Nt. At time T3, the pattern light Lp1 is not irradiated onto the target position Nt, and the image captured by the pixel array 413 does not include the pattern light Lp1.

[0080] At time T4, which follows time T3, the pixel row 414 captures an image of the target position Nt. At time T4, the pattern light Lp1 irradiated onto the workpiece placing plane 12 is located at the target position Nt. Therefore, of the multiple pixels belonging to the pixel row 414, the pixels corresponding to the workpiece placing plane 12 capture the pattern light Lp1, and the pixels corresponding to the top surface of the workpiece W do not capture the pattern light Lp1.

[0081] At time T5 after time T4, the pixel array 415 captures an image of the target position Nt. At time T5, the pattern light Lp1 is not irradiated onto the target position Nt, and the image captured by the pixel array 415 does not include the pattern light Lp1.

[0082] In this way, the times T2 and T4 at which the pattern light Lp1 irradiated onto the same target position Nt is imaged differ depending on the height at which the pattern light Lp1 is irradiated (the upper surface of the workpiece W, the workpiece mounting plane 12). The difference between times T2 and T4 corresponds to the distance in the scanning direction N between the pixel 412 that detected the pattern light Lp1 at time T2 and the pixel 414 that detected the pattern light Lp1 at time T4. Therefore, a three-dimensional image of the workpiece W can be acquired using the same principle as described using Figures 6A to 6C.

[0083] In the above example, the three-dimensional shape is acquired by irradiating the workpiece W with the patterned light Lp1. However, the three-dimensional shape can also be acquired in the same manner by irradiating the workpiece W with the patterned light Lp2.

[0084] In the inspection device 1 described above, an imaging lens 33 is provided facing the workpiece placement plane 12 (placing plane) on which the workpiece W (object to be inspected) is placed from the Z direction (direction facing the workpiece placement plane). This imaging lens 33 forms an image of light Lo, Lv1, and Lp1 incident from the object side where the workpiece placement plane 12 is provided, on a solid-state imaging element 41 (image sensor) of a camera 32 provided on the image side. Furthermore, a first tilt optical system 61 is provided to guide light traveling in a first tilt direction V1 tilted with respect to the Z direction to the imaging lens 33. Then, light Lo and Lp1 reflected from the workpiece placement plane 12 in the Z direction are imaged on the solid-state imaging element 41 by the imaging lens 33. Furthermore, light Lv1 reflected from the workpiece placement plane 12 in the first tilt direction V1 is guided by the first tilt optical system 61 to the imaging lens 33, where it is imaged on the solid-state imaging element 41 by the imaging lens 33. In other words, each light reflected in multiple directions (Z direction and first inclined direction V1) from the workpiece mounting plane 12 is imaged on the solid-state imaging element 41 of the same camera 32. Therefore, while irradiating the workpiece W placed on the workpiece mounting plane 12 with illumination light Lo and Lv1, the illumination light Lo reflected in the Z direction and the illumination light Lv1 reflected in the first inclined direction V1 can be imaged by the camera 32. Furthermore, while irradiating the workpiece W with pattern light Lp1, the pattern light Lp1 reflected in the Z direction can be imaged by the camera 32. In this way, it is possible to perform imaging from multiple directions (Z direction and first inclined direction V1) to acquire a two-dimensional image and imaging to acquire a three-dimensional image using a single camera 32.

[0085] The illumination system 34 also includes a coaxial illumination unit 51 that generates coaxial light Lc that passes through the imaging lens 33 in the Z direction from the image side opposite the object side toward the object side. The first tilt optical system 61 changes the traveling direction of a portion of the coaxial light Lc to a first tilt direction V1, thereby generating illumination light Lv1 that travels toward the workpiece placement plane 12 from the first tilt direction V1. The imaging lens 33 emits light from the coaxial light Lc that is different from the portion of the coaxial light Lc in the Z direction, thereby generating illumination light Lo that travels toward the workpiece placement plane 12 from the Z direction. With this configuration, the first tilt optical system 61 irradiates the workpiece placement plane 12 with the illumination light Lv1 from the first tilt direction V1, and the illumination light Lv1 that is reflected from the workpiece placement plane 12 in the first tilt direction V1 and returns to the first tilt optical system 61 can be imaged on the solid-state imaging element 41 by the imaging lens 33. In other words, irradiation of the illumination light Lv1 from the first inclined direction V1 and imaging of the illumination light Lv1 from the first inclined direction V1 are performed via a common first inclined optical path Ov1. Furthermore, while the imaging lens 33 irradiates the workpiece mounting plane 12 with illumination light Lo from the Z direction, the imaging lens 33 can form an image of the illumination light Lo reflected from the workpiece mounting plane 12 in the Z direction and returned to the imaging lens 33 on the solid-state imaging element 41. In other words, irradiation of the illumination light Lo from the Z direction and imaging of the illumination light Lo from the Z direction are performed via a common front-facing optical path Oo. In this way, the inspection device 1 is made more compact by sharing the optical path.

[0086] The imaging lens 33 is also provided with a second tilt optical system 62 that guides light from the workpiece mounting plane 12 toward a second tilt direction V2 tilted with respect to the Z direction to the imaging lens 33. The imaging lens 33 is also provided with a second pattern irradiation unit 82 that irradiates the workpiece mounting plane 12 with linear pattern light Lp2 from a second cutting direction Q2 tilted with respect to the Z direction, for measuring the shape of the workpiece W placed on the workpiece mounting plane 12 by the light-section method. With respect to the optical axis Ao of the imaging lens 33, the first tilt optical system 61 is disposed on the N1 side (one side), and the first pattern irradiation unit 81 is disposed on the N2 side (the other side). The second tilt optical system 62 is disposed on the N2 side, and the second pattern irradiation unit 82 is disposed on the N1 side. In this configuration, it is possible to use a single camera 32 to capture images from multiple directions (Z direction, first inclination direction V1, and second inclination direction V2) to obtain a two-dimensional image, and to capture images of pattern light Lp1 and Lp2 irradiated from multiple directions (first inclination direction V1 and second inclination direction V2) to obtain a three-dimensional image.

[0087] The camera 32 also includes an arithmetic processing unit 91 (control unit) that sets a frontal field of view area Fo and a first inclined field of view area Fv1 (inclined field of view area) for the solid-state imaging element 41. Meanwhile, the imaging lens 33 forms an image of light emitted in the Z direction from the workpiece mounting plane 12 in the frontal field of view area Fo of the solid-state imaging element 41, and forms an image of light emitted from the workpiece mounting plane 12 in the first inclined direction V1 and guided by the first inclined optical system 61 in the first inclined field of view area Fv1 of the solid-state imaging element 41. This makes it possible to use one solid-state imaging element 41 of one camera 32 to perform imaging from multiple directions (the Z direction and the first inclined direction V1) for acquiring two-dimensional images and imaging for acquiring three-dimensional images.

[0088] The system also includes a Y-axis motor 24 and an X-axis motor 25 (scan drive unit) that move the inspection head 3 relative to the workpiece placement plane 12 in the scan direction N. The calculation processing unit 91 moves the inspection head 3 in the scan direction N using the head drive mechanism 2, while causing the solid-state imaging element 41 to capture a line image Il formed by the illumination light Lv1 focused in the first inclined field of view Fv1 multiple times to acquire multiple line images Il (inclined field of view illumination images). The system then arranges the multiple line images Il to acquire a two-dimensional image of the workpiece W placed on the workpiece placement plane 12. This configuration reduces the width of the line image Il acquired each time. As a result, when capturing an image from the first inclined direction V1, the difference in telecentricity of the imaging lens 33 between the front and back in the tilt direction is reduced, allowing a two-dimensional image of the workpiece W to be captured.

[0089] Additionally, a bandpass filter 452 (illumination light transmission filter) is provided between the solid-state imaging element 41 and the imaging lens 33, arranged so as to at least partially overlap the first inclined field of view Fv1. This bandpass filter 452 allows light of the wavelength of the illumination light Lv1 to pass through while restricting the transmission of light of the wavelength of the pattern light Lp1. In response to this, the calculation processing unit 91 acquires a line image Il composed of light imaged in a region of the first inclined field of view Fv1 that overlaps with the bandpass filter 452. With this configuration, the bandpass filter 452 can suppress the influence of the pattern light Lp1, while allowing the line image Il formed by the illumination light Lv1 to be appropriately acquired.

[0090] The system also includes a Y-axis motor 24 and an X-axis motor 25 (scan drive unit) that move the inspection head 3 in the scan direction N relative to the workpiece placement plane 12. The calculation processing unit 91 moves the inspection head 3 in the scan direction N using the head drive mechanism 2, while causing the solid-state imaging element 41 to capture a line image Il formed by the pattern light Lp1 focused in the frontal field of view region Fo multiple times to acquire multiple line images Il (frontal field of view pattern images). A three-dimensional image of the workpiece W placed on the workpiece placement plane 12 is acquired by arranging the multiple line images Il. This configuration reduces the width of the line image Il acquired each time. As a result, when capturing an image from the first inclined direction V1, the difference in telecentricity of the imaging lens 33 between the front and back in the tilt direction is reduced, allowing a three-dimensional image of the workpiece W to be captured.

[0091] Furthermore, a bandpass filter 451 (pattern light transmitting filter) is provided between the solid-state imaging element 41 and the imaging lens 33, and is arranged so as to at least partially overlap the frontal field of view Fo. This bandpass filter 451 allows the transmission of light with the wavelength of the pattern light Lp1, while restricting the transmission of light with the wavelength of the illumination light Lv1. In response to this, the calculation processing unit 91 acquires, as a line image Il, an image formed by light focused in a region of the frontal field of view Fo that overlaps with the bandpass filter 451. With this configuration, the bandpass filter 451 can suppress the influence of the illumination light Lo, and the line image Il formed by the pattern light Lp1 can be appropriately acquired.

[0092] A bandpass filter 452 is also provided between the solid-state imaging element 41 and the imaging lens 33, positioned adjacent to the bandpass filter 451 and partially overlapping the frontal field of view Fo. This bandpass filter 452 allows light with the wavelength of the illumination light Lo to pass through while restricting light with the wavelength of the pattern light Lp1 from passing through. In response to this, the arithmetic processing unit 91 causes the head driving mechanism 2 to relatively move the inspection head 3 in the scanning direction N, and causes the solid-state imaging element 41 to capture a line image Il formed by the illumination light Lo in an area of ​​the frontal field of view Fo that overlaps the bandpass filter 452, thereby acquiring multiple line images Il (frontal field illumination images). The multiple line images Il are then arranged to acquire a two-dimensional image of the workpiece W placed on the workpiece placement plane 12. With this configuration, the width of the line image Il acquired each time can be reduced. As a result, it is possible to suppress the difference in telecentricity of the imaging lens 33 between the front and back in the tilt direction during imaging, and to capture a two-dimensional image of the workpiece W. Moreover, it is possible to appropriately acquire the line image Il by the illumination light Lo while suppressing the influence of the pattern light Lp1 by the bandpass filter 452.

[0093] The inspection head 3 is also provided with a Y-axis motor 24 and an X-axis motor 25 (scan drive unit) that move the inspection head 3 in the scan direction N relative to the workpiece mounting plane 12, and an R-axis motor 27 (rotation drive unit) that rotates the inspection head 3 around a rotation axis Az parallel to the Z direction. With this configuration, the inspection head 3 can be rotated appropriately in response to changes in the scan direction N.

[0094] As described above, in the above embodiment, the inspection device 1 corresponds to an example of the "inspection device" of the present invention, the workpiece mounting plane 12 corresponds to an example of the "mounting plane" of the present invention, the Y-axis motor 24 and the X-axis motor 25 correspond to an example of the "scan driving unit" of the present invention, the R-axis motor 27 corresponds to an example of the "rotation driving unit" of the present invention, the camera 32 corresponds to an example of the "camera" of the present invention, the imaging lens 33 corresponds to an example of the "imaging lens" of the present invention, the illumination system 34 corresponds to an example of the "illumination system" of the present invention, the solid-state imaging element 41 corresponds to an example of the "imaging element" of the present invention, the bandpass filter 451 corresponds to an example of the "pattern light transmitting filter" of the present invention, the bandpass filter 452 corresponds to an example of the "illumination light transmitting filter" of the present invention, the coaxial illumination unit 51 corresponds to an example of the "coaxial illumination unit" of the present invention, the first tilt optical system 61 corresponds to an example of the "first tilt optical system" of the present invention, the second tilt optical system 62 corresponds to an example of the "second tilt optical system" of the present invention, the first pattern irradiation unit 81 corresponds to an example of the "first pattern irradiation unit" of the present invention, the second pattern irradiation unit 82 corresponds to an example of the "second pattern irradiation unit" of the present invention, The processing unit 91 corresponds to an example of a "control unit" of the present invention, the front field of view area Fo corresponds to an example of a "front field of view area" of the present invention, the first inclined field of view area Fv1 or the second inclined field of view area Fv2 corresponds to an example of an "inclined field of view area" of the present invention, the line image Il corresponds to an example of an "inclined field of view illumination image" of the present invention, the line image Il corresponds to an example of a "front field of view pattern image" of the present invention, the line image Il corresponds to an example of a "front field of view illumination image" of the present invention, the coaxial light Lc corresponds to an example of a "coaxial light" of the present invention, and the illumination lights Lo, Lv1, and Lv2 correspond to an "illumination The first and second cutting directions Q1 and Q2 correspond to an example of the "first cutting direction" of the present invention, the second and second cutting directions Q1 and Q2 correspond to an example of the "second cutting direction" of the present invention, the first and second inclination directions V1 and V2 correspond to an example of the "first inclination direction" of the present invention, the workpiece W corresponds to an example of the "object to be inspected" of the present invention, and the Z direction corresponds to an example of the "facing direction" of the present invention.

[0095] The present invention is not limited to the above-described embodiment, and various modifications can be made to the above-described embodiment without departing from the spirit of the present invention. For example, modifications can be made as follows.

[0096] Figure 8 is a side view showing a schematic configuration of a second example of the inspection head. Here, differences from the first example in Figure 3 will be mainly described, and points in common with the first example will be denoted by the corresponding reference numerals and description thereof will be omitted as appropriate. The difference between the first and second examples is that an optical path adjustment member 63 is provided on the direct optical path Oo. The optical path adjustment member 63 adjusts the progression of light from the object plane P1 to the imaging lens 33 on the direct optical path Oo.

[0097] Specifically, the optical path adjustment member 63 has a reflecting member 631 that reflects light emitted from the object plane P1 in the Z direction toward the N2 side in the scanning direction N, a reflecting member 632 that reflects the light from the reflecting member 631 upward in the Z direction, a reflecting member 633 that reflects the light from the reflecting member 632 toward the N1 side in the scanning direction N, and a reflecting member 634 that reflects the light from the reflecting member 633 upward in the Z direction and guides it to the imaging lens 33. The reflecting members 631, 632, 633, and 634 are, for example, mirrors or prisms.

[0098] In this way, the optical path adjustment member 63 detours light traveling from the object surface P1 to the imaging lens 33 on the direct optical path Oo. Here, detour means that, rather than causing the light to travel straight in the Z direction from the object surface P1 to the imaging lens 33, the light emitted from the object surface P1 in the Z direction is guided in a direction different from the Z direction and then travels in the Z direction to be incident on the imaging lens 33. This causes the object surface P1 corresponding to the direct optical path Oo to coincide with the object surface P2 corresponding to the first inclined optical path Ov1 and the second inclined optical path Ov2.

[0099] 8, the first inclined direction V1 and the second cutting direction Q2 are aligned, and the reflecting member 613 of the first inclined optical path Ov1 is positioned on the optical path of the pattern light Lp2. Therefore, the reflecting member 613 needs to reflect the light from the object plane P2 to the reflecting member 612 and transmit the light from the second pattern irradiation unit 82 to the object plane P1. For this reason, a half mirror, for example, is used as the reflecting member 613.

[0100] Furthermore, the second inclined direction V2 and the first cutting direction Q1 coincide with each other, and the reflecting member 623 of the second inclined optical path Ov2 is located on the optical path of the pattern light Lp1. Therefore, the reflecting member 623 needs to reflect light from the object plane P2 to the reflecting member 622, while transmitting light from the first pattern irradiation unit 8182 to the object plane P1. For this reason, a half mirror, for example, is used as the reflecting member 623.

[0101] 8 , the object plane P1 of the front-facing optical path Oo, which is the optical path along which light emitted from the workpiece mounting plane 12 in the Z direction reaches the solid-state imaging element 41 via the imaging lens 33, coincides with the object plane P2 of the first inclined optical path Ov1, which is the optical path along which light emitted from the workpiece mounting plane 12 in the first inclined direction V1 reaches the solid-state imaging element 41 via the first inclined optical system 61 and the imaging lens 33. In this configuration, for example, irradiation and imaging of the illumination light Lv1 and irradiation and imaging of the pattern light Lp1 on the workpiece W mounted on the workpiece mounting plane 12 can be performed in parallel. Therefore, two-dimensional images and three-dimensional images of the workpiece W can be efficiently acquired.

[0102] Furthermore, the object plane P2 of the second inclined optical path Ov2, which is an optical path along which light emitted from the workpiece mounting plane 12 in the second inclined direction V2 reaches the solid-state imaging element 41 via the second inclined optical system 62 and the imaging lens 33, coincides with the object plane P2 of the first inclined optical path Ov1, and the object plane P1 of the front-facing optical path Oo. With this configuration, for example, irradiation and imaging of the illumination light Lv1, irradiation and imaging of the pattern light Lp1, and irradiation and imaging of the pattern light Lp2 on the workpiece W mounted on the workpiece mounting plane 12 can be performed in parallel. Therefore, two-dimensional images and three-dimensional images of the workpiece W can be efficiently acquired.

[0103] Specifically, an optical path adjustment member 63 is provided, which is disposed between the workpiece placement plane 12 and the imaging lens 33 on the direct optical path Oo. This optical path adjustment member 63 diverts light traveling in the Z direction from the workpiece placement plane 12 and then emits the light in the Z direction toward the imaging lens 33, thereby causing the object plane P1 on the direct optical path Oo to coincide with the object plane P2 on the first inclined optical path Ov1. With this configuration, for example, irradiation and imaging of the illumination light Lv1 and irradiation and imaging of the pattern light Lp1 on the workpiece W placed on the workpiece placement plane 12 can be performed in parallel. Therefore, two-dimensional images and three-dimensional images of the workpiece W can be efficiently acquired.

[0104] Fig. 9A is a side view schematically showing the configuration of a third example of the inspection head, and Fig. 9B is a diagram schematically showing an optical path adjustment member used in the inspection head of Fig. 9A. Here, differences from the second example of Fig. 8 will be mainly described, and similarities with the second example will be denoted by corresponding reference numerals and description thereof will be omitted as appropriate. The difference between the second example and the third example is that an optical path adjustment member 64 is provided instead of the optical path adjustment member 63. The optical path adjustment member 64 adjusts the progression of light from the object plane P2 to the imaging lens 33 on each of the first inclined optical path Ov1 and the second inclined optical path Ov2.

[0105] 9A and 9B , an optical path adjustment member 64 is disposed on the image side of the imaging lens 33, specifically between the optical filter 45 and the imaging lens 33. The optical path adjustment member 64 has a glass plate 641 disposed relative to the first inclined optical path Ov1 and a glass plate 642 disposed relative to the second inclined optical path Ov2. The glass plates 641 and 642 have the same thickness G in the Z direction. Light traveling along the first inclined optical path Ov1 passes through the glass plate 641 and is then imaged in the first inclined field region Fv1 of the solid-state imaging element 41 via the optical filter 45. Light traveling along the second inclined optical path Ov2 passes through the glass plate 642 and is then imaged in the second inclined field region Fv2 of the solid-state imaging element 41 via the optical filter 45.

[0106] The glass plate 641 functions to make the optical path length on the image side of the imaging lens 33 in the first inclined optical path Ov1 longer than the optical path length on the image side of the imaging lens 33 in the head-on optical path Oo. Therefore, the optical path length on the object side of the imaging lens 33 in the first inclined optical path Ov1 is shorter than the optical path length on the object side of the imaging lens 33 in the head-on optical path Oo. Similarly, the glass plate 642 functions to make the optical path length on the image side of the imaging lens 33 in the second inclined optical path Ov2 longer than the optical path length on the image side of the imaging lens 33 in the head-on optical path Oo. Therefore, the optical path length on the object side of the imaging lens 33 in the second inclined optical path Ov2 is shorter than the optical path length on the object side of the imaging lens 33 in the head-on optical path Oo. As a result, the object plane P1 and the object plane P2 coincide.

[0107] Here, the lens magnification m of the imaging lens 33, the optical path difference ΔO1 between the first inclined optical path Ov1 on the object side and the direct optical path Oo, and the optical path difference ΔO2 between the first inclined optical path Ov1 on the image side and the direct optical path Oo have the following relationship: ΔO2=ΔO1×m 2 Furthermore, the thickness G of the glass plates 641 and 642 and the refractive index n of the glass plates 641 and 642 satisfy the following relationship: G=ΔO2 / ((n−1) / n).

[0108] 9A and 9B , a glass plate 641 is provided between the imaging lens 33 and the solid-state imaging element 41 in the first inclined optical path Ov1. This glass plate 641 propagates light incident from the imaging lens 33 inside the glass plate 641 and then emits it toward the solid-state imaging element 41, thereby causing the object plane P2 of the first inclined optical path Ov1 to coincide with the object plane P1 of the front-facing optical path Oo. With this configuration, for example, irradiation and imaging of the illumination light Lv1 and the pattern light Lp1 of the workpiece W placed on the workpiece placement plane 12 can be performed in parallel. Therefore, two-dimensional and three-dimensional images of the workpiece W can be efficiently acquired.

[0109] Similarly, a glass plate 642 is provided between the imaging lens 33 and the solid-state imaging element 41 in the second inclined optical path Ov2. This glass plate 642 causes the light incident from the imaging lens 33 to propagate inside the glass plate 642 and then emits it toward the solid-state imaging element 41, thereby causing the object plane P2 of the second inclined optical path Ov2 to coincide with the object plane P1 of the front-facing optical path Oo. With this configuration, for example, irradiation and imaging of the illumination light Lv2 and irradiation and imaging of the pattern light Lp1 of the workpiece W placed on the workpiece placement plane 12 can be performed in parallel. Therefore, two-dimensional images and three-dimensional images of the workpiece W can be efficiently acquired.

[0110] In the first example, the pattern light Lp1 incident on the object surface P1 from the first inclined direction V1 and diffusely reflected in the Z direction is imaged on the solid-state imaging element 41 via the direct optical path Oo, thereby capturing the line image Il. In the second and third examples, the line image Il can be captured using the diffusely reflected pattern light Lp1, as in the first example. However, in the second and third examples, the line image Il can also be captured using the pattern light Lp1 specularly reflected by the object surface P1.

[0111] That is, the first pattern irradiation unit 81 and the first tilting optical system 61 are arranged so that the direction in which the pattern light Lp1 incident on the workpiece mounting plane 12 from the first cutting direction Q1 is specularly reflected by the workpiece mounting plane 12 coincides with the first tilting direction V1. With this configuration, the pattern light Lp1 is irradiated onto the workpiece W having specular reflection characteristics from the first cutting direction Q1, and the pattern light Lp1 specularly reflected by the workpiece W can be guided to the imaging lens 33 by the first tilting optical system 61. Therefore, a three-dimensional image of the workpiece W having specular reflection characteristics can be further acquired by the single camera 32.

[0112] Furthermore, the second pattern irradiation unit 82 and the second tilt optical system 62 are arranged so that the direction in which the pattern light Lp2 incident on the workpiece mounting plane 12 from the second cutting direction Q2 is specularly reflected by the workpiece mounting plane 12 coincides with the second tilt direction V2. With this configuration, the pattern light Lp1, Lp2 is irradiated onto the workpiece W having specular reflection characteristics from the first and second cutting directions Q1, Q2, while the pattern light Lp1, Lp2 specularly reflected by the workpiece W can be guided to the imaging lens 33 by the first and second tilt optical systems 61, 62. Therefore, a three-dimensional image of the workpiece W having specular reflection characteristics can be further acquired by the single camera 32.

[0113] 10 is a side view showing a schematic configuration of a fourth example of the inspection head. Here, differences from the second example of FIG. 8 will be mainly described, and the commonalities with the second example will be denoted by corresponding reference numerals and will not be described as appropriate. The difference between the second example and the fourth example is that the first tilt optical system 61 and the second pattern irradiation unit 82 are arranged so that the first tilt direction V1 and the second cutting direction Q2 do not coincide with each other, and the second tilt optical system 62 and the first pattern irradiation unit 81 are arranged so that the second tilt direction V2 and the first cutting direction Q1 do not coincide with each other.

[0114] That is, the angle between the first inclination direction V1 and the workpiece placement plane 12 is different from the angle between the second cutting direction Q2 and the workpiece placement plane 12, and the angle between the second inclination direction V2 and the workpiece placement plane 12 is different from the angle between the first cutting direction Q1 and the workpiece placement plane 12. Therefore, the reflecting member 613 does not overlap the optical path of the pattern light Lp2 irradiated from the second pattern irradiation unit 82 to the object plane P2, and the reflecting member 623 does not overlap the optical path of the pattern light Lp1 irradiated from the first pattern irradiation unit 81 to the object plane P2. As a result, the pattern lights Lp1 and Lp2 irradiated to the workpiece placement plane 12 do not pass through the reflecting members 613 and 623 (half mirrors), resulting in a decrease in the light intensity of the pattern lights Lp1 and Lp2. In other words, it is possible to efficiently irradiate the pattern lights Lp1 and Lp2 in the required amount while acquiring a three-dimensional image of the workpiece W.

[0115] 11 is a diagram schematically illustrating a modified example of the relationship between the region of interest set on the solid-state imaging device and the optical filters. Here, the differences from the example of FIG. 5B will be mainly described, and the common features will be denoted by the corresponding reference numerals and will not be described as appropriate. The difference from the example of FIG. 5B is that both bandpass filters 451 and 452 are provided for the first inclined field of view region Fv1 and the second inclined field of view region Fv2.

[0116] That is, the bandpass filter 452 is provided so as to overlap edge regions Fve of the first inclined field of view Fv1 that are provided at both ends in the scan direction N. Therefore, the bandpass filter 452 allows the illumination lights Lo, Lv1, and Lv2 to be incident on the edge regions Fve of the first inclined field of view Fv1, while the bandpass filter 452 restricts the pattern lights Lp1 and Lp2 from being incident on the edge regions Fve of the first inclined field of view Fv1.

[0117] The bandpass filter 451 is also provided so as to overlap a central region Fvc of the first inclined field of view Fv1, which is provided between the end regions Fve on both ends in the scanning direction N. Therefore, the bandpass filter 451 allows the pattern lights Lp1 and Lp2 to be incident on the central region Fvc of the first inclined field of view Fv1, while the bandpass filter 451 restricts the illumination lights Lo, Lv1, and Lv2 from being incident on the central region Fvc of the first inclined field of view Fv1.

[0118] That is, a bandpass filter 451 (pattern light transmitting filter) is provided between the solid-state imaging element 41 and the imaging lens 33, partially overlapping the first inclined field of view Fv1 (inclined field of view) and adjacent to the bandpass filter 452. The bandpass filter 451 allows light of the wavelengths of the pattern lights Lp1 and Lp2 to pass through, while restricting the transmission of light of the wavelengths of the illumination lights Lo, Lv1, and Lv2. In response to this, the calculation processing unit 91 moves the inspection head 3 in the scan direction N using the Y-axis motor 24 and the X-axis motor 25, while causing the solid-state imaging element 41 to capture a line image Il multiple times, the line image Il being formed by the pattern lights Lp1 and Lp2 that are imaged in a central region Fvc of the first inclined field of view Fv1 that overlaps the bandpass filter 451, thereby acquiring multiple line images Il (inclined field of view pattern images), and then arranging the multiple line images Il to acquire a three-dimensional image of the workpiece W placed on the workpiece placing plane 12. With this configuration, the width of the line image Il acquired at one time can be reduced. As a result, when imaging from the first inclined direction V1, the difference in telecentricity of the imaging lens 33 between the front and back in the tilt direction can be reduced, allowing a three-dimensional image of the workpiece W to be captured. Moreover, the bandpass filter 451 can appropriately acquire the line image Il while suppressing the influence of the illumination lights Lo, Lv1, and Lv2.

[0119] Similarly to the first inclined field of view Fv1, the second inclined field of view Fv2 is also provided with a band-pass filter 451 and a band-pass filter 452. The calculation processing unit 91 then executes the same control on the second inclined field of view Fv2 as on the first inclined field of view Fv1.

[0120] Furthermore, modifications other than those described above may be made. For example, the coaxial illuminator 511 may emit R (red), G (green), and B (blue) visible light. In this case, the R, G, and B visible light may be used to capture R, G, and B line images Il, respectively. Note that, in order to capture the R, G, and B line images Il separately, the inspection head 3 may be configured to focus R, G, and B in different regions of interest on the solid-state imaging element 41. Alternatively, the optical filter 45 may be provided with R, G, and B color filters, or the line image Il may be captured while the R, G, and B lights are sequentially turned on in the coaxial illuminator 511.

[0121] Furthermore, instead of driving the inspection head 3 , the workpiece placement plane 12 may be driven to move the inspection head 3 in the scanning direction N relative to the workpiece placement plane 12 .

[0122] Furthermore, the specific configurations of the first tilting optical system 61 and the second tilting optical system 62 are not limited to the above example, and the number and arrangement of reflecting members and the like can be changed as appropriate.

[0123] DESCRIPTION OF SYMBOLS 1... Inspection device 12... Workpiece placement plane (placement plane) 24... Y-axis motor (scan drive unit) 25... X-axis motor (scan drive unit) 27... R-axis motor (rotation drive unit) 32... Camera 33... Imaging lens 34... Illumination system 41... Solid-state imaging element (imaging element) 451... Bandpass filter (pattern light transmission filter) 452... Bandpass filter (illumination light transmission filter) 51... Coaxial illumination unit 61... First tilted optical system 62... Second tilted optical system 81... First pattern irradiation unit 82... Second pattern irradiation unit 91... Arithmetic processing unit (control unit) Fo... Frontal field of view area Fv1... First tilted field of view area (tilted field of view area) Fv2... Second tilted field of view area (tilted field of view area) Il... Line image (tilted field illumination image, frontal field pattern image, frontal field illumination image) Lc... Coaxial light Lo, Lv1, Lv2... Illumination light Lp1, Lp2...pattern light N...scanning direction Q1...first cutting direction Q2...second cutting direction V1...first tilt direction V2...second tilt direction W...workpiece (object to be inspected) Z...Z direction (facing direction)

Claims

1. An inspection device comprising: a camera having an imaging element that images received light; an imaging lens provided on the object side and facing a mounting plane on which an inspection object is placed from a predetermined facing direction; a first tilted optical system that guides light from the mounting plane in a first tilted direction tilted with respect to the facing direction to the imaging lens; an illumination system that generates illumination light to be irradiated toward the mounting plane; and a first pattern irradiation unit that irradiates the mounting plane with linear pattern light from a first cutting direction tilted with respect to the facing direction to measure the shape of the inspection object placed on the mounting plane by a light cutting method, wherein the imaging lens images light reflected from the mounting plane in the facing direction on the imaging element, and images light reflected from the mounting plane in the first tilted direction and guided by the first tilted optical system on the imaging element.

2. The inspection device described in claim 1, wherein the illumination system has a coaxial illumination unit that generates coaxial light that passes through the imaging lens in the facing direction from an image side opposite the object side toward the object side, the first tilting optical system generates the illumination light that faces the mounting plane from the first tilting direction by changing the traveling direction of a portion of the coaxial light to the first tilting direction, and the imaging lens generates the illumination light that faces the mounting plane from the facing direction by emitting light of the coaxial light that is different from the portion of the light in the facing direction.

3. An inspection device as described in claim 1 or 2, wherein an object surface of a front optical path, which is an optical path along which light emitted in the front direction from the mounting plane reaches the imaging element via the imaging lens, coincides with an object surface of a first inclined optical path, which is an optical path along which light emitted in the first inclined direction from the mounting plane reaches the imaging element via the first inclined optical system and the imaging lens.

4. An inspection device as described in claim 3, further comprising an optical path adjustment member arranged between the mounting plane and the imaging lens in the direct optical path, wherein the optical path adjustment member diverts light traveling in the direct optical path from the mounting plane and then emits the light in the direct optical path toward the imaging lens in the direct optical path, thereby causing an object surface of the direct optical path to coincide with an object surface of the first inclined optical path.

5. An inspection device as described in claim 3, further comprising an optical path adjustment member arranged between the imaging lens and the imaging element in the first inclined optical path, wherein the optical path adjustment member causes the light incident from the imaging lens to propagate inside the optical path adjustment member and then emits the light toward the imaging element, thereby making the object surface of the first inclined optical path coincide with the object surface of the direct optical path.

6. An inspection device described in any one of claims 3 to 5, wherein the first pattern irradiation unit and the first tilt optical system are arranged so that the direction in which the pattern light incident on the mounting plane from the first cutting direction is specularly reflected on the mounting plane coincides with the first tilt direction.

7. The inspection device of claim 1, further comprising: a second tilt optical system that guides light from the mounting plane toward the imaging lens in a second tilt direction tilted with respect to the facing direction; and a second pattern irradiation unit that irradiates the mounting plane with linear pattern light from a second cutting direction tilted with respect to the facing direction with respect to the optical axis of the imaging lens by a light cutting method, wherein the first tilt optical system is arranged on one side, the first pattern irradiation unit is arranged on the other side opposite to the one side, the second tilt optical system is arranged on the other side, and the second pattern irradiation unit is arranged on the one side.

8. The inspection device described in claim 7, wherein an object surface of a front optical path, which is an optical path along which light emitted in the front direction from the mounting plane reaches the imaging element via the imaging lens, an object surface of a first inclined optical path, which is an optical path along which light emitted in the first inclined direction from the mounting plane reaches the imaging element via the first inclined optical system and the imaging lens, and an object surface of a second inclined optical path, which is an optical path along which light emitted in the second inclined direction from the mounting plane reaches the imaging element via the second inclined optical system and the imaging lens, coincide with each other.

9. An inspection device as described in claim 8, wherein the first pattern irradiation unit and the first tilting optical system are arranged so that the direction in which the pattern light incident on the mounting plane from the first cutting direction is specularly reflected by the mounting plane coincides with the first tilting direction, and the second pattern irradiation unit and the second tilting optical system are arranged so that the direction in which the pattern light incident on the mounting plane from the second cutting direction is specularly reflected by the mounting plane coincides with the second tilting direction.

10. An inspection device as described in claim 9, wherein an angle between the first inclination direction and the placement plane is different from an angle between the second cutting direction and the placement plane, and an angle between the second inclination direction and the placement plane is different from an angle between the first cutting direction and the placement plane.

11. An inspection device as described in claim 1, further comprising a control unit that sets a front viewing area and an inclined viewing area for the imaging element, wherein the imaging lens images light emitted in the front direction from the mounting plane in the front viewing area of ​​the imaging element, and images light emitted in the first inclined direction from the mounting plane and guided by the first inclined optical system in the inclined viewing area of ​​the imaging element.

12. The inspection device of claim 11, further comprising a scan drive unit that moves an inspection head including the imaging element, the imaging lens, the first tilted optical system, the illumination system and the first pattern irradiation unit in a scan direction relative to the placement plane, wherein the control unit acquires a plurality of inclined field-of-view illumination images by causing the imaging element to perform imaging of an image constituted by the illumination light focused on the inclined field-of-view area multiple times while moving the inspection head relatively in the scan direction using the scan drive unit, and arranging the multiple inclined field-of-view illumination images to acquire a two-dimensional image of the object to be inspected placed on the placement plane.

13. The inspection device described in claim 12, further comprising an illumination light transmission filter arranged between the imaging element and the imaging lens so as to at least partially overlap the inclined field of view, wherein the illumination light transmission filter allows the transmission of light of the wavelength of the illumination light while restricting the transmission of light of the wavelength of the pattern light, and the control unit acquires, as the inclined field of view illumination image, an image constituted by light focused in a region of the inclined field of view that overlaps with the illumination light transmission filter.

14. The inspection device of claim 13, further comprising a pattern light transmission filter disposed adjacent to the illumination light transmission filter while partially overlapping the inclined field of view area between the imaging element and the imaging lens, the pattern light transmission filter allowing the transmission of light of the wavelength of the pattern light while restricting the transmission of light of the wavelength of the illumination light, and the control unit, while moving the inspection head relatively in the scan direction using the scan driving unit, causes the imaging element to perform multiple captures of an image constituted by the pattern light focused in a region of the inclined field of view that overlaps with the pattern light transmission filter, thereby obtaining multiple inclined field of view pattern images, and arranging the multiple inclined field of view pattern images to obtain a three-dimensional image of the inspection object placed on the placement plane.

15. The inspection device of claim 11, further comprising a scan drive unit that moves an inspection head including the image sensor, the image sensor lens, the first tilted optical system, the illumination system and the first pattern irradiation unit in a scanning direction relative to the placement plane, wherein the control unit obtains a plurality of frontal field pattern images by causing the image sensor to perform imaging of an image constituted by the pattern light focused in the frontal field area multiple times while moving the inspection head relative to the placement plane using the scan drive unit, and arranging the multiple frontal field pattern images to obtain a three-dimensional image of the object to be inspected placed on the placement plane.

16. The inspection device described in claim 15, further comprising a pattern light transmitting filter arranged between the imaging element and the imaging lens so as to at least partially overlap the frontal field of view area, wherein the pattern light transmitting filter allows the transmission of light of the wavelength of the pattern light while restricting the transmission of light of the wavelength of the illumination light, and the control unit acquires, as the frontal field of view pattern image, an image constituted by light focused in a region of the frontal field of view that overlaps with the pattern light transmitting filter.

17. The inspection device of claim 16, further comprising an illumination light transmission filter disposed adjacent to the pattern light transmission filter while partially overlapping the frontal field of view area between the imaging element and the imaging lens, the illumination light transmission filter allowing the transmission of light of the wavelength of the illumination light while restricting the transmission of light of the wavelength of the pattern light, and the control unit, while moving the inspection head relatively in the scan direction using the scan driving unit, causes the imaging element to perform multiple captures of an image constituted by the illumination light focused in an area of ​​the frontal field of view that overlaps with the illumination light transmission filter, thereby obtaining multiple frontal field illumination images, and arranging the multiple frontal field illumination images to obtain a two-dimensional image of the inspection object placed on the placement plane.

18. The inspection device of claim 1, further comprising: a scan drive unit that moves an inspection head including the imaging element, the imaging lens, the first tilt optical system, the illumination system and the first pattern irradiation unit relatively in a scan direction with respect to the placement plane; and a rotation drive unit that rotates the inspection head around a rotation axis parallel to the facing direction.

19. An inspection method for inspecting an object to be inspected based on an image captured by an imaging lens provided on an object side and facing a mounting plane on which an object to be inspected is placed from a predetermined facing direction, the imaging lens focusing light incident from the object side on an imaging element of a camera, the inspection method comprising: a step of generating illumination light to be irradiated toward the mounting plane; a step of irradiating the mounting plane with linear pattern light from a first cutting direction inclined with respect to the facing direction for measuring the shape of the object to be inspected placed on the mounting plane by a light cutting method; a step of guiding light from the mounting plane toward a first inclined direction inclined with respect to the facing direction to the imaging lens by a first inclined optical system; a step of imaging the light reflected from the mounting plane in the facing direction on the imaging element by the imaging lens; and a step of imaging the light reflected from the mounting plane in the first inclined direction and directed by the first inclined optical system on the imaging element by the imaging lens.

Citation Information

Patent Citations

  • Visual inspection apparatus and manufacturing method of semiconductor device which uses the apparatus

    JP2000292126A

  • Image input optical system and three dimensional shape measuring device

    JP2003139518A

  • Displacement sensor

    WO2001073375A1