Section information creation device, surface defect inspection device, section information creation method, and surface defect inspection method

The surface defect inspection device addresses inaccuracies in defect detection on curved surfaces by dividing the surface into a grid pattern and automatically creating section information, enhancing precision and reducing labor costs.

JP2024155227APending Publication Date: 2024-10-31TOYOTA MOTOR EAST JAPAN +1

Patent Information

Application Number
JP2023069736
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing surface defect inspection devices face challenges in accurately determining the coordinate position of defect candidates on curved surfaces and require manual placement of marks, leading to inaccuracies and increased labor costs.

Method used

A surface defect inspection device that divides the inspection surface into a grid pattern, using a black and white checkered pattern to create section information, and automatically detects reference and adjacent partition areas from section images, enabling precise defect detection.

Benefits of technology

Enables high-accuracy defect detection on curved surfaces by automatically creating section information and associating defect candidates with specific sections, reducing labor costs and improving inspection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024155227000001_ABST
    Figure 2024155227000001_ABST
Patent Text Reader

Abstract

To provide a section information creation device and a section information creation method capable of automatically creating section information corresponding to each section from a section photographic image imaged by imaging means while dividing a target surface into a plurality of sections in a lattice manner, and a surface defect inspection device and a surface defect inspection method using them.SOLUTION: A section information creation device comprises: image reference point detection means 12 for detecting an image reference point corresponding to a reference point from a section photographic image; a reference section area detection means 13 for detecting a reference section area including the image reference point based on the image reference point; and adjacent section area detection means 14 for acquiring an adjacent section area inner point located within an adjacent section area adjacent to the reference section area based on the reference section area, detecting the adjacent section area based on the adjacent section area inner point, and detecting a new adjacent section area using the adjacent section area as a new reference section area.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a zone information creating device, a surface defect inspection device, a zone information creating method, and a surface defect inspection method that can be used, for example, when inspecting the condition of the paint on the surface of an automobile body. [Background technology]

[0002] Traditionally, in the process of painting automobile bodies, inspectors have visually inspected the painted surface. However, visual inspection by inspectors is a laborious job, and there is a risk of inspection errors or oversights due to individual variability. In addition, visual inspection by inspectors requires a lot of time, and labor costs are one of the factors that increase product production costs. For this reason, there is a demand for automation of visual inspection, and in recent years, development of surface defect inspection devices that can perform optical inspection automatically has been progressing.

[0003] For example, Patent Document 1 describes a surface defect inspection device that photographs an inspected surface with an imaging means while moving the imaging means and the inspected surface relatively, extracts defect candidates from the photographed images, and determines that the defect candidate is defective if the movement distance and movement angle of the defect candidate between at least two or more images photographed at different times are within a range of a reference movement distance and reference movement angle that is assumed to move when a defect exists on the inspected surface. The reference movement distance and reference movement angle can be set, for example, based on the movement trajectory of a mark attached to the inspected surface in advance, obtain multiple reference images photographed at different times by the imaging means while moving the imaging means and the inspected surface relatively, and combine these multiple reference images (see Patent Document 1). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2020-118572 A [Patent Document 2] Patent Application No. 2021-196063 Summary of the Invention [Problem to be solved by the invention]

[0005] However, in the surface defect inspection device described in Patent Document 1, a reference movement distance and a reference movement angle are set based on the movement trajectory of a mark obtained by attaching a mark to the surface to be inspected and photographing the surface, but it is difficult and time-consuming to attach marks at equal intervals to the surface to be inspected, such as an automobile body, and the movement trajectory of the created marks has a problem of poor accuracy. Also, it is difficult to obtain the coordinate position of any point of a defect candidate in each image, and furthermore, there is a problem that it is not clear where the defect is located on the surface to be inspected from only the detected coordinate points.

[0006] Therefore, the present applicant has developed a surface defect inspection device that, when extracting defect candidates from a plurality of captured images and detecting defects from these defect candidates, divides the inspected surface into a plurality of sections, and judges that there is a defect when defect candidates exist in each section image area corresponding to the same section of the inspected surface for a plurality of images captured at different times (see, for example, Patent Document 2). This surface defect inspection device can be configured to, for example, divide the inspected surface into a plurality of sections by attaching a black and white checkered pattern, perform binarization processing or the like from a section-captured video in which the divided inspected surface is moved, extract the movement trajectory of the demarcation lines, and specify the section image areas corresponding to the sections of the inspected surface M by synchronizing the demarcation line video with the demarcation line video of the demarcation lines and a video of the inspected surface captured by a capture means.

[0007] According to this surface defect inspection device, whether or not a defect candidate is a defect is determined from the relationship between the movement trajectory of the defect candidate and the movement trajectory of the section of the inspected surface, so that it is possible to determine the defect with high accuracy even if the movement trajectory of the defect candidate is curved. Moreover, by expressing the section image area corresponding to the section of the inspected surface in coordinates, the coordinate position of the defect candidate can be easily recognized, and further, the position of the defect on the inspected surface can be easily recognized based on which section of the inspected surface the defect is located in.

[0008] However, with this surface defect inspection device, when the surface to be inspected is curved, there is a problem in that in the partitioned image obtained by attaching a grid pattern to the surface to be inspected and photographing the surface, there is no uniform regularity in the shapes and sizes of adjacent partitioned areas, making it difficult to automatically create each partitioned area.

[0009] The present invention has been made in light of these problems, and aims to provide a partition information creation device and partition information creation method that can divide a target surface into a number of partitions in a grid pattern and automatically create partition information corresponding to each partition from a partition image captured by an imaging means, as well as a surface defect inspection device and surface defect inspection method that use these. [Means for solving the problem]

[0010] The partition information creation device of the present invention divides a target surface into a plurality of partitions in a grid pattern, and creates partition information by detecting partition areas corresponding to each partition from a partition image captured by an imaging means for a partition surface with a reference point serving as a reference within at least one partition.The device is equipped with an image reference point detection means for detecting an image reference point corresponding to the reference point from the partition image, a reference partition area detection means for detecting a reference partition area containing the image reference point in the partition image based on the image reference point, and an adjacent partition area detection means for determining an adjacent partition area inner point located within an adjacent partition area adjacent to the reference partition area in the partition image based on the reference partition area, detecting the adjacent partition area based on this adjacent partition area inner point, and using the adjacent partition area as a new reference partition area and detecting other adjacent partition areas based on this new reference partition area.

[0011] The surface defect inspection device of the present invention comprises a light source which irradiates light onto the surface to be inspected, an imaging means which images the surface to be inspected illuminated by the light source to obtain an inspection surface image, a moving means which moves the position of the surface to be inspected relatively to the imaging means, a defect candidate extraction means which extracts defect candidates from a plurality of inspection surface images taken by the imaging means at different imaging times while moving the imaging means and the surface to be inspected relatively by the moving means, and a defect detection means which detects defects based on the defect candidates extracted by the defect candidate extraction means. The defect detection means comprises a partition information creation device of the present invention which divides a target surface corresponding to the surface to be inspected into a plurality of partitions in a lattice pattern, detects partition areas corresponding to each partition from partition photographed images of a partition surface on which a reference point serving as a reference is placed within at least one partition, and creates partition information; and a judgment means which uses the partition information created by the partition information creation device to detect partition areas in which the defect candidates extracted by the defect candidate extraction means exist, and judges that a defect exists if a defect candidate exists in a partition area corresponding to the same partition of the partition surface in a number of inspection surface images equal to or greater than a reference judgment number.

[0012] The partition information creation method of the present invention divides a target surface into a plurality of partitions in a grid pattern, and creates partition information by detecting partition areas corresponding to each partition from a partition image captured by an imaging means for a partition surface with a reference point serving as a reference within at least one partition.The method includes an image reference point detection step of detecting an image reference point corresponding to the reference point from the partition image, a reference partition area detection step of detecting a reference partition area containing the image reference point in the partition image based on the image reference point, an adjacent partition area detection step of determining an adjacent partition area inner point located within an adjacent partition area adjacent to the reference partition area in the partition image based on the reference partition area, and detecting the adjacent partition area based on this adjacent partition area inner point, and a repetition step of using the adjacent partition area as a new reference partition area and repeating the adjacent partition area detection step based on this new reference partition area to detect other adjacent partition areas.

[0013] The surface defect inspection method of the present invention includes an imaging procedure in which an inspection surface illuminated with light from a light source is imaged by an imaging means, and the position of the inspection surface relative to the imaging means is moved relatively to obtain multiple inspection surface images imaged at different imaging times; a defect candidate extraction procedure in which defect candidates are extracted from each inspection surface image imaged by the imaging procedure; and a defect detection procedure in which defects are detected based on the defect candidates extracted by the defect candidate extraction procedure. In the defect detection procedure, a target surface corresponding to the inspection surface is divided into a plurality of partitions in a grid pattern by the partition information creation method of the present invention, and partition areas corresponding to each of the partitions are detected from partition photographed images of a partition surface having a reference point set within at least one of the partitions, and the partition areas in which the defect candidates extracted by the defect candidate extraction procedure exist are detected using partition information created by the partition information creation method of the present invention, and if a defect candidate exists in a partition area corresponding to the same partition of the partition surface in a number of inspection surface images equal to or greater than a reference judgment number, it is judged to be a defect. Effect of the Invention

[0014] According to the present invention, an image reference point is detected in a partition photographed image, a reference partition area is detected based on the image reference point, and then an adjacent partition area inner point located in an adjacent partition area adjacent to the reference partition area is obtained, and an adjacent partition area is detected based on the adjacent partition area inner point, and another adjacent partition area is detected by using the adjacent partition area as a new reference partition area. This makes it possible to automatically create partition information corresponding to each partition easily and with high accuracy. In addition, by creating partition information for a plurality of partition photographed images photographed by the photographing means at any time while moving the photographing means and the partition screen relatively, it is possible to create a trajectory line of the partition surface. Furthermore, by inputting the number of the partition to which the reference point of the partition surface is attached and the number of rows and columns of the partition of the partition surface, the detected partition areas can be automatically numbered. Therefore, it is possible to associate the frame and coordinates with the actual position on the target surface.

[0015] Therefore, when used in surface defect inspection, it is possible to automatically create, with ease and with high accuracy, partition information and trajectory lines corresponding to each partition obtained by dividing the surface to be inspected into a grid pattern, and it is also possible to associate each partition on the surface to be inspected with the detected partition area, making it easy to identify the position of the detected defect on the surface to be inspected. [Brief description of the drawings]

[0016] [Figure 1] 1 is a block diagram illustrating a configuration of a partition information creation device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of a section photographed image. [Diagram 3] 11 is a diagram for explaining a procedure for detecting a reference divided area by a reference divided area detection means. FIG. [Figure 4] 11 is a diagram for explaining a procedure for determining an internal point of an adjacent divided area in an adjacent divided area detection means; FIG. [Diagram 5] 13A and 13B are diagrams illustrating another procedure for determining adjacent divided area interior points in the adjacent divided area detection means. [Figure 6] 1 is a diagram showing a procedure of a partition information creating method according to an embodiment of the present invention; [Figure 7] 1 is a diagram illustrating an overall configuration of a surface defect inspection device according to an embodiment of the present invention. [Figure 8] 8 is a block diagram showing configurations of a defect candidate extracting means and a defect detecting means shown in FIG. 7. [Figure 9] FIG. 13 is a diagram illustrating an example of a binarized image binarized by changing a binarization threshold value. [Figure 10] 11 is a diagram illustrating an example of a defect candidate extracted by a secondary extraction unit. FIG. [Figure 11] 1 is a diagram illustrating a procedure of a surface defect inspection method according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[0018] [Land area information creation device] FIG. 1 shows a configuration of a section information creation device 10 according to an embodiment of the present invention. The section information creation device 10 creates section information by detecting section areas corresponding to each section from a section image captured by a photographing means such as a camera on a section surface in which a reference point is set as a reference in at least one section. The section information creation device 10 can be used, for example, when detecting defects present on an inspected surface, for example, a painted surface of an automobile body. Specifically, for example, the section information creation device 10 associates an inspection surface image captured by a photographing means with section information corresponding to each section obtained by dividing the object surface corresponding to the inspected surface into a plurality of sections, thereby making it possible to determine whether a defect candidate in the inspection surface image is a defect and to determine the position of the defect on the inspected surface.

[0019] In this embodiment, for example, a case will be described in which the target surface is divided into a grid shape using a black and white checkerboard pattern, and at least one of the partitions is marked with a circle or the like in a color other than black and white as a reference point, from a partition image captured by a photographing means. For example, when detecting defects using a painted surface of an automobile body as an inspected surface, the painted surface of an automobile body of the same model is used as the target surface corresponding to the inspected surface, and a partition surface in which a paper or cloth with a black and white checkerboard pattern and reference points is attached to this target surface is photographed by the photographing means at any time while moving the photographing means and the partition surface relatively, and a plurality of partition images (e.g., video) photographed at different times are prepared. An example of a partition image is shown in FIG. 2.

[0020] The partition information creation device 10 is configured by a computer, and includes, for example, a partition photographed image preprocessing means 11, an image reference point detection means 12, a reference partition area detection means 13, an adjacent partition area detection means 14, and a verification means 15 as necessary. The partition photographed image preprocessing means 11 preprocesses the partition photographed image, and includes, for example, a color extraction means 11A that extracts colors from the partition photographed image to detect reference points, a binarization means 11B that performs binarization processing on the partition photographed image, and an object detection means 11C that extracts object surfaces from the partition photographed image. The color extraction means 11A is configured, for example, to extract the colors of the reference points, and when each partition is color-coded into white and black, a chromatic color other than black and white may be extracted. The binarization means 11B preferably performs binarization for each range according to the amount of change in the luminance value of the partition photographed image. The object detection means 11C is configured, for example, to create a mask that covers parts other than the partition surface and extract the partition surface parts.

[0021] The image reference point detection means 12 detects an image reference point P1 corresponding to the reference point from the section photographed image. Specifically, for example, it is preferable to detect the coordinates of the image reference point P1 (e.g., the barycentric coordinates of the image reference point P1) from the section photographed image whose color has been extracted by the color extraction means 11A, and link the actual position of the reference point on the section screen (e.g., the section number) with the coordinates of the image reference point P1 in the section photographed image, for example, the frame number and coordinates. For example, the frame number may be an electrical signal obtained by synchronizing and encoding image information and time information, that is, a so-called time code.

[0022] The reference divided area detection means 13 detects a reference divided area R1 including the image reference point P1 in the divided area photographed image based on the detected image reference point P1, for example, as shown in Fig. 3. The reference divided area detection means 13 preferably has a reference divided area coordinate detection means 13A which, for example, determines temporary coordinates of the four corners of the reference divided area R1 by referring to the X-axis direction and the Y-axis direction from the image reference point P1, and then corrects the temporary coordinates based on the divided area photographed image to detect the coordinates of the four corners of the reference divided area R1. The reference divided area detection means 13 preferably performs processing using a divided area photographed image which has been binarized by the binarization means 11B and has had the divided area surface portion extracted by the target portion detection means 11C.

[0023] The provisional coordinates of the four corners of the reference divided area are preferably determined, for example, by detecting coordinates (e.g., x1 and x2) at which black and white change in the up-down direction on the X axis from the image reference point P1 and coordinates (e.g., y1 and y2) at which black and white change in the left-right direction on the Y axis from the image reference point P1, and combining these to form four points (e.g., (x1, y1), (x1, y2), (x2, y1), (x2, y2)). In FIG. 3, a rectangle with the four provisional coordinate points as its four corners is indicated by a gray dashed line. Furthermore, the provisional coordinates are preferably corrected, for example, by detecting coordinates at which black and white change in the vicinity of the four provisional coordinate points.

[0024] 4, the adjacent divided area detection means 14 determines an adjacent divided area inner point P2 located in an adjacent divided area adjacent to the reference divided area R1 in the divided photographed image based on the detected reference divided area R1, detects the adjacent divided area R2 based on the adjacent divided area inner point P2, and detects another adjacent divided area R2 based on the new reference divided area R1 by using the adjacent divided area R2 as a new reference divided area R1. The adjacent divided area detection means 14 preferably includes, for example, an adjacent divided area inner point calculation means 14A that determines the adjacent divided area inner point P2 based on the reference divided area R1, an adjacent divided area coordinate detection means 14B that detects the coordinates of the four corners of the adjacent divided area R2 from the adjacent divided area inner point P2, and a repeating means 14C that operates the adjacent divided area inner point calculation means 14A and the adjacent divided area coordinate detection means 14B with the detected adjacent divided area R2 as the new reference divided area R1. In the adjacent divided area detection means 14, similarly to the reference divided area detection means 13, it is preferable to process a divided area photographed image that has been binarized by the binarization means 11B and the divided area surface portion extracted by the target part detection means 11C.

[0025] For example, the adjacent divided area interior point calculation means 14A preferably determines, as the adjacent divided area interior point P2, the intersection of diagonals of a quadrangle having four corners defined by two points p1, p2 located on the boundary between two opposing sides of the reference divided area R1 and one adjacent divided area R2 and end points p3, p4 of two line segments extending the two sides to the one adjacent divided area R2 at the same length. Also, as shown in Fig. 5, for example, the adjacent divided area interior point calculation means 14A may determine, as the adjacent divided area interior point P2, the midpoint of an extension part L2 of a midpoint connecting line segment L1 extending the midpoints p5, p6 of the two opposing sides of the reference divided area R1 to the one adjacent divided area R2 at the same length.

[0026] The adjacent divided area coordinate detection means 14B preferably determines the provisional coordinates of the four corners of the adjacent divided area R2 by referring to the X-axis direction and the Y-axis direction from the adjacent divided area point P2, and then corrects the provisional coordinates based on the divided area photographed image to detect the coordinates of the four corners of the adjacent divided area R2. The detection of the provisional coordinates of the four corners of the adjacent divided area R2 and the correction of the provisional coordinates can be performed in the same manner as the reference divided area coordinate detection means 13A (see FIG. 3). Specifically, the provisional coordinates of the four corners of the adjacent divided area R2 are preferably determined by detecting, for example, the coordinates where black and white change in the up and down direction of the X-axis from the adjacent divided area point P2 and the coordinates where black and white change in the left and right direction of the Y-axis from the adjacent divided area point P2, and combining these four points. The provisional coordinates are preferably corrected by, for example, detecting the coordinates where black and white change in the vicinity of the four points of the provisional coordinates.

[0027] The verification means 15 verifies whether there are any abnormalities in the reference divided area R1 and the adjacent divided area R2 detected by the reference divided area detection means 12 and the adjacent divided area detection means 13. For example, it is preferable to verify whether the common vertex coordinates of the adjacent reference divided area R1 and the adjacent divided area R2 match.

[0028] [How to create parcel information] The section information creating device 10 creates section information from section photographed images, for example, as follows. Fig. 6 shows the procedure of a section information creating method using the section information creating device 10. In this section information creating method, as a preliminary step, for example, a section photographed image is prepared by dividing the target surface into a plurality of sections in a lattice pattern and attaching a reference point as a reference in at least one of the sections, the section photographed image being captured by a photographing means such as a camera. Specifically, for example, the target surface is divided into a lattice pattern using a black and white checkerboard pattern, and a section photographed image is prepared by photographing the section surface having a circle or the like in a color other than black and white attached as a reference point in at least one of the sections, at any time while moving the photographing means and the section photographed image relatively to each other, and a plurality of section photographed images (for example, videos) captured at different photographing times are prepared (see Fig. 2).

[0029] In the method for creating partition information, after preparing a partition image, first, the partition image is preprocessed by the partition image preprocessing means 11 (step S101; partition image preprocessing procedure). The partition image preprocessing procedure includes, for example, a color extraction procedure for extracting colors from the partition image by the color extraction means 11A, a binarization procedure for binarizing the partition image by the binarization means 11B, and an object part detection procedure for extracting an object surface portion from the partition image by the object part detection means 11C.

[0030] Next, the image reference point detection means 12 detects an image reference point P1 corresponding to the reference point from the section photographed image (step S102; image reference point detection procedure). For example, the coordinates of the image reference point P1 are detected from the section photographed image from which the color has been extracted by the color extraction procedure, and the position of the actual reference point on the section screen is linked to the coordinates of the image reference point P1 in the section photographed image, for example, the frame number and coordinates.

[0031] Next, the reference partition area detection means 13 detects a reference partition area R1 containing the image reference point P1 in the partition photographed image based on the image reference point P1 (step S103; reference partition area detection procedure). For example, provisional coordinates of the four corners of the reference partition area R1 are obtained by referring to the X-axis direction and the Y-axis direction from the image reference point P1, and then the provisional coordinates are corrected based on the partition photographed image to detect the coordinates of the four corners of the reference partition area R1 (see FIG. 3). The method of detecting the provisional coordinates of the four corners of the reference partition area and the method of correcting the provisional coordinates are as described above. In the reference partition area detection procedure, for example, processing is performed using a partition photographed image that has been binarized and has the partition surface portion extracted.

[0032] Next, the adjacent divided area detection means 14 obtains an adjacent divided area inner point P2 located in the adjacent divided area adjacent to the reference divided area R1 in the divided area photographed image based on the reference divided area R1, and detects the adjacent divided area R2 based on the adjacent divided area inner point P2 (step S104; adjacent divided area detection procedure). In the adjacent divided area detection procedure, similarly to the reference divided area detection procedure, for example, processing is performed using the divided area photographed image that has been binarized and the divided area surface portion extracted.

[0033] In the adjacent partitioned area detection procedure, it is preferable to determine the adjacent partitioned area internal point P2 as the intersection of diagonals of a quadrangle having two points p1, p2 located on the boundary between two opposing sides of the reference partitioned area R1 and one adjacent partitioned area R2, and end points p3, p4 of two line segments extending the same length from these two sides toward the one adjacent partitioned area R2, as shown in Fig. 4. Alternatively, the adjacent partitioned area internal point P2 may be determined as the midpoint of an extension part L2 of a midpoint connecting line segment L1 extending the same length from the midpoints p5, p6 of the two opposing sides of the reference partitioned area R1 toward the one adjacent partitioned area R2, as shown in Fig. 5.

[0034] In the adjacent divided area detection procedure, it is preferable to determine the coordinates of the adjacent divided area R2 by, for example, determining temporary coordinates of the four corners of the adjacent divided area R2 with reference to the X-axis and Y-axis directions from the adjacent divided area internal point P2, and then correcting the temporary coordinates based on the divided area photographed image to detect the coordinates of the four corners of the adjacent divided area R2. The detection of the temporary coordinates of the four corners of the adjacent divided area R2 and the correction of the temporary coordinates can be performed in the same manner as the reference divided area coordinate detection procedure (see FIG. 3).

[0035] Next, the adjacent divided area detection means 14 sets the detected adjacent divided area R2 as a new reference divided area R1, and repeats the adjacent divided area detection procedure (step S104) based on this new reference divided area R1 to detect other adjacent divided areas R2 (step S105; repeat procedure). For example, the detection of adjacent divided areas R2 is repeated in the X direction and the Y direction in order to detect all divided areas in the divided image.

[0036] Next, the verification means 15 verifies whether there are any abnormalities in the detected reference divided area R1 and adjacent divided area R2 (step S106; verification procedure). For example, it is preferable to verify whether the common vertex coordinates of the adjacent reference divided area R1 and adjacent divided area R2 match. This generates, for example, partition information for each frame in which the frame number, the coordinates of the divided area, and the partition number of the corresponding partition surface are associated. As described above, the frame number may be, for example, an electrical signal obtained by synchronizing and encoding image information and time information, that is, a so-called time code.

[0037] [Surface defect inspection device] 7 shows the overall configuration of a surface defect inspection device 20 using a zone information creation device 10 according to an embodiment of the present invention. This surface defect inspection device 20 detects defects present on the surface of an inspection surface M, which may be, for example, a painted surface of an automobile body.

[0038] The surface defect inspection apparatus 20 may, as necessary, include, for example, a light source 21 that irradiates light onto the surface M to be inspected, an imaging means 22 that images the surface M to be inspected illuminated by the light source 21 to obtain an image of the surface to be inspected, a moving means 23 that moves the position of the surface M to be inspected relatively to the imaging means 22, a defect candidate extraction means 24 that extracts defect candidates from a plurality of inspection surface images (e.g., a video) captured by the imaging means 22 at any given time while moving the imaging means 22 and the surface M to be inspected relatively by the moving means 23, a defect detection means 25 that detects defects based on the defect candidates extracted by the defect candidate extraction means 24, and a display means 26 that displays the detection results by the defect detection means 25.

[0039] It is preferable to use a straight-tube lighting fixture, for example, a straight-tube fluorescent lamp, LED lighting, or laser light, as the light source 21, but the type of lighting is not limited to these, and since there are a wide variety of colors for the body of an automobile, it is preferable to use a white light source. It is preferable to arrange a plurality of light sources 21 with respect to the surface M to be inspected, for example, so that the surface M to be inspected can be observed from multiple directions.

[0040] The photographing means 22 has a camera 22A such as a CCD camera and can obtain a digital image. The camera 22A is arranged, for example, facing the light source 21 and configured to photograph the reflected mirror image of the light source 21 and its surrounding area. In addition, it is preferable that the angle of the camera 22A is configured to be changeable according to the movement of the position of the inspection surface M relative to the camera 22A. This is because if the angle of the camera 22A is fixed, the brightness of defect candidates may be low depending on the location of the inspection surface M, making it difficult to extract the defect candidates.

[0041] The moving means 23 moves at least one of the photographing means 22 and the surface M to be inspected, thereby moving the position of the surface M to be inspected relative to the photographing means 22. For example, the surface M to be inspected may be transported in one direction at a constant speed by a transporting means such as a conveyor, or the camera 22A of the photographing means 22 may be moved in one direction at a constant speed. Note that FIG. 1 shows a case where the surface M to be inspected is moved by a conveyor or the like. The defect candidate extraction means 24 and the defect detection means 25 are, for example, constituted by a computer, and are configured to extract defect candidates or detect defects by image processing. The display means 26 is, for example, constituted by a display or the like.

[0042] (Defect candidate extraction means 24) Fig. 8 shows the configuration of the defect candidate extraction means 24 and the defect detection means 25 shown in Fig. 7. The defect candidate extraction means 24 preferably includes an inspection surface image storage means 24A such as a memory for storing a plurality of inspection surface images captured by the imaging means 22 at different imaging times while moving the imaging means 22 and the surface M to be inspected relatively, an inspection surface image preprocessing means 24B for preprocessing the inspection surface image captured by the imaging means 22, a division means 24C for dividing an area including a reflected mirror image of the light source 21 into a plurality of areas in the length direction for the inspection surface image preprocessed by the inspection surface image preprocessing means 24B, a primary extraction means 24D for performing binarization processing on the inspection surface image preprocessed by the inspection surface image preprocessing means 24B and extracting primary defect candidates for extracting defect candidates, a primary defect candidate storage means 24E for storing the primary defect candidates, a secondary extraction means 24F for extracting defect candidates from the primary defect candidates, and a defect candidate storage means 24G for storing the defect candidates.

[0043] The inspection surface image pre-processing means 24B converts the inspection surface image obtained by the photographing means 22 into a density image such as a grayscale image, cuts out the area of ​​the inspection surface M, and reduces noise. Examples of noise reduction methods include a Gaussian filter and a median filter.

[0044] The dividing means 24C is preferably configured to cut out an area including one reflected mirror image of the light source 21 and its surrounding area from the inspection surface image preprocessed by the inspection surface image preprocessing means 24B, and divide the reflected mirror image into a plurality of parts in the longitudinal direction. Since the luminance differs between the center and the ends in the longitudinal direction of the reflected mirror image, dividing the image allows the primary extraction means 24D to perform binarization processing with high accuracy.

[0045] The primary extraction means 24D is configured to sequentially perform binarization processing on the inspection surface images preprocessed by the inspection surface image preprocessing means 24B while sequentially changing the binarization threshold value from the binarization reference value in one direction, compare the multiple binarized images obtained in the order of processing, and set the binarized image when the number of appearances of defect candidate points becomes equal to or greater than the predetermined reference number from a state where it is smaller than the predetermined reference number, or the binarized image when the number of appearances of defect candidate points becomes equal to or less than the predetermined reference number from a state where it is larger than the predetermined reference number, as a threshold image, and extract primary defect candidates from this threshold image. That is, the primary extraction means 24D automatically determines the binarization threshold based on the change in the number of appearances of defect candidate points accompanying the change in the binarization threshold, and binarizes the image. It is preferable that the primary extraction means 24D performs binarization processing for each image divided by the division means 24C, and extracts primary defect candidates.

[0046] In the binarized image, the defect candidate points appear, for example, in the peripheral region of the reflected mirror image of the light source 21. For example, when the reflected mirror image of the light source 21 appears in white, the defect candidate points appear as white dots in the peripheral region of the reflected mirror image of the light source 21. The binarization reference value may be, for example, between 0 and 255, and may be the maximum value of 255, the minimum value of 0, or any value between the maximum and minimum values. The direction in which the binarization threshold is changed is the decreasing direction when the binarization reference value is the maximum value of 255, the increasing direction when the binarization reference value is the minimum value of 0, and may be either the decreasing direction or the increasing direction when the binarization reference value is a value between the maximum and minimum values.

[0047] For example, when the reflected mirror image of the light source 21 and the defect candidate points appear in white, the number of defect candidate points in the binarized image increases by changing the binarization threshold from a large value to a small value, and when the binarization threshold has a certain value, the number of defect candidate points in the binarized image goes from being less than the predetermined reference number to being equal to or greater than the predetermined reference number. FIG. 9(A) shows an example of a binarized image binarized with the binarization threshold set to the maximum value of 255, and FIG. 9(B) shows an example of a binarized image binarized with the binarization threshold set to a value smaller than 255, and the number of defect candidate points in the binarized image goes from being more than the predetermined reference number to being equal to or less than the predetermined reference number. Note that, for example, when the reflected mirror image of the light source 21 and the defect candidate points appear in white, the number of defect candidate points in the binarized image decreases by changing the binarization threshold from a small value to a large value, and when the binarization threshold has a certain value, the number of defect candidate points in the binarized image goes from being more than the predetermined reference number to being equal to or less than the predetermined reference number. Also, for example, when the reflected mirror image of the light source 21 and the defect candidate points appear in black, the direction of change is opposite to that when they appear in white as described above.

[0048] The primary defect candidate storage means 24E is configured, for example, by a memory and the like, and is configured to store the barycentric coordinates of the primary defect candidates extracted by the primary extraction means 24D.

[0049] The secondary extraction means 24F is configured to extract, for example, from the primary defect candidates extracted by the primary extraction means 24D for the inspection surface image preprocessed by the inspection surface image preprocessing means 24B, those in which the luminance difference between the primary defect candidate and the average luminance value of the surroundings of the primary defect candidate is equal to or greater than a predetermined luminance difference reference value as the defect candidate. Specifically, for example, the secondary extraction means 24F is configured to calculate the luminance difference between the luminance value of the coordinates of the primary defect candidate stored in the primary defect candidate storage means 24E and the average luminance value of the coordinates of the surroundings of the primary defect candidate, and extract the defect candidate if the luminance difference is equal to or greater than a predetermined luminance difference reference value. FIG. 10 shows an example of the defect candidate extracted by the secondary extraction means 24F. In FIG. 10, the white dots surrounded by circles are defect candidates.

[0050] The secondary extraction means 24F is preferably configured to divide the area around the reflected mirror image of the light source 21 into multiple areas according to the distance from the reflected mirror image of the light source 21, and to set a luminance difference reference value for each of the multiple divided distance areas. Since the luminance difference between the luminance value of a primary defect candidate and the average luminance value around the primary defect candidate changes depending on the distance from the reflected mirror image of the light source 21, by setting a luminance difference reference value for each distance area, it is possible to extract defect candidates with higher accuracy.

[0051] The defect candidate storage means 24G is configured, for example, by a memory or the like, and is configured to store the frame number and barycentric coordinates of the defect candidate extracted by the secondary extraction means 24F.

[0052] (Defect detection means 25) The defect detection means 25 includes, for example, a section image storage means 25A such as a memory that stores a plurality of section images taken by the photographing means 22 at different photographing times at any desired time while moving the photographing means 22 and the section screen relatively by the moving means 23, for a section screen in which the object surface corresponding to the inspected surface M is divided into a plurality of sections in a grid pattern and a reference point is set within each section; a section information creation device 10 that creates section information from the section image taken of the section screen in which the object surface corresponding to the inspected surface M is divided into a plurality of sections in a grid pattern and a reference point is set within each section; a section information storage means 25B that stores the section information created by the section information creation device 10; and a judgment means 25C that uses the section information created by the section information creation device 10 to judge whether or not a defect candidate extracted by the defect candidate extraction means 24 is a defect.

[0053] The configuration of the section information creation device 10 is as described above. Specifically, for example, the section information creation device 10 is configured to detect section areas corresponding to each section of a section screen for a plurality of section photographed images (e.g., videos) photographed at different times and stored in the section photographed image storage means 25A, and create section information. The target surface corresponding to the inspected surface M is a surface having the same shape as the inspected surface M, and the inspected surface M itself may be the target surface, or a target surface may be prepared separately from the inspected surface M. For example, if the painted surface of a car body is the inspected surface M, the painted surface of the car body of the same model may be used as the target surface corresponding to the inspected surface M. Each section photographed image is photographed in the same manner as each inspection surface image, corresponding to each inspection surface image. The section information storage means 25B is preferably configured to store, for example, the frame number of the section photographed image, the coordinates of the divided area, the divided area number, and the section number of the corresponding partition surface in association with each other as the section information.

[0054] The determination means 25C is configured to detect a partition area in which a defect candidate extracted by the defect candidate extraction means 24 exists, using the partition information created by the partition information creation device 10, and determine that a defect exists when a defect candidate exists in a partition area corresponding to the same partition of the partition surface in a reference determination number or more of a plurality of inspection surface images. Specifically, for example, it is preferable to detect a frame number, partition area number, partition number of the corresponding partition surface, etc. in which a defect candidate exists by correlating the frame number and the barycentric coordinate of the defect candidate extracted by the secondary extraction means 24F with the partition information created by the partition information creation device 10 (frame number, coordinate of the partition area, partition area number, partition number of the corresponding partition surface, etc.), and determine that a defect exists when a defect candidate exists in frames in which the reference determination number or more for the same partition area number and partition number exists. The reference determination number for determining that a defect exists, i.e., the number of images in which a defect candidate exists in a partition area corresponding to the same partition of the inspection surface M, can be set arbitrarily to 2 or more, and more preferably, for example, 3 or more.

[0055] When a defect candidate exists within a predetermined range from the boundary line of a divided area detected by the division information creating device 10, the determining means 25C preferably determines the divided area in which the defect candidate exists and an adjacent divided area located in the vicinity of the defect candidate as one divided area corresponding to one partition of the partition surface. This is because, when a defect candidate exists in the vicinity of a divided area (in the vicinity of a partition line), it is difficult to identify the divided area in which the defect candidate exists, i.e., the partition, and the defect detection rate can be improved by expanding the determination to include adjacent divided areas.

[0056] [Surface defect inspection method] For example, this surface defect inspection device 20 is used as follows. Fig. 11 shows the procedure of a surface defect inspection method using the surface defect inspection device 20. In this surface defect inspection method, first, for example, the inspection surface M irradiated with light from the light source 21 is photographed by the photographing means 22, and the position of the inspection surface M with respect to the photographing means 22 is moved relatively by the moving means 23 to obtain a plurality of inspection surface images (e.g., videos) photographed at different times (step S110; inspection surface photographing procedure). At that time, it is preferable to change the angle of the camera 22A depending on the part of the inspection surface M, in accordance with the movement of the position of the inspection surface M relative to the camera 22A, so that the brightness of defect candidates is increased. The images photographed by the photographing means 22 are stored in the inspection surface image storage means 24A.

[0057] Next, for example, defect candidates are extracted from each of a plurality of inspection surface images (e.g., videos) captured at different capture times by the inspection surface photographing procedure (step S110) (step S120; defect candidate extraction procedure). In the defect candidate extraction procedure (step S120), for example, first, the inspection surface image preprocessing means 24B performs preprocessing on the inspection surface image obtained by the photographing means 20 as described above (step S121; inspection surface image preprocessing procedure). Next, for example, the division means 24C cuts out an area including one reflector image of the light source 21 and its surrounding area from the inspection surface image preprocessed as described above, and divides the reflected mirror image into a plurality of parts in the longitudinal direction (step S122; image division procedure).

[0058] Next, for example, the primary extraction means 24D performs binarization processing as described above for each image divided by the image division procedure (step S122) to extract primary defect candidates (step S123; primary extraction procedure). Specifically, for example, for the preprocessed inspection surface image, binarization processing is performed sequentially for each image divided by the image division procedure while sequentially changing the binarization threshold from the binarization reference value in one direction, and a plurality of binarized images obtained in the order of processing are compared, and a binarized image when the number of appearances of defect candidate points changes from a state in which it is less than the predetermined reference number to a predetermined reference number or more, or a binarized image when the number of appearances of defect candidate points changes from a state in which it is more than the predetermined reference number to a predetermined reference number or less, is set as a threshold image, and primary defect candidates are extracted from this threshold image. That is, for example, for one inspection surface image, the binarization threshold is changed in one direction from the binarization reference value in sequence to perform the binarization process repeatedly, and the obtained binarized images are compared to find a threshold image from the change in the appearance number of defect candidate points, and the primary defect candidates are extracted. The primary defect candidates extracted by the primary extraction procedure (step S123) are stored in the primary defect candidate storage means 24E.

[0059] Thereafter, for example, the secondary extraction means 24F extracts defect candidates from the primary defect candidates extracted by the primary extraction procedure (step S123) as described above (step S124; secondary extraction procedure). Specifically, for example, for the preprocessed inspection surface image, for each image divided by the image division procedure, the luminance difference between the luminance value of the primary defect candidate and the average luminance value around the primary defect candidate is calculated, and if the luminance difference is equal to or greater than a predetermined luminance difference reference value, the defect candidate is extracted. The defect candidates extracted by the secondary extraction procedure (step S124) are stored in the defect candidate storage means 24G.

[0060] After the defect candidates are extracted by the defect candidate extraction procedure (step S120), defects are detected based on the defect candidates extracted by the defect candidate extraction procedure (step S120) (step S130; defect detection procedure). In the defect detection procedure (step S130), for example, the target surface corresponding to the inspected surface M is divided into a plurality of sections in a lattice shape by the above-mentioned section information creation method, and a reference point is set within each section. The section information is created from a plurality of section photographed images (e.g., videos) photographed by the photographing means 22 at different photographing times at any time while moving the photographing means 22 and the section screen relatively, and a section area in which the defect candidates extracted by the defect candidate extraction means 24 exist is detected. If the defect candidates exist in the section areas corresponding to the same section of the section surface in the number of inspection surface images equal to or greater than the reference judgment number, it is judged to be a defect.

[0061] Specifically, first, for example, using the section information creating device 10, a section image corresponding to each section is detected from a section photographed image corresponding to each section, in the same manner as for each inspection surface image, for a section screen in which a target surface corresponding to the inspection surface M is divided into a plurality of sections with reference points, and section information is created. The section information is stored in the section information storage means 25B in association with the frame number of the section photographed image, the coordinates of the section area, the section area number, and the section number of the corresponding section surface (section information creating procedure; step S131). It is sufficient to create one section information for each shape of the inspection surface M, and the same section information can be used for inspection surfaces M of the same shape. For example, if the painted surface of an automobile body is the inspection surface M, it is sufficient to create section information for each type of automobile. Next, for example, the judgment means 25C matches the frame number and center of gravity coordinates of the defect candidate extracted by the secondary extraction means 24F with the partition information created by the partition information creation device 10 (frame number, coordinates of the partition area, partition area number, partition number of the corresponding partition surface, etc.) to detect the frame number, partition area number, and partition number of the corresponding partition surface in which the defect candidate exists, and preferably judges that it is a defect if a defect candidate exists in more than the standard judgment number of frames for the same partition area number and partition number (judgment procedure; step S132).

[0062] Thereafter, for example, the display means 26 displays the detection result obtained in the defect detection procedure (step S130) (step S140; display procedure). The display means 60 displays, for example, on a display or the like, the block number in which the defect exists. This allows inspection of surface defects to be performed.

[0063] In this manner, according to the present embodiment, an image reference point P1 is detected in a partition photograph image, a reference partition area R1 is detected based on the image reference point P1, and then an adjacent partition area inner point P2 located in an adjacent partition area adjacent to the reference partition area R1 is obtained, and the adjacent partition area R2 is detected based on the adjacent partition area inner point P2, and another adjacent partition area R2 is detected by using the adjacent partition area R2 as a new reference partition area R1. This makes it possible to automatically create partition information corresponding to each partition easily and with high accuracy. In addition, if partition information is created for a plurality of partition photograph images photographed by the photographing means 22 at different photographing times while moving the photographing means 22 and the partition screen relatively, a trajectory line of the partition surface can be created. Furthermore, the number of the partition to which the reference point of the partition surface is attached and the number of rows and columns of the partition of the partition surface are entered, the detected partition areas can be automatically numbered. Thus, the frame and coordinates can be associated with the actual positions on the target surface.

[0064] Therefore, when used for surface defect inspection, it is possible to automatically create division information and trajectory lines corresponding to each division obtained by dividing the inspected surface M into a grid pattern, easily and with high accuracy, and it is possible to associate each division of the inspected surface M with the detected division area, making it easy to identify the position of the detected defect on the inspected surface M.

[0065] Although the present invention has been described above with reference to the embodiment, the present invention is not limited to the above embodiment and can be modified in various ways. For example, in the above embodiment, each component is specifically described, but it is not necessary to include all the components, and other components may be included.

[0066] In the above embodiment, the defect candidate extraction means 24 and the defect candidate extraction procedure (step S120) have been specifically described, but the defect candidates may be extracted by other configurations and procedures. For example, the defect candidate extraction means 24 and the defect candidate extraction procedure (step S120) may extract the defect candidates by a conventionally known method such as global binarization and local binarization. Furthermore, the defect candidates may be extracted based on a gradient image generated by performing a difference calculation in two orthogonal directions on the image obtained by the photographing means 22. In this case, the difference calculation may be performed in both the positive and negative directions in the two orthogonal directions, and the gradient image may be generated from the calculation results. Alternatively, the difference calculation may be performed in the two orthogonal directions, and the gradient image may be generated from the absolute value of the gradient vector calculated using only positive values ​​from the calculation results and the absolute value of the gradient vector calculated using only negative values ​​from the calculation results.

[0067] Furthermore, in the above embodiment, the case of inspecting the painted surface of an automobile body has been specifically described, but the present invention is not limited to automobile bodies and can be applied to the surface inspection of other painted products. Furthermore, the present invention is not limited to painted surfaces and can be applied to the inspection of surfaces having reflective properties. [Explanation of symbols]

[0068] 10... section information creation device, 11... section photographed image pre-processing means, 11A... color extraction means, 11B... binarization means, 11C... target portion detection means, 12... image reference point detection means, 13... reference section area detection means, 13A... reference section area coordinate detection means, 14... adjacent section area detection means, 14A... adjacent section area inner point calculation means, 14B... adjacent section area coordinate detection means, 14C... repeating means, 15... verification means, 20... surface defect inspection device, 21... optical source, 22...imaging means, 22A...camera, 23...moving means, 24...defect candidate extraction means, 24A...inspection surface image storage means, 24B...inspection surface image pre-processing means, 24C...division means, 24D...primary extraction means, 24E...primary defect candidate storage means, 24F...secondary extraction means, 24G...defect candidate storage means, 25...defect detection means, 25A...section photographed image storage means, 25B...section information storage means, 25C...determination means, 26...display means, M...inspected surface

Claims

1. A partition information creation device for creating partition information by detecting partition areas corresponding to each partition from a partition image captured by an imaging means, the partition image being captured on a target surface divided into a plurality of partitions in a lattice pattern and having a reference point set within at least one of the partitions, the device comprising: an image reference point detection means for detecting an image reference point corresponding to the reference point from the section photographed image; a reference division area detection means for detecting a reference division area including the image reference point in the division photographed image based on the image reference point; an adjacent divided area detection means for determining an adjacent divided area inner point located in an adjacent divided area adjacent to the reference divided area in the divided photographed image based on the reference divided area, detecting the adjacent divided area based on the adjacent divided area inner point, and detecting another adjacent divided area based on the new reference divided area by using the adjacent divided area as a new reference divided area; A region information creating device comprising:

2. The adjacent partition area detection means detects, as the adjacent partition area interior points, two points on two opposing sides of the reference partition area located on the boundary with one of the adjacent partition areas and the end points of two line segments extending the two sides toward the one adjacent partition area at the same length as the four corners of a quadrangle, or detects the midpoint of an extension part of a midpoint connecting line segment connecting the midpoints of the two opposing sides of the reference partition area, the extension being the same length toward the one adjacent partition area.

3. A light source that irradiates light onto the surface to be inspected; an imaging means for imaging the surface to be inspected illuminated by the light source to obtain an image of the surface to be inspected; a moving means for moving the position of the inspection surface relative to the imaging means; a defect candidate extracting means for extracting defect candidates from a plurality of inspection surface images taken by the photographing means at different photographing times while the photographing means and the inspection surface are moved relatively by the moving means; a defect detection means for detecting a defect based on the defect candidates extracted by the defect candidate extraction means, The defect detection means includes: a partition information creation device according to claim 1 or 2, which divides a target surface corresponding to the surface to be inspected into a plurality of partitions in a lattice pattern, detects partition areas corresponding to each of the partitions from a partition photographed image taken of the partition surface with a reference point as a reference within at least one of the partitions, and creates partition information; a determination means for detecting a partition area in which a defect candidate extracted by the defect candidate extraction means exists, using the partition information created by the partition information creation device, and determining that a defect exists when a defect candidate exists in a partition area corresponding to the same partition of the partition surface in a reference determination number or more of the plurality of inspection surface images; A surface defect inspection device comprising:

4. A method for creating partition information, comprising the steps of: dividing a target surface into a plurality of partitions in a lattice pattern; providing a reference point within at least one of the partitions; detecting partition areas corresponding to each of the partitions from a partition image captured by an image capture means; and creating partition information, comprising the steps of: an image reference point detection step of detecting an image reference point corresponding to the reference point from the section photographed image; a reference division area detection step of detecting a reference division area including the image reference point in the division photographed image based on the image reference point; an adjacent divided area detection step of determining an adjacent divided area inner point located within an adjacent divided area adjacent to the reference divided area in the divided photographed image based on the reference divided area, and detecting the adjacent divided area based on the adjacent divided area inner point; the adjacent partitioned area is set as a new reference partitioned area, and the adjacent partitioned area detection procedure is repeated based on the new reference partitioned area to detect another adjacent partitioned area; A method for creating partition information, comprising:

5. The partition information creation method described in claim 4, characterized in that in the adjacent partition area detection procedure, as the points within the adjacent partition area, the intersection points of diagonals of a quadrangle whose four corners are two points located on the boundary between two opposing sides of the reference partition area and one of the adjacent partition areas and the end points of two line segments extending the two sides at the same length toward the one of the adjacent partition areas are obtained, or the midpoint of an extension part of a midpoint connecting line segment connecting the midpoints of the two opposing sides of the reference partition area is extended at the same length toward the one of the adjacent partition areas is obtained.

6. an imaging procedure in which an image of a surface to be inspected irradiated with light from a light source is captured by an imaging means, and a position of the surface to be inspected is moved relatively to the imaging means to obtain a plurality of images of the surface to be inspected taken at different times; a defect candidate extraction step of extracting defect candidates from each inspection surface image captured by the photographing step; a defect detection step for detecting defects based on the defect candidates extracted by the defect candidate extraction step, In the defect detection step, a target surface corresponding to the surface to be inspected is divided into a plurality of sections in a lattice pattern by the section information creation method according to claim 4 or claim 5, and a section area corresponding to each section is detected from a section photographed image of the sectioned surface having a reference point as a reference in at least one of the sections, and a section area in which a defect candidate extracted by the defect candidate extraction step exists is detected using section information created by the section information creation method according to claim 4 or claim 5, and when a defect candidate exists in a section area corresponding to the same section of the sectioned surface in a reference determination number or more of the plurality of inspection surface images, it is determined that there is a defect. A surface defect inspection method comprising:

Citation Information

Patent Citations

  • Improved adaptive checkerboard corner detection method

    CN115526789A

  • Apparatus for inspecting surface defect

    JP2000009454A

  • Calibration board and calibration apparatus equipped with this calibration board

    JP2012002612A

  • Inspection method

    JP2012108131A

  • Surface defect inspection device and surface defect inspection method

    JP2020118572A

Cited By

  • Liquid crystal display defect detection method and system

    CN122110552A