Surface inspection apparatus, surface inspection method, and program

The surface inspection apparatus efficiently detects defects and measures orange peel texture by using patterned light with phase shifts, improving inspection efficiency and accuracy.

JP2026056012APending Publication Date: 2026-04-01TAKANO CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2026-04-01

AI Technical Summary

Technical Problem

Existing surface inspection techniques are inefficient in simultaneously detecting defects and orange peel texture on inspection objects.

Method used

A surface inspection apparatus and method that uses patterned light with changing intensity in a rectangular wave shape, acquiring multiple images with phase shifts, and generating phase images to determine defects and measure orange peel texture.

Benefits of technology

Efficient inspection of defects and orange peel texture on inspection objects, enhancing detection accuracy and reducing noise influence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026056012000001_ABST
    Figure 2026056012000001_ABST
Patent Text Reader

Abstract

To efficiently inspect the surface of the object being inspected. [Solution] The illumination device 10 irradiates the object to be inspected with patterned light whose light intensity changes in a rectangular wave shape, while shifting the phase of the patterned light. The imaging device 20 acquires multiple images with different phases by imaging the object to be inspected multiple times with the reflected light of the patterned light irradiated by the illumination device 10. The phase image generation unit 314 generates a phase image based on the multiple images acquired by the imaging device 20, in which the phase value obtained at a specific timing is used as the brightness value. The inspection unit 315 determines whether or not there are defects in the object to be inspected based on the phase image generated by the phase image generation unit 314, and also measures the degree of orange peel texture in the object to be inspected based on the phase image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a surface inspection apparatus, a surface inspection method, and a program.

Background Art

[0002] Techniques for inspecting the surface of an inspection object are known. For example, Patent Document 1 discloses a surface inspection apparatus for a work such as a vehicle body that detects surface defects of the work based on a captured image and calculates a feature amount of the work's orange peel texture. In the technique disclosed in Patent Document 1, since a process of calculating the feature amount of the work's orange peel texture is performed in parallel with the process of detecting surface defects of the work, the processing efficiency of the inspection process can be improved.

Prior Art Documents

Patent Documents

[0003]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0004] In the technique for inspecting the surface of an inspection object as described above, it is required to more efficiently perform inspections of defects and orange peel texture on the surface of the inspection object.

[0005] The present invention has been made to solve the above problems, and an object thereof is to provide a surface inspection apparatus and the like that can efficiently inspect the surface of an inspection object.

Means for Solving the Problems

[0006] To achieve the above object, a surface inspection apparatus according to a first aspect of the present invention includes an illumination unit that irradiates an inspection object with pattern light whose light intensity changes in a rectangular wave shape while shifting the phase of the pattern light, An imaging unit acquires multiple images with different phases by imaging the object to be inspected multiple times using the reflected light of the pattern light irradiated by the illumination unit, A phase image generation unit generates a phase image having a phase value obtained at a specific timing as a brightness value, based on the plurality of captured images acquired by the imaging unit. The system includes an inspection unit that determines whether or not there are defects in the object to be inspected based on the phase image generated by the phase image generation unit, and measures the degree of orange peel texture in the object to be inspected based on the phase image.

[0007] To achieve the above objective, the surface inspection method according to the second aspect of the present invention is: A lighting step in which patterned light, whose light intensity changes in a rectangular wave shape, is shone onto the object to be inspected while shifting the phase of the patterned light, An imaging step in which the object to be inspected is imaged multiple times using the reflected light of the pattern light irradiated in the illumination step, thereby acquiring multiple images with different phases, A phase image generation step, based on the plurality of captured images acquired in the imaging step, generates a phase image having a phase value obtained at a specific timing as a brightness value, The inspection step includes determining whether there are defects in the object to be inspected based on the phase image generated in the phase image generation step, and measuring the degree of orange peel texture in the object to be inspected based on the phase image.

[0008] To achieve the above objective, the program according to the third aspect of the present invention is: Computers, The lighting unit includes a lighting control unit that irradiates the object to be inspected with patterned light whose light intensity changes in a rectangular wave shape, while shifting the phase of the patterned light. The imaging unit captures multiple images with different phases by causing the inspection target to be imaged multiple times using the reflected light of the pattern light irradiated by the illumination unit, and the image acquisition unit captures multiple images with different phases. A phase image generation unit generates a phase image having a phase value obtained at a specific timing as a brightness value, based on the plurality of captured images acquired by the image acquisition unit. The unit functions as an inspection unit that determines the presence or absence of defects in the object to be inspected based on the phase image generated by the phase image generation unit, and measures the degree of orange peel texture in the object to be inspected based on the phase image. [Effects of the Invention]

[0009] According to the present invention, the surface of the object to be inspected can be inspected efficiently. [Brief explanation of the drawing]

[0010] [Figure 1] This is a schematic diagram showing the overall configuration of the surface inspection apparatus according to the embodiment. [Figure 2] (A) is a diagram showing a light / dark pattern image displayed in the lighting device according to the embodiment. (B) is a diagram showing the profile of the light / dark pattern image shown in (A) in the phase shift direction. [Figure 3] This is a block diagram showing the configuration of an image processing apparatus according to an embodiment. [Figure 4] Figures (A) to (C) show how the light and dark pattern image displayed on the lighting device according to the embodiment is shifted by predetermined phases. [Figure 5] Figures (A) to (C) show examples of multiple captured images captured by the imaging device according to the embodiment. [Figure 6] This figure shows an example of a difference image according to the embodiment. [Figure 7] (A) is a diagram showing an example of a phase image according to the embodiment. (B) is a diagram showing the profile of the phase image shown in (A) in the phase shift direction. [Figure 8] This figure shows an example of how the brightness value of individual pixels in an image captured according to the embodiment changes in accordance with the phase of the pattern light irradiated from the illumination device. [Figure 9]It is a diagram showing an example of a differential image of a phase image according to an embodiment. [Figure 10] It is a flowchart showing the flow of a surface inspection process executed by a surface inspection apparatus according to an embodiment. [Figure 11] It is a plot diagram showing the relationship between the degree of a citrus peel texture measured by a surface inspection apparatus according to an embodiment and the measured value measured by a conventional measuring instrument. [Figure 12] It is a diagram showing the correlation coefficient between the degree of a citrus peel texture measured by a surface inspection apparatus according to an embodiment and the measured value measured by a conventional measuring instrument.

Embodiments of the Invention

[0011] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals.

[0012] A surface inspection apparatus 1 according to the present embodiment is an apparatus for inspecting the surface of an inspection target K. More specifically, the surface inspection apparatus 1 determines the presence or absence of defects on the surface of the inspection target K, and thereby inspects the surface state and appearance of the inspection target K. Here, the inspection target K is a specular object such as, for example, an automobile body, a bumper, or a resin packaging film. The surface of the inspection target K is not limited to being planar, and may be curved. A defect is an abnormal part that may exist on the surface of the inspection target K, and as an example, it includes dirt, scratches, foreign matter, depressions, bulges, and the like.

[0013] As shown in FIG. 1, the surface inspection apparatus 1 includes an illumination device 10, an imaging device 20, and an image processing device 30. These are also referred to as an illumination unit, an imaging unit, and an image processing unit, respectively. Hereinafter, details of each of these units will be described.

[0014] <Illumination device (illumination unit) 10> The lighting device 10 is a unit that irradiates light onto the object to be inspected K. The lighting device 10 is equipped with a surface light source capable of emitting patterned light whose light intensity changes periodically, and irradiates the surface of the object to be inspected K with the patterned light emitted from the surface light source.

[0015] To explain in more detail, the lighting device 10 includes, for example, an electronic display (hereinafter simply referred to as "display") as a surface light source. The display is, for example, a liquid crystal display or an EL (Electro-Luminescence) display that can emit visible light in a planar manner. The lighting device 10 displays an image on the display and irradiates the object to be inspected K with display light L1 representing the displayed image. As a result, the object to be inspected K is illuminated by the lighting device 10.

[0016] More specifically, the illumination device 10 displays an image on the display representing patterned light in which the light intensity changes periodically in one direction (the X-axis direction in Figure 1). Specifically, when illuminating the object to be inspected K, the illumination device 10 displays the light-dark pattern image 11 shown in Figure 2(A) on the display. The light-dark pattern image 11 has multiple bright areas and multiple dark areas arranged alternately in the horizontal direction (X-axis direction). The multiple bright areas and multiple dark areas form a light-dark pattern in which light and dark are periodically repeated. Each bright area is a long rectangular bright region in the vertical direction (Y-axis direction), for example, a white region. Each dark area is a long rectangular dark region in the vertical direction (Y-axis direction), which is darker than the bright areas, i.e., a region with lower light intensity. Each dark area is, for example, a black region, i.e., a region that does not emit display light L1.

[0017] Figure 2(B) shows the profile of the light-dark pattern image 11 at the position indicated by the dashed arrow in Figure 2(A). As shown in Figure 2(B), the profile of the light-dark pattern image 11 in the X-axis direction, that is, in the direction in which the light intensity changes periodically, is rectangular wave-shaped. In the light-dark pattern image 11, the light intensity of each bright and dark area is constant. Also, the width s (hereinafter referred to as "slit width s") of each bright and dark area in the lateral direction (X-axis direction) is all equal. The sum of the width s of one bright area and the width s of one dark area corresponds to one period.

[0018] The lighting device 10 displays such a light and dark pattern image 11 on a display and irradiates the object to be inspected K with display light L1, which is a rectangular wave-shaped pattern light (may also be called "slit light"). The surface of the object to be inspected K is irradiated with the light and dark pattern shown by the display light L1. The display light L1 irradiated from the display is specularly reflected off the surface of the object to be inspected K. The display light L1 reflected off the object to be inspected K is called reflected light L2.

[0019] <Imaging device (imaging unit) 20> The imaging device 20 is a unit that acquires an image of the inspection target K by imaging the inspection target K. The imaging device 20 is positioned on the same side as the illumination device 10 with respect to the inspection target K, and receives the reflected light L2 from the inspection target K of the pattern light irradiated by the illumination device 10. The imaging device 20 then images the inspection target K using the reflected light L2 and acquires an image of the inspection target K.

[0020] More specifically, the imaging device 20 includes, although not shown in the figures, a lens that focuses reflected light L2 and an image sensor that receives the reflected light L2 focused by the lens. The image sensor includes, for example, an image sensor such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal Oxide Semiconductor). The image sensor receives the reflected light L2 reflected from the surface of the object to be inspected K and generates an image showing the brightness distribution of the surface of the object to be inspected K.

[0021] The reflected light L2 incident on the image sensor is photoelectrically converted by a photodiode and read out as a signal by a readout circuit (not shown in the diagram). The readout circuit includes, for example, an A / D (Analog / Digital) converter that converts the analog signal representing the image captured by the image sensor into digital data. The signal read out by the image sensor is output to the image processing device 30.

[0022] <Image processing device (image processing unit) 30> Returning to Figure 1, the image processing device 30 performs image processing based on the image captured by the imaging device 20 to inspect for defects on the surface of the object K to be inspected. Specifically, the image processing device 30 is an information processing device such as a personal computer or a cloud server. The image processing device 30 may be integrated with at least one of the illumination device 10 and the imaging device 20 to form a single unit, or it may be located separately from the illumination device 10 and the imaging device 20. As shown in Figure 3, the image processing device 30 includes a control unit 31, a storage unit 32, an operation unit 33, a display unit 34, and a communication unit 35.

[0023] The control unit 31 includes a CPU (Central Processing Unit), ROM (Read Only Memory), and RAM (Random Access Memory). The CPU is a central processing unit that includes a microprocessor and performs various operations and calculations. In the control unit 31, the CPU reads the control program stored in the ROM and controls the operation of the entire image processing device 30 while using the RAM as work memory. The control unit 31 may also include an image processing processor such as a DSP (Digital Signal Processor) or GPU (Graphics Processing Unit).

[0024] The storage unit 32 is a non-volatile memory such as flash memory or a hard disk. The storage unit 32 stores programs and data executed by the control unit 31, as well as data generated by the control unit 31. The operation unit 33 is equipped with input devices such as a keyboard, mouse, or touch panel, and accepts user input. The display unit 34 is equipped with a display device such as a liquid crystal display or an organic EL (Electro-Luminescence) display, and displays various images under the control of the control unit 31. For example, the display unit 34 displays an image representing the inspection results from the surface inspection device 1.

[0025] The communication unit 35 is equipped with a communication interface for communicating with external devices of the image processing device 30. For example, the communication unit 35 communicates with external devices in accordance with well-known communication standards such as LAN (Local Area Network) and USB (Universal Serial Bus). Here, the external devices include the illumination device 10 and the imaging device 20. For example, the communication unit 35 communicates with the illumination device 10 and transmits control signals to the illumination device 10. The communication unit 35 also communicates with the imaging device 20 and acquires the image of the inspection target K captured by the imaging device 20.

[0026] Functionally, the control unit 31 comprises an illumination control unit 311, an image acquisition unit 312, a difference image generation unit 313, a phase image generation unit 314, an inspection unit 315, and an output unit 316. In the control unit 31, the CPU functions by reading a program stored in ROM into RAM and executing that program to control each of these units.

[0027] The lighting control unit 311 controls the illumination provided by the lighting device 10. The lighting control unit 311 supplies an image signal to the lighting device 10 via the communication unit 35. The lighting control unit 311 then displays a light-dark pattern image 11, which shows a rectangular wave-shaped pattern of light, on the display of the lighting device 10, as shown in Figure 2(A). The lighting device 10 displays the light-dark pattern image 11 on its display according to the image signal supplied from the lighting control unit 311 and irradiates the object to be inspected K with the pattern light represented by the light-dark pattern image 11.

[0028] More specifically, the lighting control unit 311 repeatedly displays the light and dark pattern image 11 on the display of the lighting device 10 while shifting the phase of the rectangular wave-shaped pattern light. Here, the phase is a value that represents the position within one cycle in the pattern light in which light and dark areas are periodically repeated.

[0029] To explain in more detail, the lighting control unit 311 displays the light and dark pattern images 11A, 11B, 11C, ... on the lighting device 10 in the order shown in Figures 4(A) to (C) at regular time intervals. Here, the phase of the pattern light in light and dark pattern image 11B is shifted by φ in the X-axis direction compared to light and dark pattern image 11A. Similarly, the phase of the pattern light in light and dark pattern image 11C is shifted by φ in the X-axis direction compared to light and dark pattern image 11B. Due to this phase shift in the X-axis direction, the bright or dark areas gradually disappear from the right edge of the display, and in their place, new bright or dark areas gradually appear from the left side of the display.

[0030] In this way, the lighting control unit 311 displays the light and dark pattern image 11 on the lighting device 10 while moving the display positions of the light and dark areas on the display by φ in the X-axis direction. As a result, the lighting device 10 irradiates the surface of the object to be inspected K with pattern light whose light intensity changes in a rectangular wave shape, while shifting its phase.

[0031] The phase shift amount φ is expressed as "2s / n" using the slit width s when the illumination device 10 is irradiated with the pattern light in n cycles (where n is a natural number greater than or equal to 2). In this case, when the phase shifts n times, the pattern light returns to its initial phase. For example, when n=5, the illumination control unit 311 displays the light / dark pattern image 11 on the illumination device 10 while shifting the light / dark pattern by 2s / 5 each time.

[0032] Returning to Figure 3, the image acquisition unit 312 acquires the image of the inspection target K captured by the imaging device 20. The image acquisition unit 312 supplies a control signal to the imaging device 20 via the communication unit 35 to instruct it to take an image. When the control signal is supplied, the imaging device 20 performs an imaging operation and takes an image of the inspection target K illuminated by the illumination device 10. The imaging device 20 supplies image data showing the image obtained by imaging to the image processing device 30. The image acquisition unit 312 acquires the image data supplied from the imaging device 20 via the communication unit 35 and stores it in the storage unit 32.

[0033] More specifically, the image acquisition unit 312 causes the imaging device 20 to image the inspection target K multiple times at a timing synchronized with the timing when the illumination control unit 311 displays the light-dark pattern image 11 on the illumination device 10. Specifically, the image acquisition unit 312 causes the imaging device 20 to image the inspection target K at each timing when the illumination device 10 is displaying the light-dark pattern images 11A, 11B, 11C, ... shown in Figures 4(A) to (C). In other words, the image acquisition unit 312 causes the imaging device 20 to image the inspection target K n times in one cycle. Here, n (times / cycle) is the number of times the imaging device 20 images the inspection target K per cycle of pattern light, and corresponds to the sampling number described later. As a result, the image acquisition unit 312 acquires imaged images 21A, 21B, 21C, ... as shown in Figures 5(A) to (C).

[0034] Each of the multiple captured images 21A, 21B, 21C, ... is an image of the inspection target K with a light and dark pattern corresponding to the bright and dark areas projected onto its surface. The light and dark patterns in each captured image 21A, 21B, 21C, ... are shifted according to the phase of the pattern light (illumination pattern) emitted from the illumination device 10. In this way, the image acquisition unit 312 acquires multiple captured images 21A, 21B, 21C, ... with different phases of the pattern light. Figures 5(A) to (C) show an example where the surface of the inspection target K is flat. If the surface of the inspection target K is curved, distortion occurs in the light and dark patterns in the multiple captured images 21A, 21B, 21C, ...

[0035] In each of the captured images 21A, 21B, 21C, ..., the direction in which the phase shifts is defined as the X-axis direction, and the direction perpendicular to the X-axis direction is defined as the Y-axis direction, similar to the light and dark pattern images 11A, 11B, 11C, .... Hereafter, when referring to multiple captured images 21A, 21B, 21C, ... without distinguishing between them, they will be collectively referred to as captured image 21.

[0036] As an example, the captured images 21A, 21B, 21C, ... shown in Figures 5(A) to (C) capture defects X1 and X2 present on the surface of the object K being inspected. Here, defect X1 is a defect such as dirt, scratches, or foreign matter. Defect X2 is a defect caused by abnormal surface irregularities such as depressions or bulges. In other words, defect X1 corresponds to defects other than surface shape (first type of defect), and defect X2 corresponds to surface shape defects (second type of defect). The illumination device 10 irradiates the object K being inspected with patterned light while shifting the phase, so that the bright and dark parts of the patterned light pass through defects X1 and X2, respectively. Therefore, by taking multiple images with the imaging device 20, captured images 21 are obtained for cases where defects X1 and X2 are located in the bright and dark parts, respectively.

[0037] Each captured image 21 may be a color image or a grayscale image. For the sake of clarity, in the following explanation, each captured image 21 will be described as a 256-level grayscale image with each pixel having a brightness value between 0 and 255.

[0038] The image processing device 30 inspects the surface of the object to be inspected K based on a plurality of captured images 21A, 21B, 21C, ... acquired by the image acquisition unit 312. Specifically, the image processing device 30 performs a first inspection using difference images and a second inspection using phase images. Each of these will be described below.

[0039] Returning to Figure 3, the difference image generation unit 313 generates the difference image 22 shown in Figure 6 based on the multiple captured images 21A, 21B, 21C, ... acquired by the image acquisition unit 312. Here, the difference image 22 is an image in which the difference between the maximum and minimum brightness values ​​in the multiple captured images 21A, 21B, 21C, ... is used as the brightness value for each pixel. The difference image generation unit 313 calculates the difference between the maximum and minimum brightness values ​​in the multiple captured images 21A, 21B, 21C, ... for each pixel and generates a difference image 22 in which the calculated difference is used as the brightness value for each pixel.

[0040] More specifically, the difference image generation unit 313 compares the luminance values ​​(for example, values ​​ranging from 0 to 255 corresponding to 256 gradations) of pixels at the same coordinates in the multiple captured images 21A, 21B, 21C, ..., and identifies the maximum and minimum luminance values. Here, the maximum luminance value of a pixel corresponds to the luminance value when that pixel is illuminated by the bright part of the pattern light. The minimum luminance value of a pixel corresponds to the luminance value when that pixel is illuminated by the dark part of the pattern light. The difference image generation unit 313 calculates the difference between the identified maximum and minimum luminance values ​​for each pixel at each coordinate and generates a difference image 22 in which the calculated difference is used as the luminance value for each pixel.

[0041] Specifically, the brightness value of the pixel at coordinate (x,y) in the i-th image (i=1,2,3,...) among the multiple captured images 21A, 21B, 21C,... is represented as Pxy(i). In this case, the maximum and minimum brightness values ​​of the pixel at coordinate (x,y) are represented as max(Pxy(i)) and min(Pxy(i)), respectively. The difference image generation unit 313 calculates the brightness value Sxy of the pixel at coordinate (x,y) in the difference image 22 using the following equation (1). Sxy = max(Pxy(i))-min(Pxy(i)) …(1)

[0042] For example, if the brightness value of the pixel at coordinate (x,y) is largest in the captured image 21A and smallest in the captured image 21C, then the value obtained by subtracting the brightness value of the pixel at coordinate (x,y) in captured image 21C from the brightness value of the pixel at coordinate (x,y) in captured image 21A will be the brightness value of the pixel at coordinate (x,y) in the difference image 22.

[0043] If defects X1 and X2 are captured in each of the captured images 21A, 21B, 21C, ..., then defects X1 and X2 are also captured in the difference image 22, as shown in Figure 6. Generally, the reflectance of the display light L1 in the defective area, such as dirt, scratches, or foreign matter like defect X1, is different from that of the normal area on the surface of the object K being inspected. Therefore, the difference between the maximum and minimum brightness values ​​in the area of ​​defect X1 is smaller than the difference in the normal area. In other words, the brightness value of the area of ​​defect X1 in the difference image 22 is smaller than that of the normal area. Defect X1 can be detected by utilizing the brightness value in such a difference image 22. In particular, since the difference image 22 takes the difference in brightness values, the influence of noise can be reduced, so the difference between the area of ​​defect X1 and the normal area is emphasized compared to the captured image 21. Therefore, by using the difference image 22, it becomes possible to accurately determine the presence or absence of defect X1.

[0044] Returning to Figure 3, the phase image generation unit 314 generates a phase image 23 as shown in Figure 7(A) based on a plurality of captured images 21A, 21B, 21C, ... acquired by the image acquisition unit 312. Here, the phase image 23 is an image in which the luminance value of each pixel has a value corresponding to the phase in the pattern light. More specifically, the phase value is a value corresponding to the phase at a specific timing (for example, at the time of the first capture) when the plurality of captured images 21A, 21B, 21C, ... are viewed for individual pixel coordinates.

[0045] Figure 7(B) shows the profile of the phase image 23 at a location where defects X1 and X2, indicated by dashed arrows in Figure 7(A), are not present. As shown in Figure 7(B), the brightness value of each pixel in the phase image 23 corresponds to the phase, so when the surface of the object K being inspected is planar, it becomes a periodic value in the X-axis direction, which is the phase shift direction. The repetition period in the phase image 23 corresponds to the repetition period of the pattern light irradiated by the illumination device 10 (width 2s in the light / dark pattern image 11).

[0046] The phase image 23 is used to accurately determine the presence or absence of surface morphological defects such as defect X2. Specifically, if there are gentle irregularities on the surface of the object K to be inspected, the reflectance of the display light L1 in the irregular areas is about the same as that of the normal areas. Therefore, the difference in reflectance between the irregular areas and the normal areas is smaller than in the case of defect X1. For this reason, unlike defect X1, it is difficult to accurately detect defect X2 with the difference image 22. On the other hand, in the phase image 23, if there are gentle irregularities on the surface of the object K to be inspected, a deviation from the ideal profile shown in Figure 7(B) occurs. Therefore, the phase image generation unit 314 generates the phase image 23 in order to accurately determine the presence or absence of defect X2. The specific procedure for generating the phase image 23 is described below.

[0047] The phase image generation unit 314 identifies predetermined timings for each pixel, such as the rise time of pattern light, based on a plurality of captured images 21A, 21B, 21C, ... The phase image generation unit 314 then generates a phase image 23 having phase values ​​based on the identified timings as brightness values. Here, the timing of the rise time of pattern light at a given pixel means the timing at which the pattern light incident on that pixel switches from a dark area (valley) to a bright area (peak). Note that the phase image generation unit 314 may use other timings in the pattern light, not just the rise time of pattern light, as predetermined timings.

[0048] Figure 8 shows an example of the change in brightness value in individual pixels according to the illumination pattern phase. The dashed line graph in Figure 8 is a waveform showing the ideal change in brightness value when the shift in the illumination pattern phase is sufficiently large per cycle. Here, section (a) is the maximum value portion of the waveform, section (b) is the falling edge portion of the waveform, section (c) is the minimum value portion of the waveform, and section (d) is the rising edge portion of the waveform, with the beginning of section (a) being phase 0. The width of section (a) and section (c) is expressed as a ratio of one cycle, and the width of section (b) and section (d) is expressed as (1-2a) / 2 as a ratio of one cycle. In practice, multiple captured images 21 are acquired with a certain phase interval between them, as shown by the sampling timing indicated by the black dots in Figure 8, due to considerations such as the acquisition time and the amount of data. The sampling waveform of each pixel is acquired with a phase shift according to the position and slope of each subject, and predetermined timings such as rising edges change accordingly.

[0049] Once a predetermined timing t1 is identified for each pixel at each coordinate, the phase image generation unit 314 calculates a phase value, which is the value corresponding to the phase at timing t1, from the identified timing t1 according to a predetermined transformation formula. The phase image generation unit 314 then sets the calculated phase value as the brightness value Qxy of the coordinate (x,y) in the phase image 23, after appropriately offsetting and scaling it. The phase image generation unit 314 calculates the phase value in this way for each pixel at coordinate (x,y) included in the captured image 21 and sets the brightness value Qxy in the phase image 23. As a result, the phase image generation unit 314 generates a phase image 23 as shown in Figure 7(A).

[0050] Returning to Figure 3, the inspection unit 315 inspects the surface of the object K. Based on the difference image 22 generated by the difference image generation unit 313 and the phase image 23 generated by the phase image generation unit 314, the inspection unit 315 determines whether or not there are defects on the surface of the object K.

[0051] Firstly, the inspection unit 315 determines, based on the difference image 22 generated by the difference image generation unit 313, whether or not a defect of a first type, such as defect X1, exists on the surface of the object to be inspected K. Specifically, the inspection unit 315 determines whether or not there is a region in the difference image 22 that satisfies the first defect condition. The first defect condition is a condition for determining the presence or absence of a defect of a first type. As shown in Figure 6, the part of the difference image 22 where defect X1 exists has a lower brightness value than the normal part. Therefore, the inspection unit 315 can determine, as an example, that a region in which a predetermined number or more pixels with a brightness value smaller than a threshold are concentrated is a region that satisfies the first defect condition. Specifically, the inspection unit 315 generates a binarized image in the difference image 22 in which pixels with a brightness value of 1 or higher than the threshold are set to "1" (white) and pixels with a brightness value of less than the threshold are set to "0" (black). The inspection unit 315 then determines that regions in the binarized image where a predetermined number or more pixels of "0" are concentrated are regions that satisfy the first defect condition.

[0052] The first defect condition is not limited to this, and various conditions can be adopted as the first defect condition. For example, the inspection unit 315 may identify a region in which a predetermined number or more pixels with a brightness value smaller than a threshold are concentrated, and determine whether the identified region satisfies the first defect condition based on the characteristics of the identified region. Here, the characteristics of the region are, for example, the shape and size of the region. For example, if the shape and size of the identified region match the shape and size typical of dirt, the inspection unit 315 will determine that a dirt defect exists in the identified region. The same applies to defects such as scratches and foreign objects.

[0053] Alternatively, the inspection unit 315 may perform a predetermined process on the brightness value of each pixel in the difference image 22 and determine whether or not there is a region in the difference image 22 that satisfies the first defect condition based on the brightness value after the predetermined process. In this way, regardless of what condition is adopted as the first defect condition, the difference image 22 emphasizes the parts where the first type of defect exists, such as dirt, scratches, or foreign objects, compared to the captured image 21. Therefore, the inspection unit 315 can accurately determine the presence or absence of the first type of defect by using the difference image 22.

[0054] Secondly, the inspection unit 315 determines, based on the phase image 23 generated by the phase image generation unit 314, whether or not there are surface shape defects of a second type of defect, such as defect X2, on the surface of the object to be inspected K. This allows the inspection unit 315 to check whether or not there are abnormalities such as depressions or bulges in the surface shape of the object to be inspected K.

[0055] The inspection unit 315 generates a differential image 24 from the phase image 23 generated by the phase image generation unit 314. Specifically, the inspection unit 315 calculates the difference in brightness value between each pixel of the phase image 23 and other pixels in the phase shift direction (X-axis direction). Based on the calculated difference, it generates the differential image 24 shown in Figure 9. The differential image 24 is an image obtained by taking the first derivative of the brightness value for each pixel of the phase image 23 in the X-axis direction (phase shift direction), that is, by calculating the difference in brightness value between adjacent pixels in the X-axis direction. The brightness value Rxy of coordinate (x,y) in the differential image 24 is calculated by the difference between the brightness value Qxy of coordinate (x,y) and the brightness value Q(x+1)y of coordinate (x+1,y) in the phase image 23, as shown in equation (2) below. Rxy = Qxy - Q(x+1)y …(2)

[0056] Furthermore, when the inspection unit 315 generates a differential image 24 from the phase image 23, it calculates the brightness value Rxy in the differential image 24 by adding an appropriate offset to eliminate the phase jump (the edge portion of the profile shown in Figure 7(B)) that exists in each period. The differential image 24 is an example of an image based on the phase image 23.

[0057] When the differential image 24 is generated, the inspection unit 315 determines whether or not there is a region in the differential image 24 that satisfies the second defect condition. The second defect condition is a condition for determining whether or not there is a defect in the surface shape, such as a depression or a bulge. Specifically, the inspection unit 315 performs shading correction on the differential image 24. Shading correction is a process that corrects brightness unevenness in the differential image 24. When performing shading correction, the inspection unit 315 uses shading parameters for defect detection. Specifically, the shading parameters for defect detection are parameters whose main purpose is to suppress brightness unevenness caused by the influence of non-defective curved surfaces, that is, the influence of surface changes over a large area. Such brightness unevenness in the differential image 24 occurs, for example, due to differences in slope in the part under inspection. In shading correction, the inspection unit 315 generates a luminance distribution image showing the overall distribution of luminance values ​​in the differential image 24, divides the luminance value of the pixel at the same coordinate in the original differential image 24 by the luminance value of each pixel in the luminance distribution image, and scales the luminance values ​​as appropriate.

[0058] When shading correction is performed, the inspection unit 315 extracts bright or dark areas from the differential image 24 after shading correction, and determines whether or not there is a region in the differential image 24 that satisfies the second defect condition based on the brightness values ​​of the extracted bright or dark areas. If there is a region that satisfies the second defect condition, the inspection unit 315 determines that there is a surface defect such as defect X2 in that region.

[0059] Furthermore, the second defect condition is not limited to this, and various conditions can be adopted as the second defect condition. For example, the inspection unit 315 generates a histogram of brightness values ​​for each of several regions in the differential image 24. The inspection unit 315 then compares the peak value or standard deviation of the histogram with a predetermined threshold. As a result of the comparison, the inspection unit 315 may determine that a region where the peak value is smaller than the threshold, or a region where the standard deviation is larger than the threshold, satisfies the second defect condition, and may determine that a surface shape defect such as defect X2 exists in that region. Regardless of the conditions adopted as the second defect condition, the inspection unit 315 can accurately determine the presence or absence of surface shape defects such as depressions and bulges by using the phase image 23.

[0060] Furthermore, in addition to the process of determining the presence or absence of defects as described above, the inspection unit 315 measures the degree of orange peel texture on the surface of the object to be inspected K based on the phase image 23 generated by the phase image generation unit 314. Here, orange peel texture refers to the phenomenon in which the paint film does not become smooth during painting or other processes, resulting in an uneven surface resembling the peel of an orange. The degree of orange peel texture refers to the degree of unevenness on such an uneven surface. Orange peel texture can also be called glossy skin or smooth skin. Although orange peel texture is not a surface shape defect like defect X2, its degree affects the appearance quality of the object to be inspected K. Therefore, as one of the surface inspections of the object to be inspected K, the inspection unit 315 measures the degree of orange peel texture on the surface of the object to be inspected K.

[0061] When measuring the degree of orange peel texture, the inspection unit 315 calculates an orange peel feature quantity, which is a value indicating the degree of orange peel texture, based on the differential image 24 described above. Specifically, the inspection unit 315 performs shading correction on the differential image 24. When performing shading correction, the inspection unit 315 uses shading parameters for orange peel texture measurement. Here, the inspection unit 315 uses parameters that are different from the shading parameters for defect detection described above, and are suitable for orange peel texture measurement. Specifically, the shading parameters for orange peel texture measurement, for example, the smoothness, differ from those of the shading parameters for defect detection.

[0062] When shading correction is performed, the inspection unit 315 calculates the standard deviation of the brightness values ​​in the image after shading correction as an orange peel feature. Specifically, the inspection unit 315 calculates the standard deviation of the brightness values ​​of multiple pixels contained within a specified range of the image after shading correction. Here, the specified range is the range in which the degree of orange peel is measured, and may be the entire image or a part of the image. The specified range can be freely specified by the user by operating the operation unit 33.

[0063] Returning to Figure 3, the output unit 316 outputs the inspection results from the inspection unit 315. Specifically, the output unit 316 displays an image showing the inspection results from the inspection unit 315 on the display unit 34. Alternatively, the output unit 316 is not limited to displaying the inspection results from the inspection unit 315 on the display unit 34, but may also output them to an external device via the communication unit 35.

[0064] For example, the output unit 316 displays an image on the display unit 34 showing the degree of orange peel texture measured by the inspection unit 315. Furthermore, if the inspection unit 315 determines that defects X1 and X2 exist on the surface of the object to be inspected K, the output unit 316 displays an image on the display unit 34 showing the locations of defects X1 and X2 on the surface of the object to be inspected K. In this case, if a first type of defect X1 is determined to exist, the output unit 316 may display the difference image 22 shown in Figure 6 on the display unit 34 and highlight the area of ​​defect X1 within the displayed difference image 22. If a second type of defect X2 is determined to exist, the output unit 316 may display the differential image 24 shown in Figure 9 on the display unit 34 and highlight the area of ​​defect X2 within the displayed differential image 24. Through this output processing by the output unit 316, the user can confirm the surface condition of the object to be inspected K.

[0065] Next, the flow of the surface inspection process performed by the surface inspection device 1 will be explained with reference to the flowchart shown in Figure 10. The surface inspection process shown in Figure 10 is performed by the control unit 31 of the image processing device 30 when the user operates the operation unit 33 of the image processing device 30 to instruct the start of the surface inspection process, provided that the illumination device 10 is able to illuminate the inspection target K and the imaging device 20 is able to image the inspection target K. The surface inspection process shown in Figure 10 is an example of a surface inspection method.

[0066] When the surface inspection process is started, the control unit 31 functions as an illumination control unit 311 and causes the illumination device 10 to irradiate the object to be inspected K with a rectangular wave pattern light (step S1). Specifically, the control unit 31 displays the light and dark pattern image 11 shown in Figure 2(A) on the display of the illumination device 10 and irradiates the object to be inspected K with the display light L1 corresponding to the light and dark pattern image 11.

[0067] When the illumination device 10 is irradiated with patterned light, the control unit 31 functions as an image acquisition unit 312 and causes the imaging device 20 to image the object to be inspected K (step S2). Specifically, the control unit 31 causes the imaging device 20 to image the object to be inspected K at a timing synchronized with the timing when the illumination device 10 is irradiated with patterned light, and acquires an image 21 using the reflected light L2 reflected from the surface of the object to be inspected K.

[0068] When an image 21 is acquired, the control unit 31 determines whether the number of acquisitions has reached a specified value (step S3). The specified value is set to n, for example, the number of samples per cycle, in order to acquire multiple images 21 with different phases over one cycle.

[0069] If the number of imaging cycles has not reached the specified value (step S3; NO), the control unit 31 shifts the phase of the pattern light emitted by the illumination device 10 by a predetermined shift amount φ (step S4). Then, the control unit 31 returns to step S2 and has the imaging device 20 image the inspection target K illuminated by the phase-shifted pattern light, thereby acquiring an image 21 of the inspection target K. In this way, the control unit 31 continues to shift the phase of the pattern light emitted from the illumination device 10 by φ each time until the number of imaging cycles reaches the specified value, while having the imaging device 20 image the inspection target K. As a result, the control unit 31 acquires multiple image images 21A, 21B, 21C, ... with shifted phases, as shown in Figures 5(A) to (C).

[0070] Subsequently, when the number of imaging cycles reaches a specified value (step S3; YES), the control unit 31 performs inspection processing of the inspection target K based on the multiple imaging images 21 acquired in step S2. Firstly, the control unit 31 functions as a difference image generation unit 313 and generates a difference image 22 from the multiple imaging images 21 (step S5). Specifically, the control unit 31 calculates the difference between the maximum and minimum brightness values ​​in the multiple imaging images 21 acquired in step S2 for each pixel. Then, the control unit 31 generates a difference image 22, as shown in Figure 6, in which the calculated difference is used as the brightness value for each pixel.

[0071] Secondly, the control unit 31 functions as a phase image generation unit 314 and generates a phase image 23 from a plurality of captured images 21 (step S6). Specifically, the control unit 31 identifies a predetermined timing t1, such as the rising edge of pattern light, from the plurality of captured images 21 acquired in step S2, for each pixel. Then, the control unit 31 generates a phase image 23, as shown in Figure 7, in which the phase value based on the identified timing t1 is used as the brightness value of each pixel.

[0072] After generating the difference image 22 and the phase image 23, the control unit 31 generates a differential image 24 from the phase image 23 (step S7). The control unit 31 then functions as an inspection unit 315 and determines whether or not there are defects in the object K to be inspected (step S8). Specifically, the control unit 31 determines whether or not there are defects other than surface defects such as defect X1 based on the difference image 22. The control unit 31 also performs shading correction on the differential image 24 using shading parameters for defect detection. Then, the control unit 31 determines whether or not there are surface defects such as defect X2 based on the differential image 24 after the shading correction has been performed.

[0073] Furthermore, the control unit 31 measures the degree of orange peel texture on the surface of the object K to be inspected (step S9). Specifically, the control unit 31 performs shading correction on the differential image 24 using shading parameters for orange peel texture measurement. Then, the control unit 31 calculates the orange peel texture feature by calculating the standard deviation of the brightness values ​​in a specified range of the differential image 24 after the shading correction has been performed.

[0074] Once the characteristic quantities of the orange peel texture are calculated, the control unit 31 functions as an output unit 316 and outputs the judgment result in step S8 and the measurement result in step S9 to an external source via display, communication, etc. (step S10). With this, the surface inspection process shown in Figure 10 is completed.

[0075] As described above, the surface inspection apparatus 1 according to this embodiment irradiates the inspection target K with pattern light whose light intensity changes in a rectangular wave shape, while shifting the phase, and images the inspection target K with the reflected light of the irradiated pattern light.The surface inspection apparatus 1 according to this embodiment generates a phase image 23 based on a plurality of captured images 21 with different phases, determines the presence or absence of defects in the inspection target K based on the generated phase image 23, and measures the degree of orange peel texture in the inspection target K based on the phase image 23.In this way, the surface inspection apparatus 1 according to this embodiment can efficiently inspect the surface of the inspection target K because it performs two inspections, the presence or absence of defects and the degree of orange peel texture, based on a single phase image 23.

[0076] In particular, the surface inspection device 1 according to this embodiment can accurately detect surface shape defects such as defect X2, which are difficult to inspect with difference images 22, by using phase images 23. Furthermore, since the surface inspection device 1 according to this embodiment can evaluate the degree of orange peel texture, it can inspect not only surface shape defects but also surface shapes that have not reached the level of defects.

[0077] Furthermore, since the surface inspection apparatus 1 according to this embodiment irradiates with rectangular wave-shaped pattern light, the maximum and minimum values ​​of the pattern light can be sampled, and the amplitude can be stably detected. Therefore, it is possible to accurately detect not only the second type of defect, but also the first type of defect such as dirt, scratches, and foreign matter. In addition, since rectangular wave-shaped pattern light is irradiated, the configuration of the illumination device 10 can be simplified compared to the case where sinusoidal wave-shaped or other pattern light is irradiated, thus reducing labor and costs. Moreover, since rectangular wave-shaped pattern light is irradiated, the aperture angle of the imaging device 20 can be reduced, which is advantageous for improving inspection sensitivity and inspection range (depth of field, etc.).

[0078] (evaluation) Next, the degree of orange peel texture measured by the surface inspection device 1 according to the above embodiment is compared with the measured values ​​obtained by a conventional measuring instrument. As a conventional measuring instrument, a contact-type measuring instrument, MicroWaveScan-T (manufactured by BYK-Gardner), was used to measure the waviness intensity of the sample surface at each waviness wavelength W1 to W4. Here, the waviness intensity at each waviness wavelength W1 to W4 is obtained by scanning the sample surface while irradiating it with a laser beam, detecting the intensity of the reflected beam with a sensor, and then analyzing and quantifying it. The smaller the numerical value of the waviness intensity, the less waviness there is corresponding to each waviness wavelength W1 to W4, indicating that the sample surface is smoother.

[0079] Specifically, Figures 11 and 12 show the measurement results of waviness intensity measured with a conventional measuring instrument and the degree of orange peel texture measured with the surface inspection device 1 according to this embodiment. For the measurement, a painted surface painted perpendicular to the ground (hereinafter referred to as "perpendicular") and a painted surface painted horizontally to the ground (hereinafter referred to as "horizontal") were used as samples. The thickness of the painted surface was varied in multiple ways within the range of 15 to 55 μm, and the waviness intensity measured with a conventional measuring instrument and the degree of orange peel texture measured with the surface inspection device 1 according to this embodiment were compared.

[0080] Firstly, Figure 11 shows the relationship between the waviness intensity at the waviness wavelength W1 measured by a conventional measuring instrument and the degree of orange peel texture measured by the surface inspection device 1 according to this embodiment. In Figure 11, "entire range" refers to the case where the degree of orange peel texture is measured over the entire range of the captured image 21, and "center" refers to the case where the degree of orange peel texture is measured only in the central part of the captured image 21 (specifically, 300 pixels). Then, the measurement results were linearly approximated for four cases: (1) "vertical" and "entire range", (2) "horizontal" and "entire range", (3) "vertical" and "center", and (4) "horizontal" and "center", when the thickness of the painted surface was changed in multiple ways. The linearly approximated lines are shown as dashed lines in Figure 11. In each of the cases (1) to (4), the waviness intensity measured by the conventional measuring instrument and the degree of orange peel texture measured by the surface inspection device 1 according to this embodiment show good linearity.

[0081] Secondly, Figure 12 shows the correlation coefficient between the waviness intensity measured with a conventional measuring instrument and the degree of orange peel texture measured with the surface inspection device 1 according to this embodiment, when the thickness of the painted surface is varied in multiple ways. In this case, the conventional measuring instrument measured the waviness intensity for each of the waviness wavelengths W1 to W4. In addition, in the measurement with the surface inspection device 1 according to this embodiment, the degree of orange peel texture in the "entire range" and "center" was measured for each case where the phase shift direction of the pattern light (X-axis direction) is perpendicular to the painted surface of the sample (hereinafter referred to as "vertical slit") and where the phase shift direction of the pattern light (X-axis direction) is perpendicular to the painted surface of the sample (hereinafter referred to as "horizontal slit"). As shown in Figure 12, the correlation coefficient was 1 or close to 1 for each combination of the waviness wavelengths W1 to W4 and the "vertical slit" and "horizontal slit" cases.

[0082] From the results shown in Figures 11 and 12, it was confirmed that the surface inspection device 1 according to this embodiment can measure the degree of orange peel texture in the same way as when measuring waviness intensity with a conventional measuring instrument. In particular, the surface inspection device 1 according to this embodiment does not require contact with the surface of the object to be inspected K, as with conventional measuring instruments, and can measure the degree of orange peel texture non-contact. Therefore, it can be easily used in combination with other appearance inspections, thereby increasing the efficiency of the inspection.

[0083] (modified version) Although embodiments of the present invention have been described above, it is possible to combine the embodiments, or to modify or omit the embodiments as appropriate.

[0084] For example, in the above embodiment, the lighting device 10 irradiated the object to be inspected K with a rectangular wave pattern light by displaying a light / dark pattern image 11 on a display. However, the lighting device 10 is not limited to using a display, as long as it is capable of irradiating pattern light whose light intensity changes in a rectangular wave shape while shifting its phase.

[0085] Furthermore, in the above embodiment, the illumination device 10 shifted the phase of the rectangular wave-shaped pattern light while moving the display positions of the bright and dark parts of the light and dark pattern image 11 displayed on the display by φ in the X-axis direction. However, the phase shift of the pattern light is not limited to this, and it is sufficient to shift the phase relative to the illumination device 10 and the object to be inspected K. For example, it is not limited to moving the light and dark pattern image 11 within the display, but the display or the illumination device 10 itself may be moved. Alternatively, the object to be inspected K may be moved by transporting the object to be inspected K and the imaging device 20 in sync using a transport device.

[0086] In the above embodiment, the control unit 31 of the image processing device 30 functioned as the respective parts shown in Figure 3 by the CPU executing a program stored in the ROM or storage unit 32. However, the control unit 31 may be dedicated hardware. Dedicated hardware includes, for example, a single circuit, a composite circuit, a programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof. If the control unit 31 is dedicated hardware, each function of the respective parts may be implemented with separate hardware, or the functions of each part may be implemented together with a single piece of hardware.

[0087] Furthermore, some of the functions of each part may be implemented by dedicated hardware, while other parts may be implemented by software or firmware. In this way, the control unit 31 can implement the above-mentioned functions by hardware, software, firmware, or a combination thereof.

[0088] It is also possible to make an existing computer, such as a personal computer or cloud server, function as the image processing device 30 by applying the program that defines the operation of the image processing device 30 described above to the computer.

[0089] Furthermore, the method of distribution of such programs is optional. For example, they may be distributed by storing them on computer-readable storage media such as CD-ROMs (Compact Disk ROMs), DVDs (Digital Versatile Disks), MOs (Magneto Optical Disks), or memory cards, or they may be distributed via communication networks such as the Internet.

[0090] This invention allows for various embodiments and modifications without departing from the broad spirit and scope of the invention. Furthermore, the embodiments described above are for illustrative purposes only and do not limit the scope of the invention. In other words, the scope of the invention is indicated not by the embodiments, but by the claims. Various modifications made within the scope of the claims and the equivalent scope of the meaning of the invention are considered to be within the scope of this invention. [Explanation of Symbols]

[0091] 1 Surface inspection device, 10 Illumination device, 11 Brightness pattern image, 20 Imaging device, 21 Acquired image, 22 Difference image, 23 Phase image, 24 Differential image, 30 Image processing device, 31 Control unit, 32 Storage unit, 33 Operation unit, 34 Display unit, 35 Communication unit, 311 Illumination control unit, 312 Acquired image acquisition unit, 313 Difference image generation unit, 314 Phase image generation unit, 315 Inspection unit, 316 Output unit, K Inspection target, X1, X2 Defect

Claims

1. An illumination unit that irradiates an object to be inspected with patterned light whose light intensity changes in a rectangular wave shape, while shifting the phase of the patterned light, An imaging unit acquires multiple images with different phases by imaging the object to be inspected multiple times using the reflected light of the pattern light irradiated by the illumination unit, A phase image generation unit generates a phase image having a phase value obtained at a specific timing as a brightness value, based on the plurality of captured images acquired by the imaging unit. The system includes an inspection unit that determines the presence or absence of defects in the object to be inspected based on the phase image generated by the phase image generation unit, and measures the degree of orange peel texture in the object to be inspected based on the phase image. Surface inspection device.

2. The inspection unit determines whether there are defects in the object to be inspected based on the differential image obtained by differentiating the phase image generated by the phase image generation unit, and measures the degree of orange peel texture in the object to be inspected based on the differential image. The surface inspection apparatus according to claim 1.

3. When measuring the degree of the orange peel texture, the inspection unit calculates the standard deviation of the brightness values ​​in the image after applying shading correction to the differential image as a value indicating the degree of the orange peel texture. The surface inspection apparatus according to claim 2.

4. The inspection unit determines whether or not there are defects in the object to be inspected based on the image obtained after performing shading correction on the differential image using shading parameters different from those used when measuring the degree of orange peel texture. The surface inspection apparatus according to claim 3.

5. The phase image generation unit identifies a predetermined timing for the pattern light for each pixel based on the plurality of captured images, and generates a phase image having the phase value based on the identified timing as a brightness value. A surface inspection apparatus according to any one of claims 1 to 4.

6. The system further comprises a difference image generation unit that calculates the difference between the maximum and minimum brightness values ​​in the plurality of captured images for each pixel, and generates a difference image having the calculated difference as the brightness value, The inspection unit determines whether there are defects in the surface shape of the object to be inspected based on the phase image generated by the phase image generation unit, and determines whether there are defects other than surface shape defects in the object to be inspected based on the difference image generated by the difference image generation unit. A surface inspection apparatus according to any one of claims 1 to 4.

7. A lighting step in which patterned light, whose light intensity changes in a rectangular wave shape, is shone onto the object to be inspected while shifting the phase of the patterned light, An imaging step in which the object to be inspected is imaged multiple times using the reflected light of the pattern light irradiated in the illumination step, thereby acquiring multiple images with different phases, A phase image generation step, based on the plurality of captured images acquired in the imaging step, generates a phase image having a phase value obtained at a specific timing as a brightness value, An inspection step which includes determining whether there are defects in the object to be inspected based on the phase image generated in the phase image generation step, and measuring the degree of orange peel texture in the object to be inspected based on the phase image, Surface inspection methods.

8. Computers, The lighting unit includes a lighting control unit that irradiates the object to be inspected with patterned light whose light intensity changes in a rectangular wave shape, while shifting the phase of the patterned light. The imaging unit captures multiple images with different phases by causing the inspection target to be imaged multiple times using the reflected light of the pattern light irradiated by the illumination unit, and the image acquisition unit captures multiple images with different phases. A phase image generation unit generates a phase image having a phase value obtained at a specific timing as a brightness value, based on the plurality of captured images acquired by the image acquisition unit. This unit functions as an inspection unit that determines the presence or absence of defects in the object to be inspected based on the phase image generated by the phase image generation unit, and measures the degree of orange peel texture in the object to be inspected based on the phase image. program.

Citation Information

Patent Citations

  • Workpiece surface inspection device, surface inspection system, surface inspection method, and program

    JP2021139816A