Appearance inspection device and appearance inspection method
By using visible light, infrared, ultraviolet illumination and camera devices in the appearance inspection device, the illumination area is determined according to the surface state of the object to be inspected, and specular or diffuse reflected light is detected, which solves the problem of insufficient inspection accuracy in the existing technology and improves the efficiency of inspection. Check accuracy and reduce costs.
Patent Information
- Application Number
- CN202280092426.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the inspection accuracy of the inspected object may not be improved, and surface abnormalities cannot be effectively detected.
By using visible light, infrared, ultraviolet and other light sources in the appearance inspection device, combined with lighting control and camera devices, the lighting area is determined according to the surface state of the object to be inspected, so as to detect specular reflected light or diffuse reflected light and perform image processing. To determine whether the surface is good or not.
It improves the inspection accuracy of the inspected object, reduces false detections, reduces lighting costs, and accurately determines the luminous area through simulation and experiments, enhancing the accuracy of optical system design.
Smart Images

Figure CN118742802A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a visual inspection device and a visual inspection method. Background Art
[0002] A defect inspection method is proposed, which comprises: lighting, which utilizes a scanning unit to scan a sample in a horizontal plane and irradiate light to the sample in a linear manner; an imaging device, which adjusts the opening so as not to detect mirror reflected light but to detect scattered light; and an image processing unit, which performs comparative processing on the image to determine defect candidates (for example, refer to patent document 1).
[0003] Prior art literature
[0004] Patent Literature
[0005] Patent Document 1: Japanese Patent Application Publication No. 2009-53132 Summary of the invention
[0006] Problems to be solved by the invention
[0007] Patent Document 1 discloses a structure for inspecting a subject by detecting only scattered light using a linear light source. However, the structure disclosed in Patent Document 1 does not necessarily improve the inspection accuracy of the subject.
[0008] An object of the present invention is to provide a visual inspection device or a visual inspection method capable of improving the inspection accuracy of a test object.
[0009] Means for solving problems
[0010] The appearance inspection device of the present invention inspects the appearance of the surface of the inspected object, wherein the appearance inspection device comprises: lighting, which illuminates the inspected object; a lighting control unit, which controls the lighting; a camera device, which photographs the inspected object; an image acquisition unit, which acquires the image of the inspected object from the camera device; and a quality judgment unit, which performs image processing on the image, judges the quality of the appearance of the inspected object, and outputs a quality judgment result, wherein the area where the lighting emits light is determined according to the state of the surface of the inspected object so that the camera device detects either mirror reflected light or diffuse reflected light.
[0011] The appearance inspection method of the present invention inspects the appearance of the surface of the inspected object, wherein the appearance inspection method has the following steps: illuminating the inspected object by lighting; photographing the inspected object by a camera device; obtaining an image of the inspected object; performing image processing on the image; determining whether the appearance of the inspected object is good or bad; and outputting a result of the good or bad determination, wherein the area where the illumination is emitted is determined according to the state of the surface of the inspected object so that the camera device detects either mirror reflected light or diffuse reflected light.
[0012] Effects of the Invention
[0013] According to the present invention, it is possible to provide a visual inspection apparatus or a visual inspection method capable of improving the inspection accuracy of a test object. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a diagram schematically showing the configuration of the appearance inspection device according to the first embodiment.
[0015] Figure 2 It is a diagram showing an example of the hardware configuration of the control unit.
[0016] Figure 3 It is a diagram showing another example of the hardware configuration of the control unit.
[0017] Figure 4 1 is a flowchart showing an example of a method for inspecting an appearance of an object to be inspected.
[0018] Figure 5 1 is a diagram showing a state in which a normal portion of the surface of a subject is imaged.
[0019] Figure 6 1 is a diagram showing a state in which an abnormal portion on the surface of a subject is imaged.
[0020] Figure 7 1 is a diagram showing a state where a normal portion of the surface of an object to be inspected is imaged in a visual inspection apparatus as a comparative example.
[0021] Figure 8 FIG. 1 is a diagram showing a state in which an abnormal portion on the surface of an object to be inspected is imaged in a visual inspection apparatus as a comparative example.
[0022] Fig. 9 This is a diagram schematically showing a configuration of a visual inspection device as a modified example.
[0023] Fig.10 This is a diagram schematically showing the structure of a visual inspection device according to a second embodiment.
[0024] Fig.111 is a diagram showing a state in which a normal portion of the surface of a subject is imaged.
[0025] Fig.12 1 is a diagram showing a state in which an abnormal portion on the surface of a subject is imaged.
[0026] Fig.13 This is a diagram schematically showing the structure of a visual inspection device according to a third embodiment.
[0027] Fig.14 This is a diagram schematically showing the structure of a visual inspection device according to a fourth embodiment.
[0028] Fig.15 This is a diagram schematically showing the structure of a visual inspection device according to a first modification of the fourth embodiment.
[0029] Fig.16 This is a diagram schematically showing the structure of a visual inspection device according to a second modification of the fourth embodiment.
[0030] Fig.17 This is a diagram schematically showing the structure of a visual inspection device as a third modification of the fourth embodiment. DETAILED DESCRIPTION
[0031] Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0032] Implementation Method 1
[0033] The structure of the appearance inspection device 1 according to the first embodiment will be described.
[0034] Figure 1 This is a diagram schematically showing the configuration of a visual inspection device 1 according to the first embodiment.
[0035] The appearance inspection device 1 includes an illumination device 100, an illumination control unit 200, an imaging device 300, an image acquisition unit 400, and a quality determination unit 500. The appearance inspection device 1 inspects the appearance of the surface of the inspection object 600. The appearance inspection device 1 can diagnose an abnormality related to the appearance of the surface of the inspection object 600. In other words, the appearance inspection device 1 can diagnose an abnormality related to the shape or state of the surface of the inspection object 600.
[0036] The illumination 100 has a light source that emits visible light, infrared light, ultraviolet light, etc. The illumination 100 illuminates the subject 600. In the present embodiment, the illumination 100 has a light-emitting region 110. The light-emitting region 110 is also referred to as a "light-emitting region".
[0037] The lighting control unit 200 controls the lighting 100. That is, the lighting control unit 200 is a device that controls the lighting 100 to be turned on and off. Therefore, the lighting 100 is controlled by the lighting control unit 200 to emit light.
[0038] The imaging device 300 captures an image of the subject 600. For example, the imaging device 300 captures an image of the subject 600 being transported. The imaging device 300 is, for example, a line camera. The imaging device 300 may also be a device that uses an area camera to obtain an image using only pixels corresponding to a specific row.
[0039] The image acquisition unit 400 acquires an image of the subject 600 from the imaging device 300. For example, the image acquisition unit 400 controls the imaging device 300 to acquire the image of the subject 600. The image acquisition unit 400 can send the image of the subject 600 to the quality determination unit 500.
[0040] The quality determination unit 500 acquires an image of the subject 600 from the image acquisition unit 400. The quality determination unit 500 performs image processing on the image of the subject 600, determines the quality of the appearance of the subject 600, and outputs a quality determination result.
[0041] The object to be inspected 600 has a curved surface. The object to be inspected 600 has the same surface shape in a specific direction, formed by a plurality of normal directions. The object to be inspected 600 is, for example, a handrail facing an escalator, a guide rail facing an elevator, a track facing a railway, a trolley, etc. In the appearance inspection device 1, the object to be inspected 600 is transported in a direction orthogonal to a cross section having the same surface shape while being inspected.
[0042] The region 110 where the illumination 100 emits light is a region where light is emitted from the illumination 100 toward the object 600. The region 110 where the illumination 100 emits light is determined based on the state of the surface of the object 600 so that the imaging device 300 detects either specular reflected light or diffuse reflected light. In the present embodiment, the region 110 where the illumination 100 emits light is determined based on the state of the surface of the object 600 so that the imaging device 300 detects specular reflected light.
[0043] The state of the surface of the object to be examined 600 is, for example, a concave-convex shape.
[0044] That is, in this embodiment, the region 110 where the illumination 100 emits light is determined according to the state of the surface of the object 600 so that the imaging device 300 detects specular reflected light and does not detect diffuse reflected light. Figure 1In the example shown, the region 110 where the illumination 100 emits light is the region where the principal light 700 incident on the pixel of the imaging device 300 intersects with the illumination 100 when the illumination 100 is reflected by specular reflection at the object 600. Figure 1 In the example shown, the area where the main light ray 700 incident on the pixel of the imaging device 300 does not intersect with the illumination 100 when reflected by the mirror reflection at the object 600 is the non-luminous area of the illumination 100. Figure 1 In the illustrated example, the image pickup device 300 detects specularly reflected light but does not detect diffusely reflected light.
[0045] The principal ray 700 is a ray that passes through the center of the aperture of the imaging device 300. In other words, the principal ray 700 is a ray that passes through the center of the entrance pupil of the imaging device 300. The principal ray 700 is light, and therefore, is reflected by the object 600 when incident on the object 600.
[0046] The lighting 100 may also include a light shielding material that shields light from the lighting 100 (specifically, the light source). The light shielding material is, for example, a metal material. For example, the light shielding material is provided in the area other than the light-emitting area 110 of the lighting 100. That is, the light shielding material is provided in the non-light-emitting area of the lighting 100. As a result, the light-emitting area 110 of the lighting 100 is formed.
[0047] The light-emitting region 110 is determined, for example, by experiments, simulations, or both. Next, an example of a method of determining the light-emitting region 110 is described.
[0048] An example of a method for determining the luminous area 110 through experiments is described. The luminous surface of the lighting 100 is divided into N×M areas. Here, N and M are natural numbers. Next, an image of the subject 600 is obtained under the condition that only each area of the N×M area is illuminated. In this case, when there is an area with high brightness in the obtained image, it is assumed that the area intersects with the main light ray 700 and is determined as the luminous area 110. On the other hand, when the overall brightness of the obtained image is low, it is assumed that the area does not intersect with the main light ray 700 and is excluded from the luminous area 110. By performing the above process on all N×M areas, the luminous area 110 can be determined in the lighting 100.
[0049] When the light-emitting area 110 is determined by a simulation-based method, the light-emitting area 110 of the illumination 100 is determined, for example, by a ray tracing method. An example of a method for determining the light-emitting area 110 by simulation is described. First, the main ray 700 incident on the pixel of the imaging device 300 is calculated by a ray tracing method or the like. The portion where the calculated main ray 700 intersects with the illumination 100 is set as the light-emitting area 110.
[0050] In order to improve accuracy, the configuration may be such that shape information of the subject 600 is acquired. In addition, the configuration may be such that information on the positional relationship between the illumination 100, the imaging device 300, and the subject 600 is acquired. The configuration may be such that design information of the optical system such as the lens design of the imaging device 300 is acquired.
[0051] An example of a method based on both experiments and simulations is described. In this method, first, the luminous area 110 is determined by simulation. Next, an image of the subject 600 is acquired using the determined luminous area 110. In this case, when there are pixels where some specular reflected light cannot be acquired due to the difference between the calculation conditions and the actual conditions, the luminous area 110 is adjusted. Through the above process, the luminous area 110 can be determined with high accuracy.
[0052] Figure 2 It is a diagram showing an example of the hardware configuration of the control unit 42 .
[0053] Figure 3 It is a diagram showing another example of the hardware configuration of the control unit 42 .
[0054] The lighting control unit 200, the image acquisition unit 400, and the quality determination unit 500 are constituted by, for example, the control unit 42. In this case, the control unit 42 is constituted by, for example, at least one processor 42a and at least one memory 42b. The processor 42a is, for example, a CPU (Central Processing Unit) that executes a program stored in the memory 42b. In this case, the functions of the lighting control unit 200, the image acquisition unit 400, and the quality determination unit 500 are implemented by software, firmware, or a combination of software and firmware. Software and firmware can be stored as programs in the memory 42b. According to this structure, the program for implementing the functions of the control unit 42 is executed by a computer.
[0055] The memory 42 b is a computer-readable recording medium, and is, for example, a volatile memory such as a RAM (Random Access Memory) or a ROM (Read Only Memory), a nonvolatile memory, or a combination of a volatile memory and a nonvolatile memory.
[0056] The control unit 42 may include a plurality of processors 42a and a plurality of memories 42b. In this case, the functions of the lighting control unit 200, the image acquisition unit 400, and the quality determination unit 500 are realized by the plurality of processors 42a and the plurality of memories 42b.
[0057] The control unit 42 may be composed of a processing circuit 42c which is dedicated hardware such as a single circuit or a composite circuit. The processing circuit 42c is, for example, a system LSI. In this case, the functions of the lighting control unit 200, the image acquisition unit 400, and the quality determination unit 500 are realized by the processing circuit 42c.
[0058] Next, the operation of the appearance inspection device 1 and the appearance inspection method of the inspection object 600 will be described.
[0059] Figure 4 1 is a flowchart showing an example of a method for inspecting the appearance of the object to be inspected 600.
[0060] exist Figure 4 In the example shown, the appearance inspection method for inspecting the appearance of the surface of the object 600 includes step S1 of illuminating the object 600 by the illumination 100, step S2 of photographing the object 600 by the imaging device 300, step S3 of acquiring an image of the object 600, step S4 of performing image processing on the image acquired in step S3, step S5 of determining whether the appearance of the object 600 is good or bad, and step S6 of outputting the good or bad determination result. In this appearance inspection method, the area 110 where the illumination 100 emits light is determined in accordance with the state of the surface of the object 600 so that the imaging device 300 detects either specular reflection light or diffuse reflection light. In the present embodiment, the area 110 where the illumination 100 emits light is determined in accordance with the state of the surface of the object 600 so that the imaging device 300 detects only specular reflection light.
[0061] The object to be inspected 600 is, for example, a cylindrical extrusion-molded product. That is, the object to be inspected is a cylindrical extrusion-molded product. When inspecting the object to be inspected 600, the extrusion-molded product is conveyed, for example, in a direction orthogonal to a cross section having the same surface shape. In addition, the object to be inspected 600 is not limited to a cylindrical shape, and can be an elliptical shape as long as it has the same surface shape in one direction, and the surface of the object to be inspected can also be only a curved surface or a flat surface.
[0062] In step S1, the lighting 100 is controlled by the lighting control unit 200 to emit light. The region 110 where light is emitted is a region where the main light ray 700 incident on a pixel of the imaging device 300 intersects the lighting 100.
[0063] In step S2 , the imaging device 300 is controlled by the image acquisition unit 400 to capture an image of the subject 600 .
[0064] In step S3 , the image acquisition unit 400 acquires an image captured by the imaging device 300 .
[0065] Figure 5 1 is a diagram showing a state where a normal portion of the surface of the subject 600 is imaged. Figure 5 In the example shown, the entire surface of the object 600 to be examined is a normal portion.
[0066] A normal part means a part that is manufactured according to design and has no abnormalities. Figure 5 In the example shown, all principal rays 700 incident on the pixels of the imaging device 300 intersect the luminous region 110. Therefore, specular reflection light is detected in all pixels of the imaging device 300, and the brightness becomes high.
[0067] Figure 6 1 is a diagram showing a state where an abnormal portion 601 on the surface of a subject 600 is imaged. Figure 6 In the example shown, an abnormal portion 601 exists on a portion of the surface of the object 600 to be examined.
[0068] The abnormal part 601 means a part that is not manufactured according to the design and has unevenness or the like. In the abnormal part 601, the light is reflected in a direction different from the direction when it is incident on the normal part. Therefore, the main light that is incident on the abnormal part 601 and reaches the imaging device 300 is the main light 701 that does not intersect the light-emitting area 110. Therefore, the specular reflection light is not detected in the pixel of the imaging device 300 that captures the abnormal part 601, and the brightness becomes low. That is, the brightness detected by the imaging device 300 becomes high in the normal part and becomes low in the abnormal part.
[0069] Next, comparative examples will be described.
[0070] Figure 7 1 is a diagram showing a state where a normal portion of the surface of an inspection object 600 is imaged in a visual inspection apparatus as a comparative example.
[0071] In the illumination 100 of the visual inspection device as a comparative example, the entire surface facing the inspection object 600 is the light-emitting area 111. All principal rays 700 incident on the pixels of the imaging device 300 intersect with the illumination 100, so that specular reflection light is detected in all pixels of the imaging device 300, and the brightness becomes high.
[0072] Figure 81 is a diagram showing a state in which an abnormal portion 601 on the surface of an inspection object 600 is imaged in a visual inspection apparatus as a comparative example.
[0073] The main light, including the main light 701 incident on the abnormal part and reflected in a direction different from that in the normal part, intersects with the illumination 100, so that the specular reflected light is detected in all pixels of the imaging device 300, and the brightness becomes higher. That is, in the comparative example, the brightness detected by the imaging device 300 is also higher in the abnormal part, so there is no difference between the normal part and the abnormal part.
[0074] In steps S4 to S6 , the quality determination unit 500 performs image processing on the image received from the image acquisition unit 400 , determines the quality of the appearance of the object under examination 600 , and outputs the quality determination result.
[0075] In this embodiment, if Figure 5 , Figure 6 As described in , there is a difference in brightness between the image corresponding to the normal part and the image corresponding to the abnormal part. The quality determination unit 500 can determine whether the brightness has changed by comparing with the surrounding pixels through an image processing algorithm such as a differential filter, and determine the part with the change as abnormal.
[0076] In addition, Figure 7 and Figure 8 In the comparative example shown, there is no change in brightness between the normal portion and the abnormal portion, and therefore the quality determination unit 500 cannot determine whether the image is normal or abnormal based on the image.
[0077] Next, advantages of the appearance inspection device 1 according to the first embodiment will be described.
[0078] According to the present embodiment, the region 110 where the illumination 100 emits light is determined in accordance with the state of the surface of the object to be inspected 600 so that the imaging device 300 detects only the specular reflected light. Therefore, in the image captured by the imaging device 300, the normal portion becomes high brightness, and the abnormal portion becomes low brightness, and a difference in brightness occurs between the normal portion and the abnormal portion. As a result, the accuracy of the quality determination by the quality determination unit 500 is improved, and the inspection accuracy of the object to be inspected 600 can be improved.
[0079] When the lighting 100 has a light shielding material that shields light from the lighting 100 (specifically, the light source), the light-emitting area 110 can be easily formed. For example, the light shielding material can also be installed on the lighting of an existing product. In this case, the cost of the lighting 100 can be reduced.
[0080] Furthermore, when determining the luminous area 110 through simulation, by adding a structure for obtaining shape information of the test object 600, a structure for obtaining information related to the positional relationship between the lighting 100, the camera device 300 and the test object 600, and a structure for obtaining design information of the optical system such as the lens design of the camera device 300, the accuracy of the simulation can be improved, and the inspection accuracy can be improved.
[0081] The light-emitting region 110 may be determined in consideration of the manufacturing tolerance of the object 600. Thus, the light-emitting region 110 can be determined so that even if the position of the principal ray 700 varies due to the manufacturing tolerance of the object 600, the principal ray 700 intersects the light-emitting region 110. Therefore, even when the manufacturing tolerance occurs on the surface of the object 600, the brightness of the image does not change, and thus false detection can be reduced.
[0082] The lighting 100 may include a linear light source, which reduces the number of light-emitting elements compared to planar lighting, thereby making it possible to reduce the cost of the lighting.
[0083] <Variation of Implementation Example 1>
[0084] Fig. 9 1A is a diagram schematically showing a configuration of a visual inspection device 1A as a modified example.
[0085] A visual inspection device 1A as a modified example Figure 1 The difference of the visual inspection device 1 shown is that it further includes a fixing member 800. The fixing member 800 fixes the positional relationship between the lighting 100, the imaging device 300, and the object to be inspected 600. Thus, the fixing member 800 can make the positional relationship between the imaging device 300, the lighting 100, and the object to be inspected 600 become a pre-set condition. Fig. 9 In the example shown, the fixing member 800 fixes the illumination 100 and the imaging device 300. Furthermore, the fixing member 800 has a portion that contacts the subject 600 at a predetermined position. Thus, the positional relationship among the imaging device 300, the illumination 100, and the subject 600 can be set to a predetermined positional relationship.
[0086] A roller or a bearing may be used for the portion of the fixing member 800 that contacts the object 600 so as not to damage the object 600. The fixing member 800 may be fixed to a structure around the object 600, and the positional relationship among the imaging device 300, the lighting 100, and the object 600 may be set to a predetermined condition. According to this structure, the positional relationship among the lighting 100, the imaging device 300, and the object 600 may be easily adjusted to a predetermined condition, and the operation cost related to the position adjustment may be reduced.
[0087] The appearance inspection device 1A may also have a dark room (not shown) that blocks external light. In this case, the lighting 100, the imaging device 300, and the object to be inspected 600 are covered by the dark room. According to this structure, the imaging device 300 does not detect unnecessary external light, so the inspection accuracy can be further improved. In addition, in order to form a dark room, the entire room can be shielded from light, a dark box can be used, and light can be shielded by covering the lighting 100, the imaging device 300, and the object to be inspected 600 with a blackout curtain or a blackout curtain.
[0088] Implementation Method 2
[0089] The structure of the appearance inspection device 2 according to the second embodiment will be described.
[0090] Fig.10 This is a diagram schematically showing the configuration of a visual inspection device 2 according to the second embodiment.
[0091] The visual inspection device 2 includes an illumination 101, an illumination control unit 201, an imaging device 300, an image acquisition unit 400, and a quality determination unit 501. In the visual inspection device 2 of the second embodiment, the illumination 101 is different from the illumination 100 of the visual inspection device 1 of the first embodiment. Specifically, the position of the region 112 where the illumination 101 emits light is different from the region 110 where the illumination 100 of the visual inspection device 1 of the first embodiment emits light.
[0092] The illumination 101 has a light source that emits visible light, infrared light, ultraviolet light, etc. The illumination 101 illuminates the subject 600. In the present embodiment, the illumination 101 has a light-emitting region 112. The light-emitting region 112 is also referred to as a "light-emitting region".
[0093] The illumination control unit 200 , the imaging device 300 , and the image acquisition unit 400 are the same as those in the first embodiment.
[0094] The quality determination unit 501 acquires an image of the subject 600 from the image acquisition unit 400. The quality determination unit 501 performs image processing on the image of the subject 600, determines the quality of the appearance of the subject 600, and outputs a quality determination result. In this embodiment, the light-emitting area 112 is different from the light-emitting area 110 in the first embodiment, and therefore, the content of the image processing is not necessarily the same as the content of the image processing in the first embodiment.
[0095] The region 112 where the illumination 101 emits light is a region where light is emitted from the illumination 101 toward the object 600. In the present embodiment, the region 112 where the illumination 101 emits light is a region determined in accordance with the state of the surface of the object 600 so that the imaging device 300 detects diffusely reflected light instead of specularly reflected light. Specifically, the region 112 where the illumination 101 emits light is a region where the main light ray 700 incident on the pixel of the imaging device 300 does not intersect with the illumination 101 when specularly reflected light is generated at the object 600. On the other hand, in Fig.10 In the example shown, the area where the main light ray 700 incident on the pixel of the imaging device 300 intersects with the illumination 101 when reflected by the mirror reflection at the object 600 is a non-luminous area of the illumination 101. Fig.10 In the illustrated example, the image pickup device 300 detects diffusely reflected light but does not detect specularly reflected light.
[0096] The lighting 101 may also include a light shielding material that shields light from the lighting 101 (specifically, the light source). The light shielding material is, for example, a metal material. For example, the light shielding material is provided in the area other than the light-emitting area 112 in the lighting 101. That is, the light shielding material is provided in the non-light-emitting area of the lighting 101. As a result, the light-emitting area 112 of the lighting 101 is formed.
[0097] The light-emitting region 112 is determined by, for example, experiments, simulations, or both. Next, an example of a method of determining the light-emitting region 112 is described.
[0098] An example of a method for determining the luminous area 112 through experiments is described. The luminous surface of the lighting 101 is divided into N×M areas. Here, N and M are natural numbers. Next, an image of the subject 600 is obtained under the condition that only each area of the N×M area is illuminated. In this case, if the overall brightness of the image obtained is low, the area is set not to intersect with the main ray 700 and is set as the luminous area 112. On the other hand, if there is a part of the obtained image that obtains high brightness, the area is set to intersect with the main ray 700 and is excluded from the luminous area 112. By performing the above process on all N×M areas, the luminous area 112 can be determined in the lighting 101.
[0099] An example of a method for determining the luminous region 112 by simulation is described below. First, the main ray 700 incident on the pixel of the imaging device 300 is calculated by a ray tracing method or the like. The portion where the calculated main ray 700 does not intersect the illumination 101 is defined as the luminous region 112.
[0100] In order to improve the accuracy of the light-emitting region 112, the appearance inspection device 2 may be configured to obtain shape information of the inspection object 600. The appearance inspection device 2 may be configured to obtain information related to the positional relationship between the lighting 100, the imaging device 300, and the inspection object 600. The appearance inspection device 2 may be configured to obtain design information of the optical system such as the lens design of the imaging device 300.
[0101] An example of a method based on both experiments and simulations is described. In this method, first, the luminous region 112 is determined by simulation. Next, an image of the subject 600 is obtained using the determined luminous region 112. In this case, when there are pixels that have partially obtained specular reflection light due to the difference between the calculated conditions and the actual conditions, the luminous region 112 is adjusted. Through the above process, the luminous region 112 can be determined with high accuracy.
[0102] Next, the operation of the appearance inspection device 2 and the appearance inspection method of the inspection object 600 will be described.
[0103] like Figure 4 As shown, the appearance inspection method for inspecting the appearance of the surface of the object 600 includes step S1 of illuminating the object 600 by the illumination 100, step S2 of photographing the object 600 by the imaging device 300, step S3 of acquiring an image of the object 600, step S4 of performing image processing on the image acquired in step S3, step S5 of determining whether the appearance of the object 600 is good or bad, and step S6 of outputting the result of the good or bad determination. In this embodiment, the area 110 where the illumination 100 emits light is determined according to the state of the surface of the object 600 so that the imaging device 300 detects only diffuse reflected light.
[0104] The object to be inspected 600 is, for example, a cylindrical extrusion-molded product. That is, the object to be inspected is a cylindrical extrusion-molded product. When inspecting the object to be inspected 600, the extrusion-molded product is conveyed in a direction perpendicular to a cross section having the same surface shape, for example.
[0105] In step S1, the lighting 101 is controlled by the lighting control unit 200 to emit light. The region 112 where light is emitted is a region where the main light ray 700 incident on the pixel of the imaging device 300 and the lighting 101 do not intersect.
[0106] In step S2 , the imaging device 300 is controlled by the image acquisition unit 400 to capture an image of the subject 600 .
[0107] In step S3 , the image acquisition unit 400 acquires an image captured by the imaging device 300 .
[0108] Fig.11 1 is a diagram showing a state where a normal portion of the surface of the subject 600 is imaged. Fig.11 In the example shown, the entire surface of the object 600 to be examined is a normal portion.
[0109] A normal part means a part that is manufactured according to design and has no abnormalities. Fig.11 In the example shown, all the principal rays 700 incident on the pixels of the imaging device 300 do not intersect the luminous region 112. Therefore, specular reflection light is not detected in all the pixels of the imaging device 300, and the brightness becomes low.
[0110] Fig.12 1 is a diagram showing a state where an abnormal portion 601 on the surface of a subject 600 is imaged. Fig.12 In the example shown, an abnormal portion 601 exists on a portion of the surface of the object 600 to be examined.
[0111] The abnormal part 601 means a part that is not manufactured according to the design and has unevenness or the like. In the abnormal part 601, the light is reflected in a direction different from the direction when it is incident on the normal part. Therefore, the main light that is incident on the abnormal part 601 and reaches the imaging device 300 is the main light 701 that intersects with the light-emitting area 112. Therefore, the diffusely reflected light is detected in the pixel of the imaging device 300 that captures the abnormal part 601, and the brightness becomes higher. That is, the brightness detected by the imaging device 300 becomes low in the normal part and high in the abnormal part.
[0112] In steps S4 to S6 , the quality determination unit 501 performs image processing on the image received from the image acquisition unit 400 , determines the quality of the appearance of the object under examination 600 , and outputs the quality determination result.
[0113] In this embodiment, there is a difference in brightness between the image corresponding to the normal part and the image corresponding to the abnormal part. The quality determination unit 501 can determine whether the brightness has changed by comparing with the surrounding pixels through an image processing algorithm such as a differential filter, and determine the changed part as abnormal.
[0114] Next, advantages of the appearance inspection device 2 according to the second embodiment will be described.
[0115] According to the present embodiment, the region 112 where the illumination 101 emits light is determined in accordance with the state of the surface of the object to be inspected 600 so that the imaging device 300 detects only diffuse reflected light. Therefore, in the image captured by the imaging device 300, the normal portion becomes low brightness, and the abnormal portion becomes high brightness, and a difference in brightness occurs between the normal portion and the abnormal portion. As a result, the accuracy of the quality determination by the quality determination unit 501 is improved, and the inspection accuracy of the object to be inspected 600 can be improved.
[0116] When the lighting 101 has a light shielding material that shields light from the lighting 101 (specifically, the light source), the light-emitting area 112 can be easily formed. For example, the light shielding material can also be installed on the lighting of an existing product. In this case, the cost of the lighting 101 can be reduced.
[0117] Furthermore, when determining the luminous area 112 through simulation, by adding a structure for obtaining shape information of the test object 600, a structure for obtaining information related to the positional relationship between the lighting 101, the camera device 300 and the test object 600, and a structure for obtaining design information of the optical system such as the lens design of the camera device 300, the accuracy of the simulation can be improved, and the inspection accuracy can be improved.
[0118] The light-emitting region 112 may be determined in consideration of the manufacturing tolerance of the object 600. Thus, the light-emitting region 112 can be determined so that even if the position of the principal ray 700 changes due to the manufacturing tolerance of the object 600, the principal ray 700 does not intersect the light-emitting region 112. Therefore, even if the manufacturing tolerance occurs on the surface of the object 600, the brightness of the image does not change, and thus false detection can be reduced.
[0119] As in the variation of Embodiment 1, the appearance inspection device 2 may also include a dark room shielding external light. In this case, the lighting 101, the imaging device 300, and the object to be inspected 600 are covered by the dark room. According to this structure, the imaging device 300 does not detect unnecessary external light, so the inspection accuracy can be further improved.
[0120] Implementation 3
[0121] The structure of the appearance inspection device 3 according to the third embodiment will be described.
[0122] Fig.13 This is a diagram schematically showing the configuration of a visual inspection device 3 according to a third embodiment.
[0123] The appearance inspection device 3 includes the lighting 102 , the lighting control unit 202 , the imaging device 300 , the image acquisition unit 400 , and the quality determination unit 500 .
[0124] The lighting 102 has a plurality of light emitting elements 102A. Each light emitting element 102A can emit visible light, infrared light, or ultraviolet light. According to this structure, the lighting 102 illuminates the subject 600. In this embodiment, the lighting 102 has a light emitting area 113. The light emitting area 113 is also referred to as a "light emitting area". The lighting 102 is, for example, a display.
[0125] The lighting control unit 202 is a device that controls the lighting and extinguishing of each light emitting element 102A of the lighting 102. That is, each of the plurality of light emitting elements 102A is controlled by the lighting control unit 202. Therefore, the lighting 102 is controlled by the lighting control unit 202 to emit light.
[0126] The imaging device 300 , the image acquisition unit 400 , and the quality determination unit 500 are the same as those described in the first embodiment.
[0127] The region 113 where the illumination 102 emits light is a region where light is emitted from the illumination 102 toward the subject 600. Specifically, the region 113 where the illumination 102 emits light is a region consisting of the light-emitting elements 102A that are currently lit among the plurality of light-emitting elements 102A.
[0128] The light emitting element 102A to be lit is determined based on the image of the object 600 resulting from the lighting of the plurality of light emitting elements 102A. As a result, as in Embodiment 1, the light emitting area 113 is determined based on the surface state of the object 600 so that the imaging device 300 detects specular reflected light but not diffuse reflected light.
[0129] The light-emitting region 113 is determined, for example, by experiments, simulations, or both. Next, an example of a method of determining the light-emitting region 113 is described.
[0130] An example of a method for determining the luminous area 113 by experiment is described. In this embodiment, the method shown in Embodiment 1 can be automated. First, the luminous surface of the lighting 102 is divided into N×M areas for consideration. Here, N and M are natural numbers. Next, an image of the subject 600 is obtained under the condition that only each area of the N×M area is illuminated while switching the luminous pixels in a predetermined pattern. In this case, image processing is used to confirm whether there is an area with high brightness in the image obtained under each condition. In the case where there is an area with high brightness, it is set that the area intersects with the main light ray 700 and is set as the luminous area 113. On the other hand, in the case where it is confirmed through image processing that the obtained image is low brightness as a whole, it is set that the area does not intersect with the main light ray 700 and is excluded from the luminous area 113. Through the above process, the luminous area 113 can be automatically determined in the lighting 102.
[0131] Regarding the method based on simulation, the light-emitting region 113 can be determined by the method described in Embodiment 1.
[0132] Next, the operation of the appearance inspection device 3 will be described.
[0133] The object to be inspected 600 is, for example, a cylindrical extrusion-molded product. That is, the object to be inspected is a cylindrical extrusion-molded product. When inspecting the object to be inspected 600, the extrusion-molded product is conveyed in a direction perpendicular to a cross section having the same surface shape, for example.
[0134] The illumination 102 emits light under the control of the illumination control unit 202. The region 113 where light is emitted is a region where the principal light ray 700 incident on the pixel of the imaging device 300 intersects the illumination 102.
[0135] The imaging device 300 is controlled by the image acquisition unit 400 to capture an image of the subject 600 .
[0136] The image acquisition unit 400 acquires an image captured by the imaging device 300 .
[0137] As described in Embodiment 1, the brightness detected by the imaging device 300 is high in a normal portion and low in an abnormal portion.
[0138] The quality determination unit 500 processes the image received from the image acquisition unit 400, determines the quality of the appearance of the object 600, and outputs the quality determination result. As described in the first embodiment, the quality determination unit 500 determines whether it is normal or abnormal by using an image processing algorithm such as a differential filter, and outputs the quality determination result.
[0139] Next, advantages of the appearance inspection device 3 according to the third embodiment will be described.
[0140] The appearance inspection device 3 of the third embodiment has the advantages described in the first embodiment.
[0141] Furthermore, according to the present embodiment, since a device capable of controlling the lighting of each light emitting element 102A can be used as the lighting 102, custom lighting is not required. As a result, the cost of the appearance inspection device 3 can be reduced.
[0142] Furthermore, according to the present embodiment, when determining the light-emitting region 113, the light-emitting elements 102A that are lit are changed while acquiring an image, and it is possible to automatically determine whether each light-emitting element 102A contributes to the specular reflection. Therefore, it is possible to determine the light-emitting region 113 at a low cost without performing simulation or experimental verification by preparing a plurality of light-emitting regions 113.
[0143] In this embodiment, the light-emitting region 113 is determined so as to detect specular reflected light. However, as in the second embodiment, the light-emitting region 113 may be determined so as to detect diffuse reflected light instead of specular reflected light.
[0144] Implementation 4
[0145] The structure of the appearance inspection device 4 according to the fourth embodiment will be described.
[0146] Fig.14 This is a diagram schematically showing the configuration of a visual inspection device 4 according to a fourth embodiment.
[0147] The appearance inspection device 4 includes an illumination device 100 having a light-emitting area 110, an illumination control unit 200, an imaging device 300, an image acquisition unit 400, a quality determination unit 500, and a shape information acquisition unit 900. The appearance inspection device 4 of the fourth embodiment is different from the appearance inspection device 1 of the first embodiment in that the appearance inspection device 4 further includes a shape information acquisition unit 900. In the fourth embodiment, the light-emitting area 110 of the illumination device 100 is determined based on the information acquired by the shape information acquisition unit 900.
[0148] The shape information acquisition unit 900 acquires information on the shape of the surface of the object 600. The region 110 where the illumination 100 emits light is determined based on the information acquired by the shape information acquisition unit 900. By acquiring information on the surface shape of the object 600, the region 110 where the illumination 100 emits light for detecting either specular reflected light or diffuse reflected light can be determined.
[0149] <Variation 1 of Implementation Example 4>
[0150] Fig.15 This is a diagram schematically showing the configuration of a visual inspection device 5 as a first modification of the fourth embodiment.
[0151] The appearance inspection device 5 includes an illumination device 100 having a light-emitting area 110, an illumination control unit 200, an imaging device 300, an image acquisition unit 400, a quality determination unit 500, and a positional relationship information acquisition unit 1000. The difference from the appearance inspection device 1 of the embodiment is that the positional relationship information acquisition unit 1000 is added. In the first variation of the fourth embodiment, the light-emitting area 110 of the illumination device 100 is determined based on the information acquired by the positional relationship information acquisition unit 1000.
[0152] The positional relationship information acquisition unit 1000 acquires information related to the position of the subject 600. The region 110 where the illumination 100 emits light is determined based on the information acquired by the positional relationship information acquisition unit 1000. By acquiring information on the positional relationship among the illumination 100, the imaging device 300, and the subject 600, the region 110 where the illumination 100 emits light for detecting either specular reflected light or diffuse reflected light can be determined.
[0153] <Variation 2 of Implementation Example 4>
[0154] Fig.16 This is a diagram schematically showing the structure of a visual inspection device 6 as a second modification of the fourth embodiment.
[0155] The appearance inspection device 6 includes an illumination device 100 having a light-emitting area 110, an illumination control unit 200, an imaging device 300, an image acquisition unit 400, a quality determination unit 500, and a manufacturing tolerance information acquisition unit 1100. The difference from the appearance inspection device 1 of the embodiment is that the manufacturing tolerance information acquisition unit 1100 is added. In the second variation of the fourth embodiment, the light-emitting area 110 of the illumination device 100 is determined based on the information acquired by the manufacturing tolerance information acquisition unit 1100.
[0156] The manufacturing tolerance information acquisition unit 1100 acquires information related to the manufacturing tolerance of the object under test 600. The region 110 where the illumination 100 emits light is determined based on the information acquired by the manufacturing tolerance information acquisition unit 1100. By considering the manufacturing tolerance information of the object under test 600 to determine the region 110 where the illumination 100 emits light, brightness changes due to the manufacturing tolerance will not occur, and false detection can be reduced.
[0157] <Variation 3 of Implementation Example 4>
[0158] Fig.17 This is a diagram schematically showing the structure of a visual inspection device 7 which is a third modification of the fourth embodiment.
[0159] The appearance inspection device 7 includes an illumination device 100 having a light-emitting area 110, an illumination control unit 200, an imaging device 300, an image acquisition unit 400, a quality determination unit 500, and an imaging device information acquisition unit 1200. The difference from the appearance inspection device 1 of the embodiment is that the imaging device information acquisition unit 1200 is added. In the third variation of the fourth embodiment, the area 110 where the illumination device 100 emits light is determined based on the information acquired by the imaging device information acquisition unit 1200.
[0160] The imaging device information acquisition unit 1200 acquires information related to the optical system of the imaging device 300. The region 110 where the illumination device 100 emits light is determined based on the information acquired by the imaging device information acquisition unit 1200. By acquiring the information related to the optical system of the imaging device 300, the region 120 where the illumination device 100 emits light for detecting only the specular reflected light and the reflected light other than the specular reflected light can be determined.
[0161] The features of each embodiment and the features of the modified examples described above can be combined with each other.
[0162] Description of symbols
[0163] 1, 2, 3, 4, 5, 6, 7: appearance inspection device; 100, 101: lighting; 110, 112, 113: luminous area; 200, 202: lighting control unit; 300: imaging device; 400: image acquisition unit; 500, 501: quality judgment unit; 600: inspection object; 700: main light; 900: shape information acquisition unit; 1000: position relationship information acquisition unit; 1100: manufacturing tolerance information acquisition unit; 1200: imaging device information acquisition unit.
Claims
1. An appearance inspection device for inspecting the appearance of a surface of an object to be inspected, wherein: The appearance inspection device has: Illumination, which illuminates the object under examination; A lighting control unit, which controls the lighting; An imaging device for imaging the subject; an image acquisition unit that acquires the image of the subject from the imaging device; as well as a quality judgment unit that performs image processing on the image, judges the quality of the appearance of the object under examination, and outputs a quality judgment result; The region where the illumination light is emitted is determined according to the state of the surface of the object to be inspected so that the imaging device detects either specular reflected light or diffuse reflected light.
2. The visual inspection device according to claim 1, wherein: The region where the illumination emits light is a region where a principal ray incident on a pixel of the imaging device intersects the illumination when reflected by specular reflection at the object to be inspected.
3. The visual inspection device according to claim 1 or 2, wherein: The illumination light emitting area is an area determined so that the imaging device detects specular reflection light but does not detect diffuse reflection light.
4. The visual inspection device according to claim 1, wherein: The region where the illumination emits light is a region where the main light rays incident on the pixels of the imaging device do not intersect with the illumination when specular reflection is performed at the object to be inspected.
5. The visual inspection device according to claim 1 or 4, wherein: The illumination light emitting area is an area determined so that the imaging device detects diffuse reflection light but does not detect specular reflection light.
6. The appearance inspection device according to any one of claims 1 to 5, wherein: The appearance inspection device further includes a shape information acquisition unit that acquires information related to the shape of the surface of the inspection object. The region where the illumination emits light is a region determined based on the information acquired by the shape information acquisition unit.
7. The appearance inspection device according to any one of claims 1 to 5, wherein: The appearance inspection device further includes a positional relationship information acquisition unit that acquires information related to the position of the object to be inspected. The region where the illumination emits light is a region determined based on the information acquired by the positional relationship information acquisition unit.
8. The appearance inspection device according to any one of claims 1 to 5, wherein: The appearance inspection device further includes a manufacturing tolerance information acquisition unit that acquires information related to the manufacturing tolerance of the inspection object. The region where the illumination emits light is a region determined based on the information acquired by the manufacturing tolerance information acquisition unit.
9. The appearance inspection device according to any one of claims 1 to 5, wherein: The appearance inspection device further includes an imaging device information acquisition unit that acquires information related to an optical system of the imaging device. The region where the illumination light is emitted is a region determined based on the information acquired by the imaging device information acquisition unit.
10. The appearance inspection device according to any one of claims 1 to 9, wherein: The area where the illumination is emitted is determined by ray tracing.
11. The appearance inspection device according to any one of claims 1 to 10, wherein: The lighting device has a light shielding material for shielding light from the lighting device, The light shielding material is provided in a region of the lighting device other than the light emitting region.
12. The appearance inspection device according to any one of claims 1 to 10, wherein: The lighting has a plurality of light emitting elements, The plurality of light emitting elements are controlled by the lighting control unit respectively. The illumination light emitting area is an area constituted by the light emitting elements that are currently lit among the plurality of light emitting elements.
13. The visual inspection device according to claim 12, wherein: The light emitting elements to be turned on are determined based on the image of the subject resulting from the turning on of the plurality of light emitting elements.
14. The appearance inspection device according to any one of claims 1 to 13, wherein: The appearance inspection device further includes a fixing member that fixes the positional relationship among the illumination, the imaging device, and the object to be inspected.
15. The appearance inspection device according to any one of claims 1 to 14, wherein: The appearance inspection device also has a darkroom that blocks external light. The illumination, the imaging device, and the subject are covered by the darkroom.
16. The appearance inspection device according to any one of claims 1 to 15, wherein: The lighting has a linear light source.
17. A method for inspecting the appearance of a surface of an object to be inspected, wherein: The appearance inspection method has the following steps: illuminating the subject by illumination; Taking an image of the subject by means of an imaging device; Acquiring an image of the subject; performing image processing on the image; Determining whether the appearance of the object under examination is good or not; as well as Output the good or bad judgment result, The region where the illumination light is emitted is determined according to the state of the surface of the object to be inspected so that the imaging device detects either specular reflected light or diffuse reflected light.
