Surface inspection system and program
Patent Information
- Application Number
- JP2023034863
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-20
AI Technical Summary
【0007】 請求項1記載の発明によれば、1つの角度条件だけで検査の対象とする物体を検査する場合に比して、官能評価との相関を高めることができる。 請求項2記載の発明によれば、物体の表面に曲面を押し当てたまま筐体を表面に沿って回転させても概略正反射条件を満たす複数の画像を取得できる。 請求項3記載の発明によれば、ピーク値と対応する角度の関係から欠陥の種類を識別できる。 請求項4記載の発明によれば、検査結果と官能評価との相関を高めることができる。 請求項5記載の発明によれば、概略正反射条件を満たす複数の画像を取得できる。 請求項6記載の発明によれば、概略正反射条件を満たす複数の画像を取得できる。 請求項7記載の発明によれば、概略正反射条件を満たす複数の画像を取得できる。 請求項8記載の発明によれば、概略正反射条件を満たす複数の画像を取得できる。 請求項9記載の発明によれば、複数の角度による変動量の変化を検出可能にできる。 請求項10記載の発明によれば、官能評価との相関を高めることができる。 請求項11記載の発明によれば、作業者は検査に注力できる。 請求項12記載の発明によれば、品質を表す数値の根拠を画面上で確認できる。 請求項13記載の発明によれば、1つの角度条件だけで検査の対象とする物体を検査する場合に比して、官能評価との相関を高めることができる。
Smart Images

Figure 2024126474000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a surface inspection system and a program. [Background technology]
[0002] Nowadays, various products use parts molded from synthetic resin (hereinafter referred to as "molded products"). In particular, molded products that are visible to users (hereinafter referred to as "exterior parts") greatly affect the image of the product. For this reason, it is important to inspect molded products for defects and textures. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2005-274156 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the inspection of molded products, it is desirable to quantify defects. However, the visibility of defects can be affected by slight differences in the angle during observation. For example, a weld may appear dark or bright depending on the angle, even if it is only a few degrees different. Similarly, a sink mark may appear visible or invisible depending on the angle, even if it is only a few degrees different. This difference in visibility differs depending on the object being inspected, making it difficult to generalize.
[0005] The present invention aims to improve the correlation with sensory evaluation compared to a case where an object to be inspected is inspected under only one angle condition. [Means for solving the problem]
[0006] The invention described in claim 1 is a surface inspection system comprising a light source which illuminates a surface of an object to be inspected, an imaging device which images the surface illuminated by the light source, and one or more processors which process a plurality of images captured while varying the angle of the illumination light or reflected light with respect to the surface within a range which approximately satisfies the condition of specular reflection, wherein the one or more processors calculate an amount of variation in luminance distribution for each of the images, detect a peak value of the amount of variation in luminance distribution for the plurality of images, and calculate a numerical value representing the quality of the surface using the detected peak value. The invention described in claim 2 is the surface inspection system described in claim 1, in which a portion of a housing that contains the light source and the imaging device and that is pressed against the surface is a curved surface, and the curvature of the curved surface is determined so that the approximately specular reflection condition is satisfied when the multiple images are captured. The invention described in claim 3 is the surface inspection system described in claim 2, further comprising a sensor that measures an angle of the housing relative to the surface when the image is captured. The invention described in claim 4 is the surface inspection system described in claim 1, wherein the light source is a parallel light source, and the imaging device images the surface through an optical system that forms an image of parallel light. The invention described in claim 5 is the surface inspection system described in claim 4, which has a groove that rotatably guides the light source within the housing, centered on the center position of a window that defines the imaging range of the image. The invention described in claim 6 is the surface inspection system described in claim 4, further comprising a groove for rotatably guiding the imaging device within the housing around the center position of a window that defines the imaging range of the image. The invention described in claim 7 is the surface inspection system described in claim 4, further comprising a reflecting mirror that changes the angle of incidence of illumination light incident on the surface. An eighth aspect of the present invention is the surface inspection system according to the fourth aspect, further comprising a reflecting mirror that changes the angle of incidence of light reflected from the surface with respect to the imaging device. The invention described in claim 9 is the surface inspection system described in claim 1, wherein the one or more processors calculate a variation in the luminance distribution for a variable direction of the angle. The invention described in claim 10 is the surface inspection system described in claim 9, wherein the one or more processors calculate the amount of variation for the luminance distribution after removing high-frequency components from the image. The invention described in claim 11 is a surface inspection system described in claim 1, wherein the one or more processors detect a period during which the angle of the illumination light or reflected light relative to the surface is variable from an output signal from a sensor, and perform processing on the multiple images. The invention described in claim 12 is a surface inspection system described in claim 1, wherein the one or more processors display newly captured images in real time in a first display field on a screen, and display images among the multiple images that are highly correlated with the peak value in a second display field on the screen. The invention described in claim 13 is a program for causing one or more computers to process a plurality of images captured while varying the angle of illumination light or reflected light relative to the surface of an object to be inspected within a range that approximately satisfies the condition for specular reflection, to realize the following functions: a function for calculating the amount of variation in luminance distribution for each of the images; a function for detecting a peak value of the amount of variation in luminance distribution for the plurality of images; and a function for calculating a numerical value representing the quality of the surface using the detected peak value. Effect of the Invention
[0007] According to the invention described in claim 1, it is possible to improve the correlation with the sensory evaluation, compared to a case where an object to be inspected is inspected under only one angle condition. According to the invention of claim 2, even if the housing is rotated along the surface while the curved surface is pressed against the surface of the object, a plurality of images that approximately satisfy the specular reflection condition can be obtained. According to the invention described in claim 3, the type of defect can be identified from the relationship between the peak value and the corresponding angle. According to the invention as recited in claim 4, the correlation between the test results and the sensory evaluation can be improved. According to the invention described in claim 5, a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the invention described in claim 6, a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the seventh aspect of the invention, a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the invention described in claim 8, a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the invention as recited in claim 9, it is possible to detect changes in the amount of fluctuation at a plurality of angles. According to the invention as recited in claim 10, the correlation with the sensory evaluation can be improved. According to the invention described in claim 11, the worker can concentrate on the inspection. According to the invention described in claim 12, the basis of the numerical values representing the quality can be confirmed on the screen. According to the invention described in claim 13, it is possible to improve the correlation with the sensory evaluation, compared to a case where an object to be inspected is inspected under only one angle condition. [Brief description of the drawings]
[0008] [Figure 1] 1A and 1B are diagrams illustrating examples of defects that appear on the surface of an inspection target, where (A) shows an example of a sink mark, and (B) shows an example of a weld. [Diagram 2] 1 is a diagram for explaining a schematic configuration of a surface inspection device assumed in embodiment 1. (A) is a diagram showing a simplified internal configuration of a housing, and (B) is an enlarged view of a contact surface that is pressed against the surface of an inspection target. [Diagram 3] FIG. 2 is a diagram for explaining an example of the internal configuration of a surface inspection device used in the first embodiment. [Figure 4] 1 is a diagram explaining a method for calculating the brightness distribution and the amount of variation. (A) shows an example of an image of the surface of an inspection object, (B) shows a cross-sectional view of a sink mark extending in the Y-axis direction cut along the XZ plane, and (C) shows the calculated brightness profile. [Diagram 5] FIG. 11 is a diagram illustrating a luminance profile including high-frequency components. [Figure 6]FIG. 2 is a diagram for explaining scanning imaging by the surface inspection device assumed in the first embodiment. [Figure 7] 1 is a diagram explaining the positional relationship of the optical system during scanning imaging. (A) shows the attitude of the surface inspection device tilted at -5° with respect to the 0° axis, (B) shows the attitude of the surface inspection device with an inclination of 0°, and (C) shows the attitude of the surface inspection device tilted at +5° with respect to the 0° axis. [Figure 8] 4 is a flowchart for explaining an example of an inspection operation by the surface inspection device used in the first embodiment. [Figure 9] 7A and 7B are diagrams illustrating the difference in weld visibility due to different imaging conditions, where (A) is a frame image captured under the imaging conditions of FIG. 7B, and (B) is a frame image captured under the imaging conditions of FIG. 7A. [Figure 10] 7A and 7B are diagrams for explaining differences in the appearance of sink marks due to differences in imaging conditions, where (A) is a frame image captured under the imaging conditions of FIG. 7B, and (B) is a frame image captured under the imaging conditions of FIG. 7A. [Figure 11] 1A and 1B are diagrams illustrating an example of transition of a user interface screen during scanning and imaging, in which (A) is an initial screen, (B) is a screen during scanning and imaging, and (C) is a screen at the end of scanning and imaging. [Figure 12] 13 is a flowchart for explaining an example of an inspection operation by the surface inspection device used in the second embodiment. [Figure 13] 1A is a distribution map of the amount of variation calculated by scanning imaging, and FIG. 1B is a diagram illustrating the relationship between the approximate function passing through the calculated amount of variation and the peak value. [Figure 14] 13A and 13B are diagrams illustrating an example of a display on a user interface screen when the reliability of an estimated peak value is low. [Figure 15] 1A and 1B are diagrams illustrating an example of estimating the type of defect using the shape of an approximation function, in which (A) shows an example of a waveform specific to a sink mark, and (B) shows an example of a waveform specific to a weld. [Figure 16]FIG. 11 is a diagram for explaining a schematic configuration of a surface inspection device assumed in a third embodiment. [Figure 17] FIG. 13 is a diagram for explaining a schematic configuration of a surface inspection system assumed in a fourth embodiment. [Figure 18] 1A is a top view of the abutment plate, FIG. 1B is a side view of the abutment plate, and FIG. 1C is a front view of the abutment plate; [Figure 19] 13 is a diagram for explaining a schematic configuration of a surface inspection device assumed in embodiment 5. (A) is a diagram showing a simplified internal configuration of a housing, and (B) is an enlarged view of a contact surface that is pressed against the surface of an inspection target. [Figure 20] This is a diagram explaining the positional relationship of the optical system during scanning and imaging. (A) shows a posture in which the light source is tilted in the negative direction with respect to the reference axis of scanning and imaging, (B) shows a posture in which the inclination of the light source coincides with the reference axis of scanning and imaging, and (C) shows a posture in which the light source is tilted in the positive direction with respect to the reference axis of scanning and imaging. [Figure 21] 13 is a diagram for explaining a schematic configuration of a surface inspection device assumed in embodiment 6. (A) is a diagram showing a simplified internal configuration of a housing, and (B) is an enlarged view of a contact surface that is pressed against the surface of an inspection target. [Figure 22] 1 is a diagram explaining the positional relationship of the optical system during scanning. (A) shows a posture in which the imaging unit is tilted in the negative direction with respect to the reference axis of scanning, (B) shows a posture in which the inclination of the imaging unit coincides with the reference axis of scanning, and (C) shows a posture in which the imaging unit is tilted in the positive direction with respect to the reference axis of scanning. [Diagram 23] 13 is a diagram for explaining a schematic configuration of a surface inspection device assumed in embodiment 7. (A) is a diagram showing a simplified internal configuration of a housing, and (B) is an enlarged view of the vicinity of a reflecting mirror. [Figure 24] FIG. 23 is a diagram for explaining scanning imaging by a surface inspection device assumed in the seventh embodiment. [Diagram 25]1 is a diagram for explaining the equivalent positional relationship of the optical system during scanning imaging. (A) shows the equivalent positional relationship between the light source and the camera immediately after scanning imaging starts, (B) shows the equivalent positional relationship between the light source and the camera after scanning imaging starts, and (C) shows the equivalent positional relationship between the light source and the camera at the time when scanning imaging ends. [Figure 26] FIG. 23 is a diagram for explaining a schematic configuration of a surface inspection device assumed in an eighth embodiment. [Figure 27] 1 is a diagram for explaining the equivalent positional relationship of the optical system during scanning imaging. (A) shows the equivalent positional relationship between the light source and the camera immediately after scanning imaging starts, (B) shows the equivalent positional relationship between the light source and the camera after scanning imaging starts, and (C) shows the equivalent positional relationship between the light source and the camera at the time when scanning imaging ends. [Figure 28] FIG. 23 is a diagram for explaining a schematic configuration of a surface inspection system assumed in a ninth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. <Embodiment 1> In this embodiment, a surface inspection device for inspecting defects appearing on the surface of a molded product will be described.
[0010] <Type of defect> Defects include, for example, sink marks and welds. Sink marks are surface depressions that occur in thick parts or ribs, while welds are lines that occur where the leading edges of molten resin join inside the mold. Defects also include scratches and dents caused by collisions. Sink marks and welds are examples of one-dimensional patterns.
[0011] Figure 1 is a diagram explaining examples of defects that appear on the surface of an inspection target. (A) shows an example of a sink mark, and (B) shows an example of a weld. In Figure 1(A) and Figure 1(B), the defective locations are shown surrounded by dashed lines. Figure 1(A) shows four sink marks. The surface inspection device described in this embodiment is not limited to inspection for defects, but is also used for inspection of texture and surface stains. Incidentally, texture is the impression of sight and touch, and is influenced by the color, gloss, and unevenness of the surface of an object. Surface unevenness also includes lines that are created when cutting a mold. This type of line is distinguished from a defect.
[0012] <Target of inspection> In this embodiment, a molded product is assumed as an object to be inspected (hereinafter also referred to as an "inspection target"). The shape of the inspection target is basically arbitrary. For example, the inspection target may be a plate or a three-dimensional shape. The three-dimensional shape includes a polyhedron, a sphere, a cylinder, and any other shape. The surface of the inspection target is not limited to a flat surface, and may be a curved surface. In addition, the surface of the inspection target does not need to be flat, and may have, for example, irregularities due to the structure or design, holes, notches, protrusions, curved surfaces, steps, joints between members, minute irregularities formed during the molding process, etc.
[0013] <Outline of the structure of the surface inspection device> 2 is a diagram for explaining a schematic configuration of the surface inspection device 10 assumed in the embodiment 1. (A) is a diagram showing a simplified internal configuration of the housing 11, and (B) is an enlarged view of the contact surface 11A that is pressed against the surface of the inspection target. In FIG. 2, the upward direction in the plane of the paper is the Z axis, the rightward direction in the plane of the paper is the X axis, and the direction into the plane of the paper is the Y axis.
[0014] The surface inspection device 10 in this embodiment is an example of a surface inspection system. The surface inspection device 10 in this embodiment can be carried by an operator. In this type of surface inspection device 10, an operator presses the contact surface 11A of the surface inspection device 10 against the surface of the inspection object, thereby inspecting for defects formed on the surface of the inspection object.
[0015] In this embodiment, the surface of the abutment surface 11A has a curved surface that is convex downward in the plane of the drawing. The abutment surface 11A has a shape obtained by breaking a cylinder whose rotation axis is parallel to the Y axis at a plane parallel to the rotation axis. In other words, the abutment surface 11A has the same cross-sectional shape at any position in the Y axis direction. That is, the shapes of the XZ planes of the abutment surface 11A are all the same. Note that the cylinder as the shape that defines the surface of the abutment surface 11A is only one example, and an ellipse may also be used. In any case, the abutment surface 11A has a curvature that allows the angle of incidence of the illumination light incident on the surface of the inspection object to be changed while the abutment surface 11A is pressed against the surface of the inspection object.
[0016] An opening 11B is formed in the center of the contact surface 11A, through which illumination light that illuminates the surface of the inspection object and reflected light reflected by the surface of the inspection object are input and output. The opening 11B is a window that defines the inspection range or the imaging field of view. In this embodiment, the Z axis that passes through the center of the opening 11B (i.e., the center of the field of view) is called the 0° axis. In other words, the 0° axis coincides with the normal direction of a flat surface with no irregularities. 2B, the opening 11B is substantially square in shape, although the shape of the opening 11B is not limited to a square or other rectangular shape, and may be circular.
[0017] Inside the housing 11, there are provided a light source 12 that outputs parallel light in the direction of the opening 11B, an imaging lens 13 that takes in external light entering through the opening 11B, and a camera 14 that converts the intensity of the external light transmitted through the imaging lens 13 into an electrical signal for each pixel. Note that inside the housing 11, a processor and other electronic components (not shown) are also provided. In this embodiment, capturing an image of the surface of the inspection object while continuously varying the inclination of the housing 11 with respect to the inspection object is referred to as "scan imaging".
[0018] In this embodiment, the light source 12 is a white light source that outputs illumination light that is approximately parallel. However, the light source 12 is also called a parallel light source or parallel light illumination. The range illuminated by the illumination light includes, for example, the opening 11B. In this embodiment, the imaging lens 13 is a telecentric lens. The imaging lens 13 may be positioned so that the inspection target is in a focused position, or may be positioned so that the inspection target is slightly out of focus. When the inspection object is located at the focal position of the imaging lens 13, the distance s between the imaging lens 13 and the inspection object coincides with the working distance. In this embodiment, the curvature of the contact surface 11A is designed to be approximately 1 / s, and the center of curvature is located on the 0° axis.
[0019] When the distance s between the imaging lens 13 and the inspection object deviates from the focal position, it is possible to suppress glare in the captured image. The light source 12 and the imaging lens 13 are located on a plane passing through the 0° axis. Therefore, the illumination light reflected by the surface of the inspection object after being output from the light source 12 is incident on the imaging lens 13 as reflected light. In other words, the light source 12 and the imaging lens 13 are provided at a position that satisfies a condition under which the illumination light illuminating the surface of the inspection object is reflected approximately specularly by the surface of the inspection object and the reflected light is incident on the surface of the inspection object (hereinafter referred to as the "approximately specular reflection condition"). The term "approximately satisfying the specular reflection condition" refers to a relationship in which the angle difference from the specular reflection condition is approximately 5° or less. In other words, "approximately satisfying the specular reflection condition" refers to an angle condition that is specular reflection or close to specular reflection.
[0020] The camera 14 is, for example, a CCD (=Charge Coupled Device) imaging sensor element or a CMOS (=Complementary Metal Oxide Semiconductor) imaging element. In this embodiment, a color camera capable of capturing color images is used as the camera 14. The camera 14 is an example of an imaging device that captures an image of the surface of the inspection target illuminated by the illumination light. The imaging plane of the camera 14 is located within the focal range of the imaging lens 13. The MTF (=Modulation Transfer Function) is generally uniform within the field of view of the camera 14. Therefore, the variation in contrast due to differences in position within the field of view is small, making it possible to faithfully capture an image of the surface of the inspection object.
[0021] The upper part of the housing 11 is provided with a display 105, a power button 106A, and a scan button 106B. The display 105 is a display device that displays the results of defect inspection and captured images. The power button 106A is a button for starting or stopping the supply of power to each part of the surface inspection apparatus. When the power button 106A is pressed to turn on the device, power supply to the light source 12 and the camera 14 begins. As a result, an image captured by the camera 14 is displayed on the display 105. This image is used, for example, to position a defect formed on the surface of the object of inspection within the field of view. When the power button 106A is pressed to turn off the device, the supply of power stops.
[0022] The scan button 106B is a button for instructing capture of an image of the surface of the inspection object. In the case of this embodiment, while the scan button 106B is pressed, an image of the surface of the inspection object is captured at regular intervals. In other words, the timing of capturing images is discrete. The regular interval here is, for example, 1 second. However, the regular interval may also be 0.5 seconds. The regular interval may also be set to an arbitrary time by the operator.
[0023] In this embodiment, multiple images are captured by operating scan button 106B. In this embodiment, by utilizing the fact that contact surface 11A is a curved surface, an operator captures an image of the surface of the inspection object while continuously varying the inclination of housing 11 relative to the inspection object. In other words, an image of the surface of the inspection object is captured while varying the imaging conditions. Incidentally, when the inclination of housing 11 changes, the incidence angle of the illumination light incident on the inspection object and the reflection angle of the reflected light captured by camera 14 relative to the inspection object also change. Hereinafter, this method of capturing an image of the surface of the inspection object while continuously changing the imaging conditions will be referred to as "scan imaging" or "scan detection." Hereinafter, each image scanned and captured at regular intervals will also be referred to as a "frame image."
[0024] <Internal structure of surface inspection device> FIG. 3 is a diagram for explaining an example of the internal configuration of the surface inspection device 10 used in the first embodiment. 3 includes a processor 101 for controlling the operation of the entire apparatus, a ROM (=Read Only Memory) 102 in which a BIOS (=Basic Input Output System) and the like are stored, a RAM (=Random Access Memory) 103 used as a work area for the processor 101, an auxiliary storage device 104 for storing programs and image data, a display 105 on which an image of the surface of the inspection target and information related to operations are displayed, an operation reception device 106 for receiving operations from an operator, a camera 14 for capturing an image of the surface of the inspection target, a light source 12 for illuminating the surface of the inspection target, and a communication IF (=Interface) 107 used for communication with the outside. The processor 101 and each part are connected via a signal line 108 such as a bus.
[0025] The processor 101, the ROM 102, and the RAM 103 function as a so-called computer. In the case of Fig. 3, there is one processor 101, but there may be multiple processors. The processor 101 realizes various functions through the execution of a program. For example, the processor 101 executes the program to perform calculation of a score that quantitatively evaluates defects on the surface of the imaged inspection object. The score here is an example of a numerical value that indicates the quality of the surface of the inspection object. Incidentally, the score is calculated so as to match the result of a sensory evaluation.
[0026] The score is calculated using, for example, multivariate analysis. In the multivariate analysis, for example, features appearing in the luminance distribution are analyzed. An example of the features is a streak-like pattern extending along the sink mark. In addition, there is also a method using artificial intelligence to calculate the score. For example, the image captured by the camera 14 is given to a learning model that uses deep machine learning or the like to learn the relationship between the image of the defect and the score, and the score of the defect is calculated.
[0027] Image data obtained by capturing an image of the surface of the inspection target is stored in the auxiliary storage device 104. For example, a semiconductor memory or a hard disk device is used as the auxiliary storage device 104. Firmware and application programs are also stored in the auxiliary storage device 104. Hereinafter, firmware and application programs are collectively referred to as "programs."
[0028] The display 105 is, for example, a liquid crystal display or an organic EL display. For example, an image of an arbitrary part of the inspection object is displayed on the display 105. The display 105 is also used for positioning the contact surface 11A with respect to the inspection object. In this embodiment, the display 105 is provided integrally with the device body, but it may be an external device connected through the communication IF 107, or may be a part of another device connected through the communication IF 107. For example, the display 105 may be a display of another computer connected through the communication IF 107.
[0029] The operation reception device 106 is composed of keys (hereinafter also referred to as "soft keys") displayed in a software manner on the display 105, and physical switches, buttons, etc. arranged on the housing 11 (see FIG. 2). In the present embodiment, a power button 106A and a scan button 106B are provided as examples of physical buttons. When the power button 106A is operated, for example, the light source 12 is turned on. Also, while the scan button 106B is pressed, multiple frame images are captured. A device that integrates the display 105 and the operation reception device 106 is called a touch panel. The touch panel is used to receive user operations on soft keys.
[0030] In the case of this embodiment, a color camera is used as the camera 14. Therefore, in principle, it is possible to observe not only the luminance distribution on the surface of the inspection object but also the color tone. In the present embodiment, a white light source is used as the light source 12. The white light source generates light in which light in the visible light band is evenly mixed. The communication IF 107 is composed of modules that comply with wired or wireless communication standards, and may be, for example, an Ethernet (registered trademark) module, a USB (Universal Serial Bus), a wireless LAN, or the like.
[0031] <Luminance distribution and calculation method for fluctuation amount> The surface inspection device 10 (see FIG. 2) used in this embodiment calculates the amount of variation in the luminance distribution for each frame image including a defect such as a sink mark, and calculates a score based on the peak value of the calculated amount of variation. Figure 4 is a diagram explaining the method for calculating the brightness distribution and the amount of variation. (A) shows an example of an image of the surface of the inspection object, (B) shows a cross-sectional view of a sink mark extending in the Y-axis direction cut along the XZ plane, and (C) shows the calculated brightness profile S. The brightness profile S here is an example of a "brightness distribution."
[0032] In the case of Fig. 4(B), for convenience of explanation, the cross section of the sink mark formed on the surface of the inspection target is shown as an isosceles triangle. Of course, the actual cross-sectional shape is not necessarily an isosceles triangle. Processor 101 in this embodiment (see FIG. 3) calculates the average value of pixel values having the same X coordinate value (hereinafter referred to as "average luminance"). In Fig. 4, a pixel row having the same X coordinate is expressed as one line. Of the two slopes forming the sink mark, the one with a smaller angle of incidence of the illumination light has a larger average luminance, and the one with a larger angle of incidence has a smaller average luminance. For this reason, the luminance profile S shown in Fig. 4(C) has mountain-shaped waveforms and valley-shaped waveforms. Note that the vertical axis of Fig. 4(C) is the average luminance, and the horizontal axis is the X coordinate value.
[0033] In the case of Fig. 4(C), the difference between the maximum value of the luminance profile S and the luminance value of the part other than the sink mark is defined as the amount of variation of the "luminance profile." Note that in Fig. 4(C), the luminance value of the inclined surface of the sink mark, which is a defect, is large, so the difference from the maximum value of the luminance profile S is defined as the amount of variation, but if the luminance value of the defective part is darker than the surrounding area, the difference from the minimum value of the luminance profile S is defined as the amount of variation. In either case, the amount of variation is determined by removing high frequency components that have low correlation with the sensory evaluation. Fig. 5 is a diagram for explaining a luminance profile S including high frequency components. In Fig. 5, the vertical axis also represents average luminance, and the horizontal axis represents the X coordinate value.
[0034] The brightness profile S shown in Fig. 5 differs from Fig. 4 in that the average brightness increases toward the right end of the image. However, because the types of defects are different, the average brightness drops in the defective areas. In other words, a valley-shaped waveform appears in the brightness profile S. In the case of Figure 5, a spike-like waveform appears near the bottom of the valley waveform. The spike-like waveform enclosed in a dashed circle represents a high-frequency component. Such a local change in average luminance has a low correlation with the sensory evaluation.
[0035] For this reason, as shown in FIG. 5, the difference between the bottom of the valley waveform appearing in the average luminance (that is, the minimum value of the average luminance) and the average luminance other than the valley waveform is defined as the amount of fluctuation. When the average brightness increases linearly from the left end to the right end in the image as shown in Fig. 5, the amount of variation is defined taking into consideration the slope indicating the increase in the average brightness. By defining the amount of variation as shown in Fig. 5, the difference in average brightness due to the effect of defects (i.e., the amount of variation) can be calculated accurately. Hereinafter, this amount of variation will be referred to as the "amount of variation in luminance distribution."
[0036] In the cases of Figures 4 and 5, the brightness profile S and the amount of variation are calculated for one frame image captured at a certain timing, but in the case of this embodiment, multiple frame images are captured (i.e., scanned) while changing the attitude of housing 11 (see Figure 2) relative to the object to be inspected, so the brightness profile S and the amount of variation are calculated for each of the multiple frame images. The score that quantitatively evaluates the defect is calculated based on the maximum value (hereinafter also referred to as the "peak value") of the amount of variation calculated for a plurality of images.
[0037] Incidentally, the score depends on the width, height, depth, number, etc. of the irregularities formed on the surface. For example, even if the height of the protrusions or the depth of the recesses are the same, a partial region in which a protrusion or recess with a greater width is formed will have a higher score. Furthermore, even if the widths of the protrusions and recesses are the same, a partial region in which a higher protrusion or a deeper recess is formed will have a higher score. In this embodiment, a higher score means poor quality.
[0038] <Scanning> Fig. 6 is a diagram for explaining scanning imaging by the surface inspection device 10 assumed in the first embodiment. In Fig. 6, parts corresponding to those in Fig. 2 are denoted by the same reference numerals. In Fig. 6, the optical path of the illumination light output by the light source 12 is represented by L1, and the optical path of the illumination light L1 reflected by the inspection object (i.e., the reflected light) is represented by L2. In the case of Figure 6, there is a defect on the surface of the object being inspected. The defect is visible to the operator. As a preparatory work, the operator positions the surface inspection device 10 so that the defect appears in the image displayed on the display 105. At this time, the operator presses the contact surface 11A of the surface inspection device 10 against the surface to be inspected so that the linearly extending defect roughly coincides with the rotation axis of the surface inspection device 10.
[0039] Therefore, even if the angle of the surface inspection apparatus 10 relative to the inspection target is changed, the layout of the captured frame images will basically remain the same. In Fig. 6, the roll of the housing 11 of the surface inspection device 10, with the position of the defect as the center of rotation, is represented by an arc-shaped arrow. In this embodiment, the direction of this arrow is called the scan direction. The method of imaging defects while scanning the surface inspection device 10 in one direction in this way is called scan imaging. In scanning imaging, if the surface of the inspection object is flat, care must be taken to ensure that the tangent angle between the contact surface 11A and the inspection object is within a range of approximately ±5° at most. By keeping the tangent angle within a range of approximately ±5° with respect to the 0° axis, it becomes possible to capture an image of the surface of the inspection object that approximately satisfies the regular reflection condition.
[0040] 7 is a diagram for explaining the positional relationship of the optical system during scanning and imaging. (A) shows the attitude of the surface inspection device 10 (see FIG. 2) tilted at -5° with respect to the 0° axis, (B) shows the attitude of the surface inspection device 10 with an inclination of 0°, and (C) shows the attitude of the surface inspection device 10 tilted at +5° with respect to the 0° axis. As shown in FIGS. 7(A) to (C), the relative positions of the light source 12 and the camera 14 remain unchanged during scanning and imaging. In all of the cases of FIGS. 7(A) to (C), the light source 12 and the camera 14 approximately satisfy the specular reflection condition.
[0041] <Inspection operation> 8 is a flow chart for explaining an example of an inspection operation by the surface inspecting apparatus 10 used in the embodiment 1. The symbol S shown in the figure means a step. The processing shown in FIG. 8 is realized through the execution of a program by the processor 101 (see FIG. 3). When the operation of the power button 106A is detected, the light source 12 (see FIG. 6) is turned on and the camera 14 (see FIG. 6) starts taking an image. However, the image taken here is a preliminary image for confirming the position of the defect within the field of view. The taken image is displayed on the display 105 (see FIG. 6).
[0042] Next, the processor 101 determines whether or not pressing of the scan button 106B (see FIG. 6) has been detected (step 1). If pressing of the scan button 106B is not detected, a negative result is obtained in step 1. In this case, the processor 101 repeats the determination in step 1. If pressing of the scan button 106B is detected, a positive result is obtained in step 1. In this case, the processor 101 captures images of the surface of the inspection target at regular intervals and displays the captured frame images on the display 105 (step 2). The frame images here are displayed as, for example, real-time images.
[0043] Next, processor 101 calculates the amount of variation in luminance distribution for the captured frame image (step 3). In the case of this embodiment, the amount of variation in luminance distribution is calculated in real time every time a new frame image is captured. Next, processor 101 determines whether the latest amount of variation is greater than the maximum amount of variation (step 4). The amount of variation calculated for the first frame image is compared with the "maximum amount of variation" given as an initial value. For example, the initial value is zero. Meanwhile, the amount of variation calculated for the second and subsequent frame images is compared with the maximum amount of variation calculated for one or more frame images that have already been captured.
[0044] If the latest fluctuation amount is greater than the maximum fluctuation amount, a positive result is obtained in step 4. In this case, the processor 101 updates the maximum fluctuation amount (step 5). On the other hand, if the latest fluctuation amount is smaller than the maximum fluctuation amount, a negative result is obtained in step 4. If a negative result is obtained in step 4, or if step 5 is executed, the processor 101 determines whether or not the processor 101 has detected that the scan button 106B has stopped being pressed (step 6).
[0045] If the scan button 106B remains pressed, a negative result is obtained in step 6. In this case, the processor 101 returns to step 2 and waits for a certain interval to elapse since capturing the previous frame image before capturing the next frame image. On the other hand, if the cessation of pressing of the scan button 106B is detected, a positive result is obtained in step 6. In this case, the processor 101 calculates a score representing the quality of the surface of the inspection object using the maximum value of the amount of variation (step 7). Hereinafter, the maximum value of the amount of variation is also referred to as the "peak value." Also, the frame image corresponding to the peak value is also referred to as the "peak image."
[0046] Thereafter, the processor 101 displays the frame image in which the maximum amount of variation was detected and the score on the display 105 (step 8). This completes the scan imaging process. However, the display on the display 105 continues until the power button 106A is turned off, so the operator can check the peak image and the corresponding score even after the scan imaging is completed. The peak image and the score are displayed in pairs, so that the operator can judge whether the peak image is appropriate or not. For example, if the peak image is different from the operator's image, the operator can avoid using an incorrect score. In addition, the operator can retake the scan.
[0047] <Differences in imaging conditions and defect visibility> Here, a specific example of differences in defect visibility depending on differences in imaging conditions will be described. 9A and 9B are diagrams illustrating the difference in weld visibility due to different imaging conditions, where (A) is a frame image captured under the imaging conditions of FIG. 7B, and (B) is a frame image captured under the imaging conditions of FIG. 7A. In the frame image shown in FIG. 9(A), the area around the weld appears dark, making it difficult to observe the weld. On the other hand, in the case of the frame image shown in FIG. 9(B), the periphery of the weld is imaged as a whitish color, and the contrast of the weld, which is imaged as a black streak, is high, making it easy to observe the weld.
[0048] Fig. 10 is a diagram for explaining the difference in appearance of sink marks due to different imaging conditions. (A) is a frame image captured under the imaging conditions of Fig. 7(B), and (B) is a frame image captured under the imaging conditions of Fig. 7(A). In the frame image shown in Fig. 10(A), it is difficult to distinguish between the sink mark and the surrounding area, whereas in the frame image shown in Fig. 10(B), it is possible to distinguish between the sink mark and the surrounding area. In this way, the appearance of a defect varies depending on the type of defect and subtle irregularities on the surface.
[0049] Incidentally, conventional surface inspection devices basically capture images only under the imaging conditions shown in Fig. 7(B). Therefore, in the cases of Fig. 9(A) and Fig. 10(A), the score that represents the quality of the surface including defects sometimes does not match the sensory evaluation. On the other hand, in the case of the scan imaging described in this embodiment, the maximum value of the variation in the luminance distribution is identified based on a plurality of frame images captured under different imaging conditions, which makes it possible to improve the correlation between the calculated score and the sensory evaluation compared to conventional surface inspection devices.
[0050] <Example of user interface screen> 11 is a diagram illustrating an example of transition of a user interface screen during scanning and imaging. (A) is an initial screen, (B) is a screen during scanning and imaging, and (C) is a screen at the end of scanning and imaging. The user interface screen shown in FIG. The user interface screen shown in FIG. 11 displays a real-time image column 105A which displays the latest frame images captured at regular intervals, a peak image column 105B which displays a peak image in which the maximum amount of variation has been detected, a distribution diagram 105C which sequentially maps the amount of variation in the luminance distribution, and a score column 105D which displays a score calculated from the amount of variation in the peak image.
[0051] The real-time image field 105A is named "real-time image." The peak image field 105B is named "peak image." The score field 105D is named "score." Moreover, the vertical axis of the distribution map 105C represents the amount of variation, and the horizontal axis represents the frame number. The frame numbers are assigned in the order in which the images are captured. 11(A), since there is no data to display, the real-time image field 105A, the peak image field 105B, and the score field 105D are all blank. Also, the distribution chart 105C displays only the axes.
[0052] On the screen during scanning and imaging shown in Fig. 11(B), the latest frame image is displayed in the real-time image field 105A. In the case of Fig. 11(B), two fluctuation amounts are mapped as shown in the distribution diagram 105C, so the second captured frame image is displayed in the real-time image field 105A. Incidentally, in the case of the above-mentioned inspection operation, the detection of the maximum value of the amount of variation and the calculation of the corresponding score are performed after the pressing of the scan button 106B is stopped. Therefore, the word "Scanning" is displayed in the peak image field 105B, and the frame image corresponding to the peak image is not displayed. In addition, since the score calculation is not yet performed, the score field 105D also remains blank.
[0053] In the case of the screen at the end of scan imaging shown in Fig. 11(C), four variations are mapped onto distribution map 105C. Therefore, the fourth captured frame image is displayed in real-time image field 105A. Also, the third frame image in which the peak value of the variation amount was detected is displayed in peak image field 105B. The score calculated from the third frame image is "3.1", and this is displayed in score field 105D. 11(C) and checks the transition of the amount of variation for each frame image, the score, etc. Furthermore, if necessary, the worker redoes the scan.
[0054] <Embodiment 2> In this embodiment, an inspection operation different from that in the first embodiment will be described. Specifically, a case will be described in which the peak value of the fluctuation amount is estimated from a plurality of calculation results. The structure and internal configuration of the surface inspection device 10 (see FIG. 1) are the same as those in the first embodiment. Fig. 12 is a flow chart for explaining an example of an inspection operation by the surface inspection device 10 used in the embodiment 2. In Fig. 12, parts corresponding to those in Fig. 8 are denoted by the same reference numerals.
[0055] In the present embodiment, the preparation stage for scanning and imaging is the same. That is, when the operation of the power button 106A is detected, the light source 12 (see FIG. 6) is turned on and imaging by the camera 14 (see FIG. 6) is started. Next, the processor 101 determines whether or not pressing of the scan button 106B (see FIG. 6) has been detected (step 1). If pressing of the scan button 106B is not detected, a negative result is obtained in step 1. In this case, the processor 101 repeats the determination in step 1.
[0056] If pressing of the scan button 106B is detected, a positive result is obtained in step 1. In this case, the processor 101 captures images of the surface of the inspection target at regular intervals and displays the captured frame images on the display 105 (step 2). The frame images here are displayed as, for example, real-time images. Next, the processor 101 determines whether or not the pressing of the scan button 106B has stopped (step 6).
[0057] If the scan button 106B remains pressed, a negative result is obtained in step 6. In this case, the processor 101 returns to step 2 and waits for a certain interval to elapse since capturing the previous frame image before capturing the next frame image. On the other hand, if stopping of pressing of the scan button 106B is detected, a positive result is obtained in step 6. In this case, the processor 101 calculates the amount of variation in the luminance distribution for each captured frame image (step 11).
[0058] Next, processor 101 estimates a peak value based on the calculated amount of fluctuation (step 12). This embodiment differs from embodiment 1 in that the peak is estimated instead of detecting the maximum value of the calculated amount of fluctuation. This is because, since frame images are captured at regular intervals, there is a possibility that the maximum value of the detected amount of fluctuation will not coincide with the true peak value. Therefore, in step 12, the processor 101 estimates the true peak value, for example, by the method described below.
[0059] 13A and 13B are diagrams illustrating the relationship between the approximation function passing through the calculated variation and the peak value, where (A) is a distribution diagram 105C in which the variation calculated by scanning is mapped, and (B) is a diagram illustrating the approximation function passing through the mapping points of the calculated variation and the peak value. The more the calculated variation amounts, the higher the accuracy of the approximation function. Therefore, in the example of Fig. 13(B), the accuracy of the approximation function will be higher if there are five mapping points of variation amounts rather than four, and six mapping points of variation amounts rather than five. In the case of Fig. 13(B), the approximation function has a maximum value between the second and third frame images. This maximum value is called the peak value.
[0060] It should be noted that the processor 101 may perform an additional process to determine whether the estimated peak value can be used. For example, a condition for allowing a peak value to be used may be that a predetermined number or more of variation data are present on both sides of the discovered peak value. For example, a condition may be that a total of four variation data are present, two on each side of the peak value. The peak value in FIG. 13(B) satisfies this condition. Note that if there is only one variation data to the left of the discovered peak value, the discovered peak value is determined to be unusable. Alternatively, a condition for allowing the use of a peak value may require that the discovered peak value be equal to or greater than a threshold value.
[0061] If the peak value is estimated, or if the estimated peak value also satisfies the additional condition, the processor 101 considers the estimation of the peak value to be successful, If the peak value is not estimated, or if the peak value is estimated but does not satisfy the additional condition, the processor 101 considers the estimation of the peak value to be unsuccessful. Returning to the explanation of Figure 12. After executing the peak value estimation process, processor 101 determines whether or not the peak value estimation has been successful (step 13).
[0062] If the estimation of the peak value fails, a negative result is obtained in step 13. In this case, the processor 101 requests redo of the scan imaging (step 14). After this, the processor 101 returns to step 1. Fig. 14 is a diagram for explaining a display example of a user interface screen when the reliability of an estimated peak value is low. In Fig. 14, parts corresponding to those in Fig. 11 are denoted by the same reference numerals. A pop-up window 105E is displayed on the user interface screen shown in Fig. 14. This is the difference from the user interface screen shown in Fig. 11(C).
[0063] In the case of FIG. 14, the pop-up window 105E contains messages such as "We recommend that you try scanning again" and "Scan more slowly." This pop-up window 105E disappears from the screen when, for example, the operator presses the scan button 106B, and at the same time, a new scan image capture is started.
[0064] Returning to the explanation of Figure 12. If the estimation of the peak value is successful, a positive result is obtained in step 13. In this case, the processor 101 uses the peak value to calculate a score representing the quality of the surface of the inspection object (step 15). The processor 101 then displays the calculated score on the display 105.
[0065] <Estimation of defect type> In the description of the inspection operation shown in FIG. 12, an approximation function passing through the mapping points of the variation amount is used to estimate the peak value, but the approximation function may also be used to estimate the type of defect. 15A and 15B are diagrams for explaining an example of estimating the type of defect using the shape of the approximation function. (A) shows an example of a waveform specific to a sink mark, and (B) shows an example of a waveform specific to a weld.
[0066] 15(A), one mountain-shaped waveform or one maximum value appears in the approximation function. In this case, the processor 101 determines that the type of defect is a "sink mark." The result of the determination may be displayed on the display 105. 15B, the approximation function has two peaks or two maximum values. In this case, the processor 101 determines that the defect type is "weld." The result of this determination may also be displayed on the display 105.
[0067] <Embodiment 3> Fig. 16 is a diagram for explaining a schematic configuration of a surface inspecting apparatus 10A assumed in the embodiment 3. In Fig. 16, parts corresponding to those in Fig. 2 are denoted by the same reference numerals. The surface inspecting device 10A assumed in this embodiment differs from the surface inspecting device 10 described in the first embodiment in that it has a sensor 111 that measures the angle of the housing 11 with respect to the surface of the inspection target. The sensor 111 in this embodiment only needs to be able to detect the angle between the housing 11 and the surface of the inspection target during scanning and imaging based on the sensor output. In this embodiment, the sensor 111 uses a three-axis acceleration sensor, a three-axis angular velocity sensor, a digital level, or the like.
[0068] In the case of FIG. 16, the sensor 111 is placed on the 0° axis passing through the center of the field of view, but it does not have to be placed on the 0° axis as long as the angle can be measured accurately. It should be noted that the type of defect can be determined by measuring the angle of the sensor 111 relative to the inspection object during scanning and imaging. For example, when the maximum values of the amount of variation are detected at two angles (for example, near 0° and near 2°), it is possible to determine that the type of defect is a weld.
[0069] Furthermore, if there is even one maximum value of the amount of variation and an overall decrease in the luminance distribution in the vicinity of 0° is observed, it can be determined to be a weld. Furthermore, when the maximum value of the amount of variation appears near 2°, it is difficult to determine whether or not the overall increase in the luminance distribution is caused by sink marks; however, it is possible to distinguish between sink marks and other causes depending on whether or not high-frequency components appear in the luminance distribution. When the sensor 111 is provided as in this embodiment, it becomes possible to determine the type of defect without calculating an approximation function by the processor 101. Therefore, when the sensor 111 is provided in the surface inspection device 10 described in the first embodiment, it becomes possible to determine the type of defect even when the score is calculated using the maximum value of the variation values calculated from the frame images.
[0070] <Fourth embodiment> Fig. 17 is a diagram for explaining a schematic configuration of a surface inspection system 10B assumed in the embodiment 4. In Fig. 17, parts corresponding to those in Fig. 2 are denoted by the same reference numerals. The surface inspection system 10B assumed in this embodiment is composed of a surface inspection device 10 (see FIG. 2) and a contact plate 121. However, the processor 101 (see FIG. 3) of the surface inspection device 10 has a function of determining the type of defect using information on the measured angle, similar to the third embodiment.
[0071] The surface inspection device 10 and the contact plate 121 in this embodiment are rotatably attached via a rotation shaft 122. The rotation shaft 122 may be, for example, a part of the housing 11, a part of the contact plate 121, or an independent part. The angle of the housing 11 with respect to the surface of the inspection target is detected by the encoder 123. The encoder 123 is, for example, an optical encoder or a magnetic encoder, and is attached coaxially to the rotation shaft 122, for example.
[0072] 18 is a diagram illustrating a schematic configuration of the abutment plate 121. (A) is a top view of the abutment plate 121, (B) is a side view of the abutment plate 121, and (C) is a front view of the abutment plate 121. An opening 121B is provided in the center of the main body 121A of the contact plate 121. The inner dimensions of the opening 121B are designed according to the dimensions of the surface inspection device 10 to be attached to the contact plate 121.
[0073] The contact surface 11A of the surface inspection device 10 in this embodiment can be pressed against the surface of the inspection target while being fitted into the opening 121B. In this embodiment, a cylindrical part 121C is attached to the surface of the abutment plate 121, and a rotating shaft 122 is rotatably attached to a hole 121D defined by the inner wall surface of the cylindrical part 121C. Note that the rotating shaft 122 in this embodiment is assumed to be a cylindrical protrusion protruding in the Y-axis direction from both side surfaces of the housing 11 (i.e., the XY plane).
[0074] In this embodiment, the encoder 123 detects the amount of rotation of the rotating shaft 122 during scanning and notifies the processor 101 of information related to the detected amount of rotation. The information related to the amount of rotation may be information indicating a rotation angle or the number of pulses. In either case, the processor 101 detects the angle of the housing 11 with respect to the surface of the inspection target based on the information related to the amount of rotation, and determines the type of defect formed on the surface captured as a frame image. Of course, in this embodiment as well, the processor 101 calculates a score representing the quality of the surface including the defect and displays it on the display 105.
[0075] <Fifth Preferred Embodiment> Fig. 19 is a diagram for explaining the schematic configuration of a surface inspection device 10C assumed in the embodiment 5. (A) is a diagram showing the internal configuration of the housing 11 in a simplified manner, and (B) is an enlarged view of the contact surface 11A that is pressed against the surface of the inspection target. In Fig. 19, parts corresponding to those in Fig. 2 are denoted by the same reference numerals. The surface inspecting apparatus 10C assumed in this embodiment differs from the surface inspecting apparatus 10 (see FIG. 2) in two respects.
[0076] The first difference is that the contact surface 11A is a flat surface rather than a curved surface. The second difference is that the angle of incidence of illumination light L1 that illuminates the surface of the inspection target can be changed. In the case of Fig. 19(A), light source 12 can be rotated around the center of the field of view (i.e., the center of opening 11B). This rotation of light source 12 may be performed by, for example, a motor, or may be performed by an operator moving a knob that protrudes from the surface of housing 11. The knob is integrated with light source 12.
[0077] Furthermore, the light source 12 is attached so as to be movable relative to a guide groove (not shown). The guide groove is substantially arc-shaped, and is disposed, for example, at the position indicated by the arrow in Fig. 19(A). Therefore, the light source 12 is rotated along the guide groove whether it is moved mechanically or manually. In this embodiment, the angle of incidence of illumination light L1 incident on the surface of the inspection object is variable, while the angle of imaging lens 13 that captures reflected light L2 with respect to the center of the field of view of camera 14 is constant.
[0078] 20 is a diagram illustrating the positional relationship of the optical system during scanning and imaging. (A) shows a posture in which the light source 12 is tilted in the negative direction with respect to the reference axis of scanning and imaging, (B) shows a posture in which the inclination of the light source 12 coincides with the reference axis of scanning and imaging, and (C) shows a posture in which the light source 12 is tilted in the positive direction with respect to the reference axis of scanning and imaging. The reference axis of the scan imaging here is the angle at which the incident angle of the illumination light L1 incident on the surface of the inspection object coincides with the reflection angle of the reflected light L2 reflected by the surface of the inspection object. As shown in FIGS. 20(A) to (C), the position of the camera 14 remains unchanged during scanning and imaging. Therefore, by rotating the light source 12, the camera 14 can capture a plurality of frame images corresponding to a plurality of imaging conditions that approximately satisfy the specular reflection condition.
[0079] <Sixth embodiment> Fig. 21 is a diagram for explaining the schematic configuration of a surface inspection device 10D assumed in the embodiment 6. (A) is a diagram showing the internal configuration of the housing 11 in a simplified manner, and (B) is an enlarged view of the contact surface 11A that is pressed against the surface of the inspection target. In Fig. 21, parts corresponding to those in Fig. 2 are denoted by the same reference numerals. In the surface inspecting apparatus 10D assumed in this embodiment, the object of rotational movement is the opposite of that in embodiment 5. That is, in the surface inspecting apparatus 10D, the incident angle of the illumination light L1 that illuminates the surface of the inspection object is constant, whereas the imaging lens 13 and the camera 14 are integrally rotated around the center of the field of view (i.e., the center of the opening 11B) as the rotation center.
[0080] The rotational movement of the imaging lens 13 and the camera 14 here may be performed by, for example, a motor, or may be performed by an operator moving a knob protruding from the surface of the housing 11. The knob is integrated with an imaging unit in which the imaging lens 13 and the camera 14 are integrated. The imaging unit is attached so as to be movable relative to a guide groove (not shown). The guide groove is roughly arc-shaped, and is disposed, for example, at the position indicated by the arrow in Fig. 21(A). Therefore, the imaging unit is rotated along the guide groove whether it is moved mechanically or manually. In the present embodiment, the angle of incidence of illumination light L1 incident on the surface of the inspection object is constant, while the angle of the imaging unit that captures reflected light L2 with respect to the center of the field of view is variable.
[0081] 22 is a diagram explaining the positional relationship of the optical system during scanning and imaging. (A) shows a posture in which the imaging unit is tilted in the negative direction with respect to the reference axis of scanning and imaging, (B) shows a posture in which the inclination of the imaging unit coincides with the reference axis of scanning and imaging, and (C) shows a posture in which the imaging unit is tilted in the positive direction with respect to the reference axis of scanning and imaging. The reference axis of the scan imaging here is the angle at which the incident angle of the illumination light L1 incident on the surface of the inspection object coincides with the reflection angle of the reflected light L2 reflected by the surface of the inspection object.
[0082] As shown in FIGS. 22(A) to (C), the position of the light source 12 remains unchanged during scanning and imaging. Therefore, by rotating the imaging unit, the camera 14 can capture a plurality of frame images corresponding to a plurality of imaging conditions that substantially satisfy the specular reflection condition.
[0083] <Embodiment 7> Fig. 23 is a diagram for explaining a schematic configuration of a surface inspecting apparatus 10E assumed in the seventh embodiment. (A) is a diagram showing a simplified internal configuration of the housing 11, and (B) is an enlarged view of the vicinity of the reflecting mirror 131. In Fig. 23, parts corresponding to those in Fig. 2 are denoted by the same reference numerals. The surface inspecting apparatus 10E envisioned in this embodiment differs from the surface inspecting apparatus 10 (see FIG. 2) in several points. The first difference is that the contact surface 11A is a flat surface rather than a curved surface. The second difference is that a reflecting mirror 131 is provided to reflect the illumination light output from the light source 12 toward the contact surface 11A. The third difference is that the light source 12 is disposed at a position that assumes reflection by the reflecting mirror 131. The flat contact surface 11A is the same as that of the surface inspection device 10C assumed in the fifth embodiment.
[0084] One end of the reflecting mirror 131 is attached to a hinge 131A on the inner wall surface of the housing 11, and the reflecting mirror 131 is rotatable around the hinge 131A. The position of the rotation center is determined so that even if the angle of incidence of the illumination light L1 with respect to the surface of the inspection object changes due to the rotation of the reflecting mirror 131, the change in the position illuminated by the illumination light L1 is minimized. A knob 132 is attached to the other end of the reflecting mirror 131. The knob 132 protrudes to the outside of the housing 11 through an opening provided in the housing 11. A spring 134 is attached to the rear surface of the reflecting mirror 131 that does not reflect the illumination light.
[0085] In the present embodiment, a compression spring is used as the spring 134 . The other end of the spring 134 is attached to the inner wall surface of the housing 11. In the case of FIG. The spring 134 is compressed and deformed when the operator operates the knob 132, and expands when the operator releases the knob 132. Due to the expansion of the spring 134, the knob 132 acts to press against the switch 133.
[0086] In the case of FIG. 23(B), the operator is not touching the knob 132, so the knob 132 is pressed against the switch 133. In the case of this embodiment, while the switch 133 detects the contact of the knob 132, scanning and imaging is not performed. On the other hand, scan imaging is started when switch 133 no longer detects the contact of knob 132. That is, switch 133 in this embodiment functions in the same way as scan button 106B.
[0087] Fig. 24 is a diagram for explaining scanning imaging by a surface inspecting apparatus 10E assumed in the embodiment 7. In Fig. 24, parts corresponding to those in Fig. 23 are denoted by the same reference numerals. In the case of FIG. 24, the contact surface 11A of the surface inspection device 10E is pressed against the surface of the inspection object. Fig. 24 shows two paths of the illumination light L1 corresponding to before and after the operation of the knob 132. In Fig. 24, the direction of operation of the knob 132 is shown by an arrow.
[0088] 25 is a diagram for explaining the equivalent positional relationship of the optical system during scanning imaging. (A) shows the equivalent positional relationship between the light source 12 and the camera 14 immediately after scanning imaging starts, (B) shows the equivalent positional relationship between the light source 12 and the camera 14 after scanning imaging starts, and (C) shows the equivalent positional relationship between the light source 12 and the camera 14 at the time when scanning imaging ends. In the case of this embodiment, the mounting positions of the light source 12 and the camera 14 are fixed, but it is possible to capture a plurality of frame images with different imaging conditions that generally satisfy the specular reflection condition.
[0089] <Embodiment 8> Fig. 26 is a diagram for explaining a schematic configuration of a surface inspecting apparatus 10F assumed in the embodiment 8. In Fig. 26, parts corresponding to those in Fig. 23 are denoted by the same reference numerals. The surface inspection apparatus 10F assumed in this embodiment differs from the seventh embodiment in that it captures a plurality of frame images with different imaging conditions while substantially satisfying the specular reflection condition by reflecting the reflected light L2 reflected by the surface of the inspection target with a reflecting mirror 131. The other configurations are the same as those of the seventh embodiment.
[0090] 27 is a diagram for explaining the equivalent positional relationship of the optical system during scanning imaging. (A) shows the equivalent positional relationship between the light source 12 and the camera 14 immediately after scanning imaging starts, (B) shows the equivalent positional relationship between the light source 12 and the camera 14 after scanning imaging starts, and (C) shows the equivalent positional relationship between the light source 12 and the camera 14 at the time when scanning imaging ends. In the case of this embodiment, the mounting positions of the light source 12 and the camera 14 are fixed, but it is possible to capture a plurality of frame images that approximately satisfy the specular reflection condition.
[0091] <Embodiment 9> Fig. 28 is a diagram for explaining a schematic configuration of a surface inspection system 10G assumed in the embodiment 9. In Fig. 28, parts corresponding to those in Fig. 2 are denoted by the same reference numerals. The surface inspection system 10G shown in FIG. 28 includes a surface inspection device 10, an information processing device 200, and a communication path 300. The information processing device 200 is, for example, a smartphone, a notebook computer, a tablet computer, a desktop computer, or a server computer. The information processing device 200 may be a wearable computer. Examples of the wearable computer include smart glasses, AR (Augmented Reality) glasses, and headsets.
[0092] 28 includes a processor 201, a ROM 202, a RAM 203, an auxiliary storage device 204, and a display 205. In the case of a server-type computer, a configuration excluding the display 205 or a configuration in which the display 205 is externally attached is adopted. The communication path 300 may be, for example, a USB cable, a LAN cable, a LAN, the Internet, or a mobile communication system. Note that the communication path 300 may be a wired path or a wireless path.
[0093] In the surface inspection system 10G shown in Figure 28, the processor 101 (see Figure 3) on the surface inspection device 10 side and the processor 201 on the information processing device 200 side may cooperate to execute the process of detecting the peak value of the scan imaging and the amount of variation in the luminance distribution described in embodiment 1 and others, or the processor 201 on the information processing device 200 side may independently execute the process of detecting the peak value of the scan imaging and the amount of variation in the luminance distribution described in embodiment 1 and others. In the case of the surface inspection system 10G assumed in this embodiment, it is possible to calculate a score that is highly correlated with the sensory evaluation, similarly to the first embodiment and the other embodiments.
[0094] <Other embodiments> (1) Although the embodiment of the present invention has been described above, the technical scope of the present invention is not limited to the scope of the above-mentioned embodiment. It is clear from the claims that the technical scope of the present invention also includes various modifications and improvements to the above-mentioned embodiment.
[0095] (2) In the above embodiment, a color camera is used as the camera 14 (see FIG. 2), but a monochrome camera may also be used. Also, only the green (G) component of the color camera may be used to inspect the surface of the inspection target.
[0096] (3) In the above embodiment, a white light source is used as the light source 12 (see FIG. 2), but the color of the illumination light may be any color. The illumination light is not limited to visible light, and may be infrared light, ultraviolet light, or the like.
[0097] (4) The processor in each of the above-described embodiments refers to a processor in a broad sense, and includes general-purpose processors (e.g., CPUs, etc.) as well as dedicated processors (e.g., GPUs (Graphical Processing Units), ASICs (Application Specific Integrated Circuits), FPGAs (Field Programmable Gate Arrays), programmable logic devices, etc.). In addition, the operations of the processor in each of the above-mentioned embodiments may be executed by one processor alone, or may be executed by multiple processors located at physically separate locations in cooperation with each other. Furthermore, the order of execution of each operation in the processor is not limited to the order described in each of the above-mentioned embodiments, and may be changed individually.
[0098] <Additional Notes> (((1))) A surface inspection system comprising: a light source which illuminates a surface of an object to be inspected; an imaging device which images the surface illuminated by the light source; and one or more processors which process a plurality of images which are captured while varying an angle of the illumination light or the reflected light with respect to the surface within a range which approximately satisfies a specular reflection condition, wherein the one or more processors calculate an amount of variation in luminance distribution for each of the images, detect a peak value of the amount of variation in luminance distribution for the plurality of images, and calculate a numerical value which represents the quality of the surface using the detected peak value. (((2))) The surface inspection system described in (((1))), wherein a portion of a housing that houses the light source and the imaging device and that is pressed against the surface is a curved surface, and a curvature of the curved surface is determined so that the approximately specular reflection condition is satisfied when the multiple images are captured. (((3))) The surface inspection system of (((2))), further comprising a sensor that measures an angle of the housing relative to the surface when the image is captured. (((4))) The surface inspection system according to any one of (((1))) to (((3))), wherein the light source is a parallel light source, and the imaging device images the surface through an optical system that forms an image of parallel light. (((5))) The surface inspection system described in (((4))) has a groove that rotatably guides the light source within a housing, centered around the center position of a window that defines the imaging range of the image. (((6))) The surface inspection system described in (((4))) has a groove that rotatably guides the imaging device within a housing, centered around the center position of a window that defines the imaging range of the image. (((7))) A surface inspection system as described in (((4))), comprising a reflecting mirror that varies the angle of incidence of illumination light incident on the surface. (((8))) The surface inspection system described in (((4))) has a reflecting mirror that varies the angle of incidence of light reflected from the surface with respect to the imaging device. (((9))) The surface inspection system according to any one of (((1))) to (((8))), wherein the one or more processors calculate an amount of variation in the luminance distribution for a direction in which the angle is varied. (((10))) The surface inspection system according to (((9))), wherein the one or more processors calculate the amount of variation based on the luminance distribution after removing high frequency components from the image. (((11))) The one or more processors detect a period during which the angle of the illumination light or the reflected light relative to the surface is variable from an output signal from a sensor, and perform processing on the multiple images. (((12))) The one or more processors display a newly captured image in real time in a first display field on a screen, and display an image among the plurality of images that is highly related to the peak value in a second display field on the screen. (((13))) A program for causing one or more computers to process a plurality of images captured while varying the angle of illumination light or reflected light relative to the surface of an object to be inspected within a range that approximately satisfies the condition for specular reflection, the program causing the following functions to be realized: a function to calculate the amount of variation in luminance distribution for each of the images; a function to detect a peak value of the amount of variation in luminance distribution for the plurality of images; and a function to calculate a numerical value representing the quality of the surface using the detected peak value.
[0099] According to the surface inspection system of (((1))), it is possible to improve the correlation with the sensory evaluation, compared to a case where an object to be inspected is inspected under only one angle condition. According to the surface inspection system of (((2))), a plurality of images that approximately satisfy the specular reflection condition can be obtained even when the housing is rotated along the surface while the curved surface is pressed against the surface of the object. According to the surface inspection system of (((3))), the type of defect can be identified from the relationship between the peak value and the corresponding angle. According to the surface inspection system of (((4))), it is possible to improve the correlation between the inspection results and the sensory evaluation. According to the surface inspection system of (((5))), a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the surface inspection system according to (((6))), a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the surface inspection system of (((7))), a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the surface inspection system according to (((8))), a plurality of images that approximately satisfy the specular reflection condition can be acquired. According to the surface inspection system of (((9))), it is possible to detect changes in the amount of fluctuation at multiple angles. According to the surface inspection system of (((10))), it is possible to improve the correlation with sensory evaluation. The surface inspection system according to (((11))) allows the operator to focus on the inspection. According to the surface inspection system of (((12))), the basis of the numerical values representing quality can be confirmed on the screen. According to the program of (((13))), it is possible to improve the correlation with the sensory evaluation, compared to a case where an object to be inspected is inspected under only one angle condition. [Explanation of symbols]
[0100] 10, 10A, 10C, 10D, 10E, 10F... Surface inspection device, 10B, 10G... Surface inspection system, 11... Housing, 11A... Contact surface, 11B, 121B... Opening, 12... Light source, 13... Imaging lens, 14... Camera, 101, 201... Processor, 102, 202... ROM, 103, 203... RAM, 104, 204... Auxiliary storage device, 105, 205... Display, 105A... Real-time image column, 105B... Peak image column, 105C...distribution map, 105D...score column, 105E...pop-up window, 106...operation reception device, 106A...power button, 106B...scan button, 108...signal line, 121...contact plate, 121A...main body, 121C...cylindrical part, 121D...hole, 122...rotating shaft, 123...encoder, 131...reflecting mirror, 131A...hinge, 132...knob, 133...switch, 134...spring, 200...information processing device, 300...communication path
Claims
1. a light source for illuminating a surface of an object under inspection; an imaging device for imaging the surface illuminated by the light source; one or more processors for processing a plurality of images captured while varying the angle of illumination light or reflected light with respect to the surface within a range that satisfies the approximate specular reflection condition; having The one or more processors: Calculating a variation in luminance distribution for each of the images; Detecting a peak value of the amount of variation in the luminance distribution for the plurality of images; calculating a value representing the quality of the surface using the detected peak value; Surface inspection systems.
2. a portion of a housing that accommodates the light source and the imaging device and that is pressed against the surface is a curved surface, and a curvature of the curved surface is determined so that the approximately regular reflection condition is satisfied when the plurality of images are captured. The surface inspection system of claim 1 .
3. a sensor for measuring an angle of the housing relative to the surface when the image is captured; The surface inspection system of claim 2 .
4. the light source is a parallel light source, The imaging device images the surface through an optical system that forms an image of parallel light. The surface inspection system of claim 1 .
5. a groove for rotatably guiding the light source within the housing around a center position of a window that defines an imaging range of the image; 5. The surface inspection system of claim 4.
6. a groove for rotatably guiding the imaging device within the housing around a center position of a window that defines an imaging range of the image; 5. The surface inspection system of claim 4.
7. A reflector that changes the angle of incidence of illumination light incident on the surface.
5. The surface inspection system of claim 4.
8. a reflector that changes an incident angle of light reflected from the surface with respect to the imaging device; 5. The surface inspection system of claim 4.
9. The one or more processors calculate a variation amount of the luminance distribution with respect to a variable direction of the angle. The surface inspection system of claim 1 .
10. The one or more processors calculate the amount of variation for the luminance distribution after removing high frequency components of the image.
10. The surface inspection system of claim 9.
11. the one or more processors detect a period during which the angle of the illumination light or the reflected light with respect to the surface is variable from an output signal of a sensor, and perform processing on the plurality of images. The surface inspection system of claim 1 .
12. the one or more processors display the newly captured image in real time in a first display field on a screen, and display an image highly related to the peak value among the plurality of images in a second display field on the screen; The surface inspection system of claim 1 .
13. one or more computers for processing a plurality of images captured while varying the angle of illumination light or reflected light with respect to a surface of an object to be inspected within a range that approximately satisfies a specular reflection condition; A function of calculating a variation amount of luminance distribution for each of the images; a function of detecting a peak value of the amount of variation in the luminance distribution for the plurality of images; A function of calculating a value representing the quality of the surface using the detected peak value; A program to achieve this.
Citation Information
Patent Citations
Flaw inspection device
JP2005274156A
