OPTICAL INSPECTION METHOD, OPTICAL INSPECTION PROGRAM, AND OPTICAL INSPECTION APPARATUS
The optical inspection method uses complementary light wavelengths and image processing to determine the direction of light beams, improving the accuracy of surface defect detection in optical inspection.
Patent Information
- Application Number
- JP2021136474
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-08-24
AI Technical Summary
Existing optical inspection methods struggle to accurately determine the direction of light beams, which is crucial for obtaining information about the surface state of objects, particularly in identifying surface unevenness and defects.
An optical inspection method using light beams of different wavelengths, where the intensity of these beams is complementary, and image processing is performed to convolve image filters on the acquired images to extract surface information, including the direction of light rays.
This approach allows for precise identification of surface unevenness and defects by capturing images that reflect the direction of light beams, enhancing the accuracy of optical inspection.
Smart Images

Figure 0007566703000001 
Figure 0007566703000002 
Figure 0007566703000003
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to an optical inspection method, an optical inspection program, and an optical inspection apparatus. [Background technology]
[0002] Non-contact optical inspection of objects is becoming important in various industries. In optical inspection, identifying the direction of light is important to know object information. Conventionally, there is a method for identifying the direction of light using a quantity called hue. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-203796 A [Patent Document 2] JP 2019-124542 A [Non-patent literature]
[0004] [Non-Patent Document 1] WL Hows, "Rainbow schlieren and its applications", Appl. Optics, vol. 23, No. 14, 1984. Summary of the Invention [Problem to be solved by the invention]
[0005] The problem to be solved by the present invention is to provide an optical inspection method, an optical inspection program, and an optical inspection apparatus for acquiring an image including information regarding the direction of light rays from a test object and inspecting the surface condition of the test object. [Means for solving the problem]
[0006] According to an embodiment, an optical inspection method for inspecting an object includes emitting a light beam having a first wavelength and a light beam having a second wavelength different from the first wavelength toward an imaging unit in accordance with a light beam direction from an object, with the light beam intensity of the first wavelength and the light beam intensity of the second wavelength being in a complementary relationship, and causing the imaging unit to obtain first image information related to the light beam having the first wavelength and second image information related to the light beam having the second wavelength, respectively; performing a calculation process in which an image filter is convolved with at least one of the first image information and the second image information; The method comprises comparing the first image information and the second image information to extract topography information of the object. When performing arithmetic processing by convolving the first image information and the second image information with the image filter, arithmetic processing is performed by convolving the first image information with a first image filter, and arithmetic processing is performed by convolving the second image information with a second image filter different from the first image filter. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a schematic block diagram showing an optical inspection system according to first and second embodiments. [Diagram 2] FIG. 2 is a schematic perspective view showing a part of an optical inspection device of the optical inspection system according to the first embodiment. [Diagram 3] FIG. 2 is a schematic diagram showing a part of an optical inspection device of the optical inspection system according to the first embodiment. [Figure 4] FIG. 4 is a schematic diagram showing color filters of the optical device of the optical inspection device shown in FIGS. 2 and 3. [Diagram 5] FIG. 4 is a view showing an example of an image filter program used in the optical inspection device of the optical inspection system according to the first and second embodiments. [Figure 6] Photographs showing RGB image data, R image data, G image data, and B image data captured using the optical inspection device of the optical inspection system according to the first embodiment. [Figure 7] Photographs showing RGB image data, R image data, G image data, and B image data captured using a normal camera under ambient light. [Figure 8] 5 is a flowchart showing a calculation process for acquiring surface information (unevenness information) of a specimen using the optical inspection device of the optical inspection system according to the first embodiment. [Figure 9]9 is a schematic diagram showing a state in which calculated image data is output from R image data and B image data using the flowchart shown in FIG. 8. [Figure 10] FIG. 9 is a schematic diagram showing a state in which calculated image data is output from R image data and B image data using a part of the flowchart shown in FIG. 8 . [Figure 11] 9 is a schematic diagram showing a state in which the order of some of the steps in the flowchart shown in FIG. 8 is changed and calculated image data is output from R image data and B image data. [Figure 12] FIG. 11 is a schematic perspective view showing a part of an optical inspection device of an optical inspection system according to a second embodiment. [Figure 13] 13 is a schematic cross-sectional view of the optical inspection device of the optical inspection system shown in FIG. 12 when viewed from a first plane including an optical axis. [Figure 14] 13 is a schematic cross-sectional view of the optical inspection device of the optical inspection system shown in FIG. 12 when viewed from a second plane including the optical axis. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Each embodiment will be described below with reference to the drawings. The drawings are schematic or conceptual, and the relationship between the thickness and width of each part, the size ratio between parts, etc. are not necessarily the same as the actual ones. Even when the same part is shown, the dimensions and ratios of each part may be different depending on the drawing. In this specification and each drawing, elements similar to those described above with respect to the previous drawings are given the same reference numerals, and detailed descriptions are omitted as appropriate.
[0009] (First embodiment) An optical inspection system 2 according to this embodiment will be described with reference to FIGS.
[0010] 1 is a block diagram showing an example of the configuration of an optical inspection system 2 according to this embodiment. As shown in FIG. 1, the optical inspection system 2 includes an optical inspection device 4 and a display 6.
[0011] The optical inspection device 4 includes an optical device 12, an imaging unit 14, a light source 16, a processor 18, a storage unit 20, a ROM (Read Only Memory) 22, and a RAM (Random Access Memory) 24. The optical device 12 and the imaging unit 14 constitute a so-called camera 13.
[0012] As shown in FIG. 2, the optical device 12 includes an imaging optical system (imaging lens) 32 and a color filter (multi-wavelength aperture) .
[0013] The imaging optical system 32 is formed by combining one or more lenses. The imaging optical system 32 forms an image of light rays from the subject. The optical axis C of the imaging optical system 32 coincides with the optical axis (central axis) of the color filter 34. The color filter 34 is disposed on a focal plane at a distance f from the imaging optical system 32, and rotationally symmetrical with respect to the optical axis of the imaging optical system 32. The image capturing unit 14 is disposed on the optical path of light passing through the imaging optical system 32 and the color filter 34. The image capturing unit 14 is provided on an imaging plane at a distance L (>f) from the imaging optical system 32.
[0014] Light is a type of electromagnetic wave, and includes X-rays, ultraviolet rays, visible light, infrared rays, microwaves, etc. In this embodiment, the light is considered to be visible light, and has a wavelength in the range of 400 nm to 760 nm, for example.
[0015] Fig. 3 is an enlarged view of a part of the optical device 12 and the imaging unit 14 shown in Fig. 2. As shown in Fig. 3, for example, a light ray L11 specularly reflected at an object point O of the subject S and light rays L21 and L31 scattered at appropriate angles are refracted by the imaging optical system 32, and light rays L12, L22, and L32 are imaged on an imaging surface 14a of the imaging unit 14.
[0016] 4, in this embodiment, the color filter 34 has a first wavelength-selecting filter (wavelength-selecting region) 42, a second wavelength-selecting filter (wavelength-selecting region) 44, and a third wavelength-selecting filter (wavelength-selecting region) 46. The first wavelength-selecting filter 42, the second wavelength-selecting filter 44, and the third wavelength-selecting filter 46 are formed concentrically. The color filter 34 has a property of transmitting light rays of a specific wavelength (wavelength spectrum) for each of the wavelength-selecting filters 42, 44, and 46, and blocking light rays of wavelengths other than the specific wavelengths.
[0017] The first wavelength-selecting filter 42 is formed in a disk shape. The first wavelength-selecting filter 42 is provided on the optical axis C of the imaging optical system 32. The first wavelength-selecting filter 42 passes a light beam of a first wavelength from the subject that has passed through the imaging optical system 32. The first wavelength-selecting filter 42 has a property of blocking light beams of wavelengths different from the first wavelength (specific wavelength) and not transmitting them.
[0018] The second wavelength-selecting filter 44 is formed in an annular shape on the outer periphery of the first wavelength-selecting filter 42. The second wavelength-selecting filter 44 passes light rays of a second wavelength different from the first wavelength from the subject that has passed through the imaging optical system 32. The radial width of the second wavelength-selecting filter 44 can be set appropriately. The second wavelength-selecting filter 44 has the property of blocking light rays of a wavelength different from the second wavelength (specific wavelength) and not transmitting the same.
[0019] The third wavelength-selecting filter 46 is formed in an annular shape on the outer periphery of the second wavelength-selecting filter 44. The third wavelength-selecting filter 46 passes light rays of a third wavelength, which is different from the first wavelength and the second wavelength and which have passed through the imaging optical system 32 and are from the subject. The radial width of the third wavelength-selecting filter 46 can be set appropriately. The third wavelength-selecting filter 46 has the property of blocking light rays of a wavelength different from the third wavelength (specific wavelength) and not transmitting the same.
[0020] It is preferable that the first wavelength does not overlap with the second wavelength and the third wavelength. It is also preferable that the second wavelength does not overlap with the third wavelength. Therefore, the first wavelength, the second wavelength, and the third wavelength are independent of each other.
[0021] The color filter 34 has a light shielding portion 48 on the outer periphery of the third wavelength selection filter 46. The light shielding portion 48 is formed of, for example, a black plate, and holds the third wavelength selection filter 46. The third wavelength selection filter 46 holds the second wavelength selection filter 44. The second wavelength selection filter 44 holds the first wavelength selection filter 42. The color filter 34 may be configured such that the wavelength of light that is transmitted changes continuously, for example, from the inside to the outside. That is, the color filter 34 is configured to pass light of the same wavelength in a circular shape from the inside to the outside around a common central axis, but not to pass light of different wavelengths.
[0022] The radius of the outer periphery of the first wavelength-selecting filter 42 of the color filter 34 is r1, the radius of the outer periphery of the second wavelength-selecting filter 44 is r2, and the outer radius of the third wavelength-selecting filter 46 is r3. In this case, r3>r2>r1. Here, the area within the radius r1 of the first wavelength-selecting filter 42 is A1. The area between the outer periphery of the first wavelength-selecting filter 42 and the outer periphery of the second wavelength-selecting filter 44 is A2. The area between the outer periphery of the second wavelength-selecting filter 44 and the outer periphery of the third wavelength-selecting filter 46 is A3.
[0023] The radius r1 of the first wavelength-selecting filter 42, the distance r2-r1 between the outer periphery of the first wavelength-selecting filter 42 and the outer periphery of the second wavelength-selecting filter 44, and the distance r3-r2 between the outer periphery of the second wavelength-selecting filter 44 and the outer periphery of the third wavelength-selecting filter 46 can be set appropriately. More specifically, the radius r1 of the first wavelength-selecting filter 42 of the color filter 34, the radius r2 of the second wavelength-selecting filter 44, and the radius r3 of the third wavelength-selecting filter 46 can be changed. Therefore, the shapes and sizes of the regions A1, A2, and A3 can be changed.
[0024] In the optical device 12 according to this embodiment, among the light rays emitted from an arbitrary object point O of the subject S, when the light rays enter the imaging optical system 32, blue (B) light whose principal ray is parallel to the optical axis C is separated as a blue light ray. That is, the optical device 12 according to this embodiment is a telecentric optical system having telecentricity for blue light. On the other hand, the optical device 12 according to this embodiment is a non-telecentric optical system having no telecentricity for red (R) light and green (G) light.
[0025] In this embodiment, for the sake of simplicity, the color filter 34 is assumed to transmit, for example, certain wavelengths of visible light for each of the wavelength selection filters 42, 44, and 46, and block, i.e., prevent transmission of, wavelengths outside of the certain wavelengths.
[0026] In this embodiment, for the sake of convenience, the wavelengths of red (R) light, green (G) light, and blue (B) light are set to 700 nm, 546.1 nm, and 435.8 nm, respectively, as determined by the International Commission on Illumination (CIE: Commission Internationale de I'Eclairage).
[0027] In this embodiment, the area A1 of the first wavelength selection filter 42 passes, for example, blue light (435.8 nm) and B light having a first wavelength nearby the blue light, among visible light, and blocks light of other wavelengths. In this embodiment, the area A2 of the second wavelength selection filter 44 passes, for example, green light (546.1 nm) and G light having a second wavelength nearby the green light, among visible light, and blocks light of other wavelengths. In this embodiment, the area A3 of the third wavelength selection filter 46 passes, for example, red light (700 nm) and R light having a third wavelength nearby the red light, among visible light, and blocks light of other wavelengths. In this embodiment, it is preferable that the first wavelength range passed by the area A1 of the first wavelength selection filter 42, the second wavelength range passed by the area A2 of the second wavelength selection filter 44, and the third wavelength range passed by the area A3 of the third wavelength selection filter 46 do not overlap.
[0028] The optical device 12 has a half mirror (beam splitter) 36. The half mirror 36 is provided between the imaging optical system 32 and the subject S. The half mirror 36 illuminates the subject S with illumination light (white light) from the light source 16, and transmits light from the subject S to cause it to enter the imaging optical system 32.
[0029] The imaging unit 14 uses, for example, a so-called RGB camera. That is, the imaging unit 14 has three color channels of R, G, and B for each pixel. The imaging unit 14 can use, for example, a CMOS image sensor or a CCD image sensor. The imaging unit 14 has at least two pixels. A certain pixel and another certain pixel are in a close distance relationship. In the imaging unit 14 described in this embodiment, a large number of pixels are arranged, for example, in a lattice pattern, with a certain pixel being distant from another certain pixel and a certain pixel being close to another certain pixel, among all pixels.
[0030] As shown in FIG. 3, the imaging unit 14 images a light ray L12 of a first wavelength that has passed through an area A1 of the imaging optical system 32 and the first wavelength selective filter 42, a light ray L22 of a second wavelength that has passed through an area A2 of the imaging optical system 32 and the second wavelength selective filter 44, and a light ray L32 of a third wavelength that has passed through an area A3 of the imaging optical system 32 and the third wavelength selective filter 46.
[0031] As an example, a light source that emits white light of appropriate luminance is used as the light source 16. Therefore, the illumination light of the light source 16 includes red (R) light, green (G) light, and blue (B) light.
[0032] The processor 18 shown in FIG. 1 is, for example, an integrated circuit such as a central processing unit (CPU) or an application specific integrated circuit (ASIC). A general-purpose computer may be used as the processor 18. The processor 18 is not limited to being provided as a dedicated circuit, and may be provided as a program executed by a computer. In this case, the program is recorded in a storage area in the integrated circuit, the storage unit 20, or the like. The processor 18 is connected to the imaging unit 14 and the storage unit 20. The processor 18 calculates information related to the subject S based on the output of the imaging unit 14.
[0033] 1, the processor (processing circuit) 18 has a function as an image processing unit for image data (RGB image data Irgb, R image data Ir, G image data Ig, and B image data Ib) captured by the imaging unit 14. Note that the image data acquired by the imaging unit 14 is composed of at least two pixels.
[0034] The processor 18 may be located outside the optical inspection device 4. In this case, the output of the imaging unit 14 may be output to the outside of the optical inspection device 4 or recorded in the storage unit 20. In other words, the calculation of information related to the specimen S may be performed inside or outside the optical inspection device 4. The processor 18 may be located in a server in a cloud service that transmits and receives data via a network.
[0035] The processor 18, the ROM 22, and the RAM 24 are connected to each other via, for example, a bus. The storage unit 20, the ROM 22, and the RAM 24 are capable of communicating with the processor 18 mutually.
[0036] The storage unit 20 is a non-volatile memory such as a HDD, SSD, or flash memory, but may further include a volatile memory. The storage unit 20 stores an optical inspection program 20a according to the present embodiment. The optical inspection program 20a may be stored in the ROM 22.
[0037] The optical inspection program 20a may be pre-installed in the optical inspection device 4, stored in a non-volatile storage medium, or distributed via a network. The optical inspection program 20a may be located outside the optical inspection device 4, for example, on an appropriate server.
[0038] In this embodiment, the optical inspection program 20a includes various image filter programs (see FIG. 5) that selectively perform image filtering on various types of image data acquired by the imaging unit 14. That is, for example, various image filter programs are stored in the storage unit 20. The image filter programs can also be executed on a server via a network.
[0039] The processor 18 executes one or more image filter programs selected from those shown in FIG. 5 according to the image data, for example, by the optical inspection program 20a.
[0040] The image filter referred to here is a program that performs image filtering on the image obtained by the imaging unit 14. As shown in FIG. 5, various types of image filter programs can be used. The image filter program can be a suitable spatial filter such as a Sobel filter, a Canny filter, a Laplacian filter, an averaging filter, a median filter, a first-order differential filter, a prebit filter, etc. For this reason, the spatial filter referred to here includes a linear filter, a nonlinear filter, and other spatial differentials. In addition, as the image filter program, a low-pass filter using Fourier transform, a high-pass filter using Fourier transform, a band-pass filter using Fourier transform, an edge enhancement filter, an edge extraction filter, and other suitable programs can be used depending on the extraction target.
[0041] The processor 18 performs functions according to the flowchart shown in FIG. 8, for example, by writing an optical inspection program 20a stored in the storage unit 20 into the RAM 24 and executing the program.
[0042] The storage unit 20 stores the relationship between the optical axis C of the imaging optical system 32 and the color filter 34. The relationship between the optical axis C of the imaging optical system 32 and the color filter 34 includes, for example, the transmission wavelengths, blocking wavelengths, and arrangements of the first wavelength selecting filter 42, the second wavelength selecting filter 44, the third wavelength selecting filter 46, and the light blocking portion 48 of the color filter 34.
[0043] Here, a specimen S was prepared by artificially scratching a gray plastic plate, and the specimen S was inspected using the optical inspection device 4.
[0044] The specimen S has a standard surface S1 on which an abnormal portion (scratch portion) S2 with a width and depth of, for example, about 0.5 mm and a length of about 10 mm is formed. The boundary between the standard surface S1 and the abnormal portion S2 is defined as an edge portion S3. The standard surface S1 of the specimen S is preferably formed as a smooth plane, but fine scratches are formed thereon.
[0045] FIG. 6 shows RGB image data Irgb, R image data Ir, G image data Ig, and B image data Ib obtained when a subject S including a standard surface S1, an abnormal portion S2, and an edge portion S3 is imaged by the camera 13 according to this embodiment.
[0046] The area A1 of the first wavelength selection filter 42 of the color filter 34 of the camera 13 according to this embodiment shown in FIG. 2 to FIG. 4 passes the B light of the specular reflection light component from the subject S, but blocks the R light and G light of the scattered light components. Therefore, only the specular reflection component is incident on the imaging unit 14 as the B light and is imaged as the B image data (first image data) Ib by the imaging unit 14. Note that the specular reflection component is not limited to a component completely parallel to the optical axis C, and appropriate deviation is allowed. In this embodiment, the specular reflection component is in the range of 0≦θb shown in FIG. 3 when the direction along the optical axis C is set to 0. Note that the angle θb can be appropriately changed. This angle θb depends on the distance between the subject S and the color filter 34, the radius r1 of the area A1 of the first wavelength selection filter 42 of the color filter 34, and the like.
[0047] The area A2 of the second wavelength selective filter 44 of the color filter 34 of the camera 13 passes the G light having a first scattering angle θg (θb≦θg<θr) with respect to the optical axis C, but blocks the B light of the specular reflection light component and the R light having a different second scattering angle θr (θr≦θ). Therefore, only the first scattering angle component is incident on the imaging unit 14 as the G light and is imaged as the G image data (third image data) Ig by the imaging unit 14. The angle θg depends on the distance between the subject S and the color filter 34, the size of the area A2 of the second wavelength selective filter 44 of the color filter 34, and the like. The angle θr depends on the distance between the subject S and the color filter 34, the size of the area A3 of the third wavelength selective filter 46 of the color filter 34, and the like.
[0048] Area A3 of the third wavelength selection filter 46 of the color filter 34 of the camera 13 passes the R light having the second scattering angle θr with respect to the optical axis C, but blocks the B light of the specular reflected light component and the G light having the first scattering angle θg. Therefore, only the second scattering angle component is incident on the imaging unit 14 as the R light and is imaged by the imaging unit 14 as the R image data (second image data) Ir.
[0049] 6 captured by the imaging unit 14 are colored according to information on the scattering angle of the subject S. Therefore, the color of the obtained RGB image data Irgb does not depend on the color of the subject S itself, but changes by appropriately setting the wavelengths that are passed through the color filter 34.
[0050] The standard surface S1 of the specimen S, excluding the abnormal portion S2 and the edge portion S3, has fine scratches, but most of the light is incident on the imaging unit 14 as regular reflected light through the color filter 34. On the other hand, most of the abnormal portion S2 and the edge portion S3 are not parallel to the standard surface S1, so most of the light is incident on the imaging unit 14 through the color filter 34 as scattered light.
[0051] Of the light incident on the imaging unit 14 through the color filter 34, the light rays from the standard surface S1 are B light passing along the optical axis C (on the area A1) of the color filter 34. Therefore, the imaging unit 14 obtains the specularly reflected light from the standard surface S1 as a blue image in the B image data Ib. Light from positions corresponding to the abnormal portion S2 and the edge portion S3 does not enter the imaging unit 14 as B light. Therefore, in the B image data Ib, the images of the abnormal portion S2 and the edge portion S3 appear as black regions.
[0052] Furthermore, among the light incident on the imaging unit 14 through the color filter 34, the light beam from the abnormal portion S2 is R light passing over an area A3 that is shifted from the optical axis C of the color filter 34. Therefore, the imaging unit 14 obtains the scattered light from the abnormal portion S2 as a red image in the R image data Ir. Light from positions corresponding to the standard surface S1 and the edge portion S3 does not enter the imaging unit 14 as R light. Therefore, in the R image data Ir, the images of the standard surface S1 and the edge portion S3 become black regions.
[0053] Furthermore, of the light incident on the imaging unit 14 through the color filter 34, the light rays from the edge portion S3 are G light passing over an area A2 that is shifted from the optical axis C of the color filter 34. Therefore, the imaging unit 14 obtains the scattered light from the edge portion S3 as a green image in the G image data Ig. Light from positions corresponding to the standard surface S1 and the abnormal portion S2 does not enter the imaging unit 14 as G light. Therefore, in the G image data Ig, the images of the standard surface S1 and the abnormal portion S2 appear as black regions.
[0054] The light intensities (pixel values) of the R image data Ir, G image data Ig, and B image data Ib acquired by each pixel of the imaging unit 14 of the optical inspection device 4 according to this embodiment change complementarily. That is, the camera 13 acquires, for example, B light (light beam of a first wavelength) according to a first scattering angle (including specular reflection) from the specimen S as B image data (information of a first image), and acquires, for example, R light (light beam of a second wavelength) different from the B light (light beam of a first wavelength) as R image data (information of a second image) according to a second scattering angle different from the first scattering angle from the specimen S, and acquires the light intensities of the B light (first wavelength) and the R light (second wavelength) in a complementary relationship. The first scattering angle here means to include specular reflection, which is 0°. In the optical inspection device 4, when the light intensity of R light increases among the light rays passing through the color filter 34, the light intensity of G light and the light intensity of B light decrease in a certain pixel. Also, when the light intensity of B light increases in another certain pixel, the light intensity of R light and the light intensity of G light decrease.
[0055] Due to the color filter 34 used in this embodiment, the average pixel value of the image data in the region corresponding to the standard surface S1 is highest for the B image data Ib, followed in order by the G image data Ig and the R image data Ir.
[0056] A portion of the R light from the position corresponding to the standard surface S1 is not completely prevented from entering the imaging unit 14, and although its pixel value is lower than the average pixel value of the region corresponding to the standard surface S1 in the B image data Ib, it is still incident as R light on the imaging unit 14. This can be said to capture fine scratches on the standard surface S1 formed from a plastic plate.
[0057] Similarly, some of the G light from the position corresponding to the standard surface S1 is not completely prevented from entering the imaging unit 14, and although its pixel value is lower than the average pixel value of the region corresponding to the standard surface S1 in the B image data Ib, it is still incident on the imaging unit 14 as G light. This can be said to capture fine scratches on the standard surface S1 made of a plastic plate.
[0058] Therefore, the RGB image data Irgb obtained by the optical inspection device 4 according to this embodiment is colored according to the directional information of the light beam based on the color filter 34. The R image data Ir, G image data Ig, and B image data Ib obtained by separating this RGB image data Irgb into each color channel are each images based on the surface information (unevenness information) of the specimen S. In this way, the optical inspection device 4 according to this embodiment acquires structural (unevenness) information of the specimen S from the image captured by the imaging unit 14.
[0059] By using the optical inspection device 4 according to this embodiment, when the image obtained by the imaging unit 14 is displayed as channel data, an image can be obtained in which the standard surface S1 is roughly separated into blue B image data Ib, the abnormal portion S2 into red R image data Ir, and the edge portion S3 into green G image data Ig. Therefore, the processor 18 can extract surface information (unevenness information) of the subject S by comparing the B image data Ib, the R image data Ir, and the G image data Ig. Comparing the image data means comparing a combination of image data (i.e., one composed of two or more pixels) with a combination of image data (one composed of two or more pixels). The processor 18 displays the extracted image data on the display 6, allowing the inspector to clearly view it on the display 6. The image data obtained by adding together the B image data Ib, the R image data Ir, and the G image data Ig becomes the RGB image data Irgb. At this time, as shown in Figure 6, the optical inspection device 4 of this embodiment can obtain an image (RGB image data Irgb) in which the inspector can clearly visually confirm the standard surface S1, the abnormal portion S2, and the edge portion S3.
[0060] 7 shows, for comparison, RGB image data I0, R image data I1, G image data I2, and B image data I3 captured by a normal camera of the same subject S from the same position. That is, the RGB image data I0, R image data I1, G image data I2, and B image data I3 shown in FIG. 7 are images captured by the imaging unit 14 without passing through the color filter 34 of the optical inspection device 4.
[0061] The RGB image data I0 is acquired as colors reflecting the color of the subject S. Moreover, the R image data I1 is simply red extracted from the color of the subject S. The G image data I2 is simply green extracted from the color of the subject S. The B image data I3 is simply blue extracted from the color of the subject S. In other words, the R image data I1, G image data I2, and B image data I3 are images based on the spectral information of the subject.
[0062] In contrast, the RGB image data Irgb captured by the optical inspection device 4 according to this embodiment has a different color from the RGB image data I0 of the specimen S captured by a normal camera that does not pass through the color filter 34. This is because the RGB image data Irgb captured by the optical inspection device 4 according to this embodiment selectively transmits the wavelengths of R light, B light, and G light through the color filter 34, and the imaging unit 14 acquires directional information of the light rays, rather than color information.
[0063] As described above, the light intensities of the R image data Ir, G image data Ig, and B image data Ib acquired by each pixel of the imaging unit 14 of the optical inspection device 4 according to this embodiment change complementarily. That is, when the light intensity of R light among the light rays passing through the color filter 34 becomes stronger, the light intensities of G light and B light become weaker in a certain pixel. Also, when the light intensity of B light becomes stronger in another certain pixel, the light intensities of R light and G light become weaker.
[0064] In contrast, in the R image data I1, G image data I2, and B image data I3 of the subject S captured by a normal camera that does not pass through the color filter 34, the light intensity of the R light, the light intensity of the G image, and the light intensity of the B light at a certain pixel simply change depending on the color of the subject, and there is no complementary relationship as described above.
[0065] Next, a process of extracting characteristic parts such as the abnormal part S2 and the edge part S3 from each image data Ir, Ig, and Ib shown in Fig. 6 using the processor 18 will be described with reference to the flowchart shown in Fig. 8. In this embodiment, an example of the process of extracting the abnormal part S2 with respect to the standard surface S1 as the characteristic part will be described.
[0066] When the processor (processing circuit) 18 causes the imaging unit 14 to acquire image data, it reads out the relationship between the optical axis C of the imaging optical system 32 and the color filter 34 from the storage unit 20. Based on the relationship between the optical axis C of the imaging optical system 32 and the color filter 34, the processor 18 recognizes the B image data Ib acquired by the imaging unit 14 as an image of specularly reflected light, recognizes the G image data Ig acquired by the imaging unit 14 as an image of scattered light at a first scattering angle θg (<θr) from the subject S, and recognizes the R image data Ir acquired by the imaging unit 14 as an image of scattered light at a second scattering angle θr from the subject S (step ST11).
[0067] Thereafter, the processor 18 selects an appropriate image filter for each image data from the image filter program shown in FIG. 5, and convolves the R image data Ir, G image data Ig, and B image data Ib with the same or different image filters (step ST12).
[0068] As an example, the processor 18 spatially differentiates each of the R image data Ir, G image data Ig, and B image data Ib based on an image filter program, and extracts locations where there is a large change in pixel value between adjacent pixels.
[0069] Then, the processor 18 compares at least two of the R image data, G image data, and B image data convolved with the image filter (step ST13). The processor 18 may compare each of the R image data, G image data, and B image data convolved with the image filter.
[0070] Then, the processor 18 obtains calculated image data Ic1 shown in FIG. 9 by subtracting the B image data convolved with the image filter from the R image data convolved with the image filter (ST13). That is, the processor 18 performs arithmetic processing of convolving the B image data (information of the first image) Ib and the R image data (information of the second image) Ir with the image filter, and then performs arithmetic processing on the B image data Ib and the R image data Ir. The calculated image data Ic1 indicates unevenness information of the specimen S. The processor 18 judges whether the specimen S (e.g., a plastic plate) is a pass or fail product according to the size of the unevenness. The thresholds of the size and height of the unevenness to determine whether the product is pass or fail can be set appropriately. The pixel values of two pixels in a close relationship (e.g., adjacent relationship) in the imaging unit 14 are highly correlated. Therefore, the pixel values of such close-related pixels may be compared in a necessary region, not in all pixels. In this case, for example, the pixel values of the close-related pixels are extracted in one image data, and the pixel values of the close-related pixels are extracted in another image data, and the extracted pixel values are compared between the image data, thereby enabling the unevenness characteristics of the subject S to be extracted with high accuracy. On the other hand, the pixel values of two distantly related pixels are weakly correlated. Therefore, it is considered that the characteristics of the unevenness information of the subject S are more strongly represented by extracting and comparing the pixel values of the close pixels than by extracting and comparing the pixel values of the distant pixels.
[0071] 9, the calculated image data Ic1 is obtained using the R image data Ir and the B image data Ib. The calculated image data Ic1 may also be obtained using the G image data Ig and the B image data Ib.
[0072] In the present embodiment, an example has been described in which the same or different image filters are convoluted with the R image data Ir, the G image data Ig, and the B image data Ib in step ST12 of the flowchart shown in FIG. 8. This step ST12 may be omitted. That is, the processing of step ST13 may be performed without performing the processing of steps ST11 to ST12. In this case, in the example shown in FIG. 10, the B image data Ib is subtracted from the R image data Ir to obtain calculated image data Ic2. In the R image data Ir shown in FIG. 10, the pixel value of the R light image at the position corresponding to the abnormal portion S2 is negligibly larger than the pixel value of the B light image in the B image data Ib. For this reason, it is assumed that the pixel value of the R light image at the position corresponding to the abnormal portion S2 remains almost entirely in the calculated image data Ic2 shown in FIG. 10. The difference between the pixel value of the R light image at the position corresponding to the standard surface S1 in the R image data Ir and the pixel value of the B light image at the position corresponding to the standard surface S1 in the B image data Ib is much smaller than the difference between the pixel value of the R light image and the pixel value of the B light image at the position corresponding to the abnormal part S2. Therefore, in the calculated image data Ic2, the pixel value at the position corresponding to the abnormal part S2 is clearly larger than the pixel value at the position corresponding to the standard surface S1. Therefore, the calculated image data Ic2 indicates unevenness information of the specimen S. The processor 18 judges whether the specimen S (plastic plate) is a pass or fail depending on the difference between the pixel values of a region around a certain pixel and the pixel values of a region around another certain pixel. The threshold value of the difference in pixel values to determine whether the specimen is a pass or fail can be appropriately set.
[0073] 9 and 10, an example in which the B image data is subtracted from the R image data has been described. Image processing for optical inspection can also be performed by performing division instead of subtraction.
[0074] 11, the processor 18 adds the R image data Ir and the B image data Ib, and then selects an appropriate program from the image filter programs (see FIG. 5) to perform edge enhancement processing, thereby obtaining calculated image data Ic3. In this case, the processor 18 performs arithmetic operations such as addition on the B image data (information on the first image) Ib and the R image data (information on the second image) Ir before performing arithmetic processing in which an image filter is convolved with the B image data (information on the first image) Ib and the R image data (information on the second image) Ir. In other words, the order of steps ST12 and ST13 may be reversed.
[0075] The edge portion S3 was obtained as the G image data Ig. Therefore, when the R image data Ir and the B image data Ib are added, the position of the calculated image data corresponding to the edge portion S3 becomes a black image. Furthermore, when the R image data Ir and the B image data Ib are added, the pixel values of the position of the calculated image data corresponding to the standard surface S1 and the pixel values of the position of the abnormal portion S2 are added. Therefore, the position of the calculated image data corresponding to the standard surface S1 and the position of the abnormal portion S2 are obtained as bright portions opposite to black. Therefore, when the calculated image data is subjected to edge enhancement processing as image processing, the calculated image data Ic3 is obtained as an image in which the position corresponding to the edge portion S3 is enhanced. Note that the pixel values of the calculated image data obtained by adding the pixel values of the R image data Ir and the pixel values of the B image data Ib at the position corresponding to the standard surface S1 are significantly smaller than the pixel values of the calculated image data obtained by adding the pixel values of the R image data Ir and the B image data Ib at the position corresponding to the abnormal portion S2. Therefore, the fine scratches on the standard surface S1 are emphasized by the contour emphasis process, similarly to the position corresponding to the edge portion S3. Therefore, the calculated image data Ic3 shows unevenness information of the position corresponding to the edge portion S3 of the specimen S. The processor 18 judges whether the specimen S (plastic plate) is a good product or a defective product according to the magnitude of the difference between the pixel value of the contour-emphasized portion in the calculated image data Ic3 and the pixel value of the other black portion area. Note that the position corresponding to the abnormal portion S2 in the calculated image data Ic3 is not included as a contour-emphasized area. This means that the edge portion S3 is hardly included in the position corresponding to the abnormal portion S2 in this embodiment.
[0076] 11, an example in which the R image data and the B image data are added has been described. Image processing for optical inspection can also be performed by performing multiplication instead of addition.
[0077] Alternatively, for example, the B image data Ib is an image of specular reflection light. For this reason, the processor 18 employs, as an image filter program for the B image data Ib, for example, a median filter that emphasizes flatness, or a low-pass filter (first image filter) using Fourier transform. When using, for example, a low-pass filter as the image filter program, the processor 18 passes information on each position where the change in pixel value is small, and cuts information on each position where the change in pixel value is large.
[0078] For example, the R image data Ir is an image of scattered light at a second scattering angle θr. For this reason, the processor 18 employs, for example, a high-pass filter or a Sobel filter (second image filter) using a Fourier transform as an image filter program, and performs processing to emphasize, for example, the contours of each position where the pixel value changes significantly in the R image data Ir. When a high-pass filter, for example, is used as the image filter program, the processor 18 passes information of each position where the pixel value changes significantly and cuts information of each position where the pixel value changes slightly.
[0079] The G image data Ig is an image of scattered light at a first scattering angle θg. For this reason, the processor 18 employs, as with the R image data Ir, for the G image data Ig, for example, a high-pass filter using high frequency Fourier transform or a Sobel filter as an image filter program, and performs processing to, for example, emphasize the contours at each position in the G image data Ig. When using, for example, a high-pass filter as the image filter program, the processor 18 passes information at each position where the pixel value changes greatly and cuts information at each position where the pixel value changes little.
[0080] In this way, the processor 18 may perform arithmetic processing on the B image data (first image information) Ib by convolving the first image filter, and may perform arithmetic processing on the R image data (second image information) Ir or the G image data (third image information) Ig by convolving a second image filter different from the first image filter. In this case, the processor 18 reduces, for example, edge information from the B image data Ib and amplifies the edge information from the R image data Ir or the G image data Ig, making it easier to extract the uneven state of the surface of the subject S.
[0081] The processor 18 can also inspect the surface condition of the specimen S through such processing.
[0082] The color filter 34 emits G light (light of a third wavelength) having a wavelength different from B light (light of a first wavelength) and R light (light of a second wavelength) toward the imaging unit 14 in a state in which the light intensities of the B light, R light, and G light have a complementary relationship according to the direction of the light from the subject S, and causes the imaging unit 14 to acquire B image data (information on the first image) Ib, R image data (information on the second image) Ir, and G image data (information on the third image related to the light of the third wavelength) Ig, respectively. The processor 18 extracts unevenness information of the subject S by comparing at least two pieces of information, the B image data (information on the first image) Ib, the R image data (information on the second image) Ir, and the G image data (information on the third image) Ig.
[0083] Also, for example, suppose that the specimen S has a stain, not a scratch (abnormal portion S2). In this case, the RGB image data I0, R image data I1, G image data I2, and B image data I3 of the specimen S captured by a normal camera that does not pass through the color filter 34 extract color information for the stain. In contrast, the RGB image data Irgb, R image data Ir, G image data Ig, and B image data Ib captured by the optical inspection device 4 according to this embodiment do not reflect information on the stain unless the stain is a scratch (abnormal portion S2). Therefore, the processor 18 of the optical inspection device 4 according to this embodiment can ignore mere stains on the specimen S and output whether or not the abnormal portion S2 of the specimen S can cause a problem when the specimen S becomes a product. Therefore, according to this embodiment, the specimen S can be optically inspected more accurately than before by comparing the R image data Ir, G image data Ig, and B image data Ib.
[0084] Thus, according to this embodiment, an optical inspection method, an optical inspection program 20a, and an optical inspection device 4 can be provided that acquire an image containing information regarding the direction of light from the specimen S and perform image processing on the image to inspect the surface condition of the specimen S.
[0085] The above-mentioned processor 18 can appropriately use the four arithmetic operations (addition, subtraction, multiplication and division) when executing the optical inspection program 20a.
[0086] Furthermore, when executing the optical inspection program 20a, the above-mentioned processor 18 can perform image filter processing on at least one of the R image data Ir, the G image data Ig, and the B image data Ib. Note that the image filter processing may be performed by executing not only one image filter program but also multiple image filter programs for certain image data to obtain desired calculated image data.
[0087] In addition, when executing the optical inspection program 20a, the above-mentioned processor 18 can appropriately set the order of the arithmetic operations and image filter processing of the R image data Ir, G image data Ig, and B image data Ib in accordance with the desired calculated image data.
[0088] In this embodiment, the standard surface S1 of the specimen S has been described as being flat. In reality, the standard surface S1 of the specimen S may not be flat, such as a curved surface. The optical inspection system 2 according to this embodiment can perform optical inspection on a portion of the specimen S that can be regarded as a flat surface by enlarging the specimen S, for example.
[0089] Second embodiment The second embodiment will be described with reference to Figures 12 to 14. The second embodiment is a modified example of the first embodiment, and the same members as those described in the first embodiment or members having the same functions are denoted by the same reference numerals as much as possible, and detailed descriptions thereof will be omitted.
[0090] As shown in FIG. 12, the optical device 12 of the optical inspection device 4 includes an imaging optical system (imaging lens) 32 and a color filter (multi-wavelength aperture) .
[0091] Here, an example has been described in which the color filter 34 of the optical device 12 of the optical inspection device 4 according to the first embodiment is rotationally symmetric, that is, isotropic, with respect to the optical axis C. In the present embodiment, an example will be described in which the color filter 134 is anisotropic.
[0092] The color filter 134 is formed, for example, in a rectangular shape with a longitudinal direction in one direction perpendicular to the optical axis C (a direction parallel to a second axis Ay described later). In this embodiment, the color filter 134 selectively passes a first wavelength and a second wavelength different from the first wavelength. The color filter 134 has a first wavelength selection filter (wavelength selection region) 142 and a second wavelength selection filter (wavelength selection region) 144. The first wavelength selection filter 142 and the second wavelength selection filter 144 of the color filter 134 are surrounded by a light shielding portion 148. The light shielding portion 148 is formed, for example, of a black plate, and holds the first wavelength selection filter 142 and the second wavelength selection filter 144.
[0093] Here, in this embodiment, the first axis Ax is taken so as to be perpendicular to the optical axis C of the imaging optical system 32. In this embodiment, the axial direction of the first axis Ax coincides with the direction in which the first wavelength selection filter 142 and the second wavelength selection filter 144 are arranged. That is, the first wavelength selection filter 142 and the second wavelength selection filter 144 are arranged with a shift in the axial direction of the first axis Ax. In this embodiment, the second axis Ay is taken in a direction perpendicular to both the first axis Ax and the optical axis C. In this embodiment, the axial direction of the second axis Ay is along the longitudinal direction of the color filter 134.
[0094] The first wavelength-selecting filter 142 and the second wavelength-selecting filter 144 are each formed along the longitudinal direction of the color filter 134. The first wavelength-selecting filter 142 is disposed, for example, on the optical axis C. The first wavelength-selecting filter 142 is adjacent to the second wavelength-selecting filter 144. The first wavelength-selecting filter 142 and the second wavelength-selecting filter 144 of the color filter 134 are formed in translation symmetry with respect to an axis parallel to the second axis Ay.
[0095] The first wavelength selection filter 142 passes a light beam having a first wavelength (first light beam). For example, the first wavelength is blue light (435.8 nm) and B light having a first wavelength nearby the blue light. The second wavelength selection filter 144 passes a light beam having a second wavelength (second light beam). The second wavelength is red light (700 nm) and R light having a second wavelength nearby the red light. The first wavelength selection filter 142 blocks light beams having a wavelength (including the second wavelength) different from the first wavelength. The second wavelength selection filter 144 blocks light beams having a wavelength (including the first wavelength) different from the second wavelength.
[0096] The imaging unit 14 may be an area sensor or a line sensor. Also, the imaging unit 14 may have three color channels of R, G, and B for each pixel. Here, as shown in Fig. 12, the imaging unit 14 is an area sensor, and each pixel has two color channels of red and blue. In other words, the imaging unit 14 can receive B light and R light in independent color channels.
[0097] In this embodiment, as shown in Fig. 12, the optical inspection device 4 does not include the light source 16 and the half mirror 36. If the sample S can be imaged using the camera 13, the light source 16 and the half mirror 36 are not necessarily required. Of course, the optical inspection device 4 may include the light source 16 and the half mirror.
[0098] A plane spanned by the first axis Ax and the optical axis C is defined as a first plane (virtual plane), and a plane spanned by the second axis Ay and the optical axis C is defined as a second plane (virtual plane). Fig. 13 shows a cross-sectional view of the optical inspection device 4 taken along the first plane. Fig. 14 shows a cross-sectional view of the optical inspection device 4 taken along the second plane.
[0099] 12 and 13, among the light rays from the subject S, the light rays that are parallel to the optical axis C and lie within the first plane are defined as a first light ray group L1. Two light rays, a first light ray L1a and a first light ray L1b, are considered to represent the first light ray group L1. Among the light rays from the object side, the light rays that are in a direction inclined with respect to the optical axis C and lie within the first plane are defined as a second light ray group L2. Two light rays, a second light ray L2a and a second light ray L2b, are considered to represent the second light ray group L2.
[0100] As shown in Figures 12 and 14, among the rays from the object side, the rays that are parallel to the optical axis C and lie within the second plane are defined as the third light ray group. Consider the third light ray L3 as a representative of the third light ray group. Among the rays from the object side, the rays that are in a direction tilted with respect to the optical axis C and lie within the second plane are defined as the fourth light ray group. Consider the fourth light ray L4 as a representative of the fourth light ray group.
[0101] As shown in FIG. 12 and FIG. 13, the plane parallel to the first surface intersects the first wavelength selection filter 142 and the second wavelength selection filter 144 of the color filter 134 at the same time. That is, the plane parallel to the first surface intersects at least two different wavelength selection filters 142, 144 of the color filter 134. As shown in FIG. 12 and FIG. 14, the plane parallel to the second surface intersects one wavelength selection filter 142 of the color filter 134. That is, the color filter 134 is anisotropic and has anisotropy because the number of intersections with the wavelength selection filters 142, 144 of the color filter 134 differs between the first surface and the second surface. In other words, the color filter 134 is anisotropic because the distribution of the wavelength selection filters 142, 144 differs depending on the direction of the first axis Ax and the second axis Ay.
[0102] In an optical system in which light rays from an object point O of a subject S are imaged to an image point by the imaging optical system 32, an optical system in which the chief ray is parallel to the optical axis C on the object side is generally called an object-side telecentric optical system. In this embodiment, when light rays that are substantially parallel to the optical axis C on the object side are imaged by the imaging optical system 32, the light rays are defined as having object-side telecentricity. On the other hand, when light rays that are not substantially parallel to the optical axis C on the object side and are inclined are imaged by the imaging optical system 32, the light rays are defined as having object-side non-telecentricity.
[0103] The rays L1a and L1b of the first group of rays from the object side are parallel to the optical axis C. The rays L1a and L1b reach the focus of the focal plane of the imaging optical system 32. Therefore, the first rays L1a and L1b reach the first wavelength-selective filter 142 of the color filter 134 placed on the focal plane. That is, the first rays L1a and L1b having telecentricity in the first plane reach the first wavelength-selective filter 142.
[0104] The rays L2a and L2b of the second group of rays from the object side are inclined with respect to the optical axis C in the first plane. The rays L2a and L2b of the second group of rays are out of focus on the focal plane of the imaging optical system 32 and reach, for example, the second wavelength-selecting filter 144. That is, the second rays L2a and L2b reach the second wavelength-selecting filter 144. That is, the rays L2a and L2b having non-telecentricity in the first plane reach the second wavelength-selecting filter 144.
[0105] A part of the object-side light beam that is inclined with respect to the optical axis C within the first plane reaches the second wavelength-selecting filter 144 as well as the light beam blocking portion 148 .
[0106] The light ray L3 of the third light ray group from the object side is parallel to the optical axis C in the second plane. The light ray L3 of the third light ray group reaches the focus of the focal plane of the imaging optical system 32. Therefore, the third light ray L3 reaches the first wavelength-selective filter 142 of the color filter 134 placed on the focal plane. That is, the light ray L3 having telecentricity in the second plane reaches the first wavelength-selective filter 142.
[0107] The ray L4 of the fourth group of rays from the object side is inclined with respect to the optical axis C in the second plane. The ray L4 of the fourth group of rays reaches the first wavelength-selecting filter 142, which is out of focus on the focal plane of the imaging optical system 32. That is, the fourth ray L4 reaches the first wavelength-selecting filter 142. That is, a ray having non-telecentricity in the second plane reaches the first wavelength-selecting filter 142.
[0108] It should be noted that the object-side light ray that is inclined with respect to the optical axis C within the second plane does not reach the light ray blocking portion 148.
[0109] In this way, in the first plane, the telecentric light beams L1a and L1b and the non-telecentric light beams L2a and L2b reach different wavelength selection regions, whereas in the second plane, the telecentric light beam L3 and the non-telecentric light beam L4 reach the same wavelength selection filter 142.
[0110] Consider the path of any light ray that reaches the imaging optical system 32 from the object side in any direction, projected onto the first surface (see FIGS. 12 and 13) and onto the second surface (see FIGS. 12 and 14). The above-mentioned properties are similarly established for each of these projected light rays. That is, light rays projected onto the first surface that have telecentricity and light rays that have non-telecentricity reach different wavelength selection regions of the color filter 134. On the other hand, light rays projected onto the second surface that have telecentricity and light rays that have non-telecentricity both reach the same wavelength selection filter 142.
[0111] When the imaging unit 14 of the optical inspection device 4 of this embodiment captures the B light (light beam of the first wavelength) of the object, that is, when obtaining the B image data Ib, the first wavelength selection filter 142 of the color filter 134 emits the B light toward the imaging unit 14. At this time, the first wavelength selection filter 142 of the color filter 134 blocks the R light (light beam of the second wavelength). The B light is telecentric in the axial direction of the first axis Ax. Therefore, the optical inspection device 4 can obtain the B image data Ib having the telecentric property in the imaging unit 14. An image having the telecentric property has a property that it does not depend on the perspective of the object. As a result, the actual size of the object can be obtained in the axial direction of the first axis Ax. On the other hand, the B light is non-telecentric in the axial direction of the second axis Ay. This can also be said to have entcentric property. In other words, an entcentric image with a wide angle of view and a sense of perspective can be obtained in the axial direction of the second axis Ay.
[0112] When capturing an image of R light (a light beam of a second wavelength) of an object with the imaging unit 14 of the optical inspection device 4, that is, when obtaining R image data Ir, the second wavelength selection filter 144 of the color filter 134 emits the R light toward the imaging unit 14. At this time, the second wavelength selection filter 144 of the color filter 134 blocks the B light (a light beam of a first wavelength). The R light is non-telecentric in both the axial direction of the first axis Ax and the axial direction of the second axis Ay. This can also be said to have entcentricity. In other words, the optical inspection device 4 can capture an entcentric image of the R light with the imaging unit 14. This allows the optical inspection device 4 to capture an image with a large angle of view.
[0113] In this way, the imaging section 14 of the optical inspection device 4 according to this embodiment simultaneously acquires images of B light (e.g., corresponding to specularly reflected light) and R light (e.g., corresponding to scattered light) along the direction of the first axis Ax.
[0114] In this way, the color filter 134 provided on the focal plane of the imaging optical system 32 between the imaging optical system 32 and the imaging unit 14 emits a light beam of a first wavelength (e.g., B light) and a light beam of a second wavelength (e.g., R light) different from the first wavelength toward the imaging unit 14 according to the direction of the light beam from the subject S. Then, the color filter 134 causes the imaging unit 14 to acquire first image information related to the first wavelength and second image information related to the light beam of the second wavelength. At this time, the imaging unit 14 simultaneously acquires images of the light beams of the first wavelength and the second wavelength that have passed through the color filter 134.
[0115] The light intensities of the R image data Ir and the B image data Ib acquired by each pixel of the imaging unit 14 of the optical inspection device 4 according to this embodiment change complementarily. That is, when the light intensity of R light among the light passing through the color filter 134 at a certain pixel becomes stronger, the light intensity of B light at the same pixel becomes weaker. Also, when the light intensity of B light becomes stronger at another pixel, the light intensity of R light at the other pixel becomes weaker.
[0116] The image processing flow for extracting characteristic portions, such as the abnormal portion S2 relative to the standard surface S1, can be performed according to the flowchart shown in Fig. 8 described in the first embodiment. Therefore, the description of the image processing flow will be omitted here as appropriate.
[0117] First, the processor (processing circuit) 18 causes the imaging unit 14 to acquire image data, and then reads out from the storage unit 20 the relationship between the optical axis C of the imaging optical system 32 and the color filter 34 (step ST11).
[0118] In this embodiment, the color filter 134 has a first wavelength selection filter 142 and a second wavelength selection filter 144. The processor 18 recognizes that information of two wavelengths (R image data Ir, B image data Ib) is to be image-processed. From the relationship between the optical axis C of the imaging optical system 32 and the color filter 34, the processor 18 recognizes that the B image data Ib acquired by the imaging unit 14 is an image of specularly reflected light from the standard surface S1 of the subject S, and recognizes that the R image data Ir acquired by the imaging unit 14 is an image of scattered light from the abnormal part S2 of the subject S.
[0119] Therefore, the imaging unit 14 acquires an image of the specularly reflected light component from the surface of the subject S as B image data of B light. If the surface of the subject S has an abnormality S2 such as a foreign object or minute irregularities on a scale close to the wavelength of light, the light from the abnormality S2 is scattered, and the imaging unit 14 acquires an image as R image data of R light.
[0120] As described in the first embodiment, the processor 18 performs the convolution process of the image filter (ST12) and the comparison process between the B image data and the R image data (ST13) to obtain unevenness information of the subject S (ST14).
[0121] Thus, according to this embodiment, an optical inspection method, an optical inspection program 20a, and an optical inspection device 4 can be provided that acquire an image containing information regarding the direction of light from the specimen S and perform image processing on the image to inspect the surface condition of the specimen S.
[0122] In the example according to the present embodiment, it is not always necessary to convolute the image data with an image filter. That is, step ST12 can be omitted as appropriate. Moreover, the order of steps ST12 and ST13 can be changed as appropriate.
[0123] In this embodiment, the standard surface S1 of the specimen S does not have to be a flat surface, such as a curved surface. The optical inspection system 2 according to this embodiment can perform optical inspection on a portion of the specimen S that can be regarded as a flat surface by enlarging the specimen S, for example.
[0124] In this embodiment, the light rays passed by the first wavelength-selecting filter 142 are B light, and the light rays blocked are R light. The light rays passed by the second wavelength-selecting filter 144 are R light, and the light rays blocked are B light. The light rays passed by the first wavelength-selecting filter 142 may be R light, the light rays blocked are B light, and the light rays passed by the second wavelength-selecting filter 144 may be B light, and the light rays blocked are R light.
[0125] In this embodiment, the first wavelength selection filter 142 and the second wavelength selection filter 144 of the two colors of the color filter 134 exclude the wavelength of green light (546.1 nm) and G light, which is a wavelength close to green light. This is because the overlapping portion of the wavelengths of B light and G light and the overlapping portion of the wavelengths of G light and R light are greater than the overlapping portion of the wavelengths of B light and R light.
[0126] This is because the wavelength of G light is between the wavelengths of B light and R light, and therefore it is easier to separate the wavelengths of B light and R light than using the wavelength of G light. The first wavelength range and the second wavelength range are not limited to the above-mentioned wavelengths, and may be anything as long as they are different wavelengths. Also, it is assumed that the spectra of light passing through different wavelength selection regions of the color filter 134 are different. If the spectra are different, the hues are different.
[0127] In this embodiment, an example has been described in which the imaging unit 14 including an appropriate wavelength range such as B light and R light is used. By using a multispectral camera or a hyperspectral camera as the imaging unit 14, for example, it is possible to obtain an image by separating the colors for each appropriate wavelength (for example, 5 nm wavelength in the case of a hyperspectral camera) in the visible light wavelength range of 400 nm to 760 nm. Therefore, by using a multispectral camera or a hyperspectral camera as the imaging unit 14 as described above, it is possible to obtain information on the object surface. In this case, the color filter 134 may be divided into many filters other than the two wavelength selection filters 142 and 144.
[0128] According to at least one of the embodiments described above, it is possible to provide an optical inspection method, an optical inspection program, and an optical inspection apparatus for inspecting the surface condition of a test object by acquiring an image including information regarding the direction of light rays from the test object and performing image processing on the image.
[0129] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. The following is a summary of the claims of this application as filed. [Appendix 1] emitting a light beam having a first wavelength and a light beam having a second wavelength different from the first wavelength toward an imaging unit, with the light beam intensity of the first wavelength and the light beam intensity of the second wavelength being in a complementary relationship, according to a light beam direction from a subject, and causing the imaging unit to obtain first image information related to the light beam having the first wavelength and second image information related to the light beam having the second wavelength, respectively; comparing the first image information and the second image information to extract topography information of the object; An optical inspection method for inspecting the object, comprising: [Appendix 2] performing a calculation process in which an image filter is convolved with at least one of the first image information and the second image information; 2. The optical inspection method of claim 1, comprising: [Appendix 3] When performing a calculation process in which the first image information and the second image information are convolved with the image filter, performing a calculation process in which a first image filter is convolved with the first image information; performing a calculation process in which the second image information is convolved with a second image filter different from the first image filter; 3. The optical inspection method according to claim 2. [Appendix 4] performing image filtering processing on the information of the first image using the first image filter to emphasize flatness of the image; performing image filtering processing on the second image information using the second image filter to enhance contours of the image; 4. The optical inspection method according to claim 3. [Appendix 5] a process of acquiring, by an optical device that emits a light beam having a first wavelength and a light beam having a second wavelength different from the first wavelength toward an imaging unit in such a manner that the light beam intensity of the first wavelength and the light beam intensity of the second wavelength are in a complementary relationship according to a light beam direction from a subject, a first image information regarding the first wavelength and a second image information regarding the light beam having the second wavelength, respectively, by the imaging unit; A process of comparing the first image information and the second image information to extract unevenness information of the object. An optical inspection program for inspecting the object, the program causing a processor to execute the steps. [Appendix 6] an imaging optical system that forms an image of a light beam from a subject; an imaging unit provided on an image forming plane of the imaging optical system; a color filter that is provided on a focal plane of the imaging optical system between the imaging optical system and the image capturing unit, and that emits a light beam of a first wavelength and a light beam of a second wavelength different from the first wavelength toward the image capturing unit in a state in which the light beam intensity of the first wavelength and the light beam intensity of the second wavelength have a complementary relationship according to a light beam direction from the subject, and causes the image capturing unit to acquire first image information related to the light beam of the first wavelength and second image information related to the light beam of the second wavelength, respectively; a processor for extracting topography information of the object by comparing information on the first image with information on the second image; An optical inspection device comprising: [Appendix 7] The optical inspection device of claim 6, wherein the processor compares the first image information and the second image information by performing arithmetic operations on the first image information and the second image information. [Appendix 8] The optical inspection device of claim 7, wherein the processor performs the four arithmetic operations on the first image information and the second image information after performing an arithmetic process of convolving an image filter on at least one of the first image information and the second image information, or before performing an arithmetic process of convolving the image filter. [Appendix 9] When the processor performs a calculation process of convolving the first image information and the second image information with the image filter, performing a calculation process in which a first image filter is convolved with the first image information; 9. The optical inspection device of claim 8, further comprising: a calculation process for convolving the second image information with a second image filter different from the first image filter. [Appendix 10] The processor, using an image filter that emphasizes flatness of an image as the first image filter for the first image information; 10. The optical inspection device of claim 9, wherein an image filter that enhances the contours of an image is used as the second image filter for the second image information. [Appendix 11] the color filter emits a light beam of the first wavelength and a light beam of a third wavelength, which is different from the second wavelength, toward the imaging unit in a state in which the light intensity of the first wavelength, the light intensity of the second wavelength, and the light intensity of the third wavelength have a complementary relationship according to a light beam direction from the subject, and causes the imaging unit to acquire information on the first image, information on the second image, and information on the third image relating to the light beam of the third wavelength, respectively; The processor extracts topography information of the object by comparing at least two pieces of information, the first image information, the second image information, and the third image information. 11. The optical inspection device according to claim 6, [Appendix 12] a camera that acquires a light ray of a first wavelength corresponding to a first scattering angle from a subject as first image information, acquires a light ray of a second wavelength different from the light ray of the first wavelength corresponding to a second scattering angle different from the first scattering angle from the subject as second image information, and acquires the light intensity of the first wavelength and the light intensity of the second wavelength in a complementary relationship; a processor for extracting surface information of the object by comparing the first image information and the second image information; An optical inspection device comprising: [Explanation of symbols]
[0130] Reference Signs List 2...optical inspection system, 4...optical inspection device, 6...display, 12...optical device, 13...camera, 14...imaging section, 14a...imaging surface, 16...light source, 32...imaging optical system, 34...color filter, 36...half mirror, 42...first wavelength selection filter, 44...second wavelength selection filter, 46...third wavelength selection filter, 48...light shielding section, S1...standard surface, S2...abnormal section, S3...edge section
Claims
1. emitting a light beam having a first wavelength and a light beam having a second wavelength different from the first wavelength toward an image capturing unit, with the light beam intensity of the first wavelength and the light beam intensity of the second wavelength being in a complementary relationship, according to a light beam direction from a subject, and causing the image capturing unit to acquire first image information related to the light beam having the first wavelength and second image information related to the light beam having the second wavelength, respectively; performing a calculation process in which an image filter is convolved with at least one of the first image information and the second image information; comparing the first image information and the second image information to extract unevenness information of the object; Equipped with When performing a calculation process in which the first image information and the second image information are convolved with the image filter, performing a calculation process in which a first image filter is convolved with the first image information; performing an arithmetic process on the second image information by convolving a second image filter different from the first image filter; An optical inspection method for inspecting the object.
2. performing image filtering processing on the first image information as the first image filter to emphasize flatness of the image; performing image filtering processing on the second image information using the second image filter to enhance the contours of the image; The optical inspection method according to claim 1 .
3. a process of acquiring, by an optical device that emits a light beam having a first wavelength and a light beam having a second wavelength different from the first wavelength toward an imaging unit in such a manner that the light beam intensity of the first wavelength and the light beam intensity of the second wavelength are in a complementary relationship according to a light beam direction from a subject, a first image information regarding the first wavelength and a second image information regarding the light beam having the second wavelength, respectively, by the imaging unit; a computation process in which an image filter is convolved with at least one of the first image information and the second image information; A process of comparing the first image information and the second image information to extract unevenness information of the object. to a processor, When performing a calculation process in which the first image information and the second image information are convolved with the image filter, performing a calculation process in which a first image filter is convolved with the first image information; performing an arithmetic process on the second image information by convolving a second image filter different from the first image filter; The optical inspection program for inspecting the object, the optical inspection program causing the processor to execute the steps of:
4. performing image filtering processing on the information of the first image as the first image filter to emphasize flatness of the image; performing image filtering processing on the second image information using the second image filter to enhance the contours of the image; The optical inspection program according to claim 3 , further comprising:
5. A process using an optical device that emits a light beam of a first wavelength and a light beam of a second wavelength different from the first wavelength toward an imaging unit, the light beam intensity of the first wavelength and the light beam intensity of the second wavelength being in a complementary relationship depending on the light beam direction from a subject, and causing the imaging unit to obtain first image information regarding the first wavelength and second image information regarding the light beam of the second wavelength, respectively; a computation process in which an image filter is convolved with at least one of the first image information and the second image information; A process of comparing the first image information and the second image information to extract unevenness information of the object. a processor for executing When the processor performs the arithmetic process of convolving the first image information and the second image information with the image filter, performing a calculation process in which a first image filter is convolved with the first image information; performing an arithmetic process on the second image information by convolving a second image filter different from the first image filter; Optical inspection equipment.
6. The processor, performing image filtering processing on the first image information as the first image filter to emphasize flatness of the image; performing image filtering processing on the second image information using the second image filter to enhance the contours of the image; The optical inspection device according to claim 5 .
7. An imaging optical system that forms an image of a light beam from a subject; an imaging unit provided on an image forming plane of the imaging optical system; a color filter that is provided on a focal plane of the imaging optical system between the imaging optical system and the image capturing unit, and that emits a light beam of a first wavelength and a light beam of a second wavelength different from the first wavelength toward the image capturing unit in a state in which the light beam intensity of the first wavelength and the light beam intensity of the second wavelength have a complementary relationship according to a light beam direction from the subject, and causes the image capturing unit to acquire first image information related to the light beam of the first wavelength and second image information related to the light beam of the second wavelength, respectively; The optical inspection device according to claim 5 or 6, further comprising:
8. an imaging optical system that forms an image of a light beam from a subject; an imaging unit provided on an image forming plane of the imaging optical system; a color filter that is provided on a focal plane of the imaging optical system between the imaging optical system and the image capturing unit, and that emits a light beam of a first wavelength and a light beam of a second wavelength different from the first wavelength toward the image capturing unit in a state in which the light beam intensity of the first wavelength and the light beam intensity of the second wavelength have a complementary relationship according to a light beam direction from the subject, and causes the image capturing unit to acquire first image information related to the light beam of the first wavelength and second image information related to the light beam of the second wavelength, respectively; a processor for extracting topography information of the object by comparing information on the first image with information on the second image; Equipped with the processor compares the first image information and the second image information by performing arithmetic operations on the first image information and the second image information; the processor performs the four arithmetic operations on the first image information and the second image information after performing an arithmetic process of convolving an image filter on at least one of the first image information and the second image information, or before performing an arithmetic process of convolving the image filter on the first image information and the second image information; When the processor performs a calculation process of convolving the first image information and the second image information with the image filter, performing a calculation process in which a first image filter is convolved with the first image information; performing an arithmetic process on the second image information by convolving a second image filter different from the first image filter; Optical inspection equipment.
9. The processor, using an image filter that emphasizes flatness of an image as the first image filter for the first image information; 9. The optical inspection device according to claim 8, wherein an image filter that emphasizes contours of an image is used as the second image filter for the second image information.
10. the color filter emits a light beam of the first wavelength and a light beam of a third wavelength, which is different from the second wavelength, toward the imaging unit in a state in which the light intensity of the first wavelength, the light intensity of the second wavelength, and the light intensity of the third wavelength have a complementary relationship according to a light direction from the subject, and causes the imaging unit to acquire information on the first image, information on the second image, and information on the third image relating to the light beam of the third wavelength, respectively; The processor extracts topography information of the object by comparing at least two pieces of information, the first image information, the second image information, and the third image information.
10. The optical inspection device according to claim 8 or 9.
11. An imaging optical system that forms an image of a light beam from a subject; an imaging unit provided on an image forming plane of the imaging optical system; a color filter that is provided on a focal plane of the imaging optical system between the imaging optical system and the imaging unit, and that emits, toward the imaging unit, a light ray of a first wavelength corresponding to a first scattering angle among scattered light components from the subject with respect to an optical axis of the imaging optical system, and a light ray of a second wavelength different from the light ray of the first wavelength and corresponding to a second scattering angle among scattered light components from the subject with respect to the optical axis that is different from the first scattering angle, such that the light intensities of the first wavelength and the second wavelength have a complementary relationship, and causes the imaging unit to obtain first image information regarding the light ray of the first wavelength and second image information regarding the light ray of the second wavelength, respectively; a camera comprising: a camera that acquires a light ray of the first wavelength captured by the imaging unit as first image information, a light ray of the second wavelength as second image information, and acquires a light intensity of the first wavelength and a light intensity of the second wavelength in a complementary relationship; a processor that performs a calculation process of convolving an image filter with at least one of the first image information and the second image information, and a process of extracting surface information of the subject by comparing the first image information and the second image information; Equipped with The processor, When performing a calculation process in which the first image information and the second image information are convolved with the image filter, performing a calculation process in which a first image filter is convolved with the first image information; performing an arithmetic process on the second image information by convolving a second image filter different from the first image filter; Optical inspection equipment.
12. The processor, performing image filtering processing on the first image information as the first image filter to emphasize flatness of the image; performing image filtering processing on the second image information using the second image filter to enhance the contours of the image; The optical inspection apparatus of claim 11.
Citation Information
Patent Citations
Seal drawing inspection device and seal drawing inspection method
JP2005043290A
Optical inspection device and optical inspection method
JP2019124542A
Optical inspection apparatus and optical inspection method
JP2019203796A
Optical inspection device
JP2021076423A
Defect inspection device and defect inspection method
WO2017169242A1
