Inspection method, recording medium, and inspection system
By considering the combination of the incident angle and reflection angle of the object and the reference object in the color inspection, the problem of insufficient color inspection accuracy under the influence of shape in the existing technology is solved, and higher color inspection accuracy is achieved.
Patent Information
- Application Number
- CN202080066161.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-27
- Filing Date
- 2020-08-28
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-08-28
AI Technical Summary
The existing technology fails to effectively consider the influence of the shape of the object during color inspection, resulting in insufficient color inspection accuracy.
The camera system captures the surface image of the object illuminated by the lighting system and compares it with the corresponding area of the reference object, taking into account the combination of incident angle and reflection angle to reduce the impact of shape differences on color inspection.
It improves the color inspection accuracy of the object surface and ensures the accuracy of color detection.
Smart Images

Figure CN114424046B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an inspection method, a program, and an inspection system. In particular, the present disclosure relates to an inspection method, a program, and an inspection system for inspecting the color of the surface of an object using an image. Background Art
[0002] Patent document 1 discloses a color inspection device. The color inspection device disclosed in Patent document 1 includes a camera, a processing device, and a lighting unit. The camera has three spectral sensitivities that are linearly transformed equivalent to the CIEXYZ color function. In addition, the camera captures an object to obtain image data, and sends the image data to the processing device. The image data has three spectral sensitivity values obtained according to the three spectral sensitivities. The processing device transforms the image data obtained by the camera into tristimulus values in the CIEXYZ color system to obtain coloring data. In addition, the processing device performs a calculation process to normalize the coloring data and transform it into xyz. The lighting unit illuminates a motor vehicle as an example of a measurement object. The color inspection device calculates a color distribution consistency index representing the overlap ratio of the two xyz chromaticity histogram distributions of the inspection object and the reference object to inspect the color.
[0003] Prior Art Literature
[0004] Patent Literature
[0005] Patent Document 1: Japanese Patent Application Publication No. 2015-155892 Summary of the invention
[0006] The appearance of the color of the inspection object (measurement object, object) can be affected by the shape of the inspection object. That is, the inspection object can have angle dependence on the reflection of light from the lighting unit. For example, even if the surface of the inspection object is painted with the same color, the inspection object appears to be different colors depending on the location. In Patent Document 1, the shape of the inspection object is not considered in the color inspection.
[0007] An object of the present invention is to provide an inspection method, a program, and an inspection system capable of improving the accuracy of inspection of the color of the surface of an object.
[0008] The inspection method of one aspect of the present disclosure includes an acquisition step and a comparison step. The acquisition step is a step of acquiring an object image of the surface of the object obtained by photographing the surface of the object irradiated by the lighting system by the camera system. The comparison step is a step of comparing the color of the target area of the object image with the color of the reference area. The reference area is an area of the reference image of the surface of the reference object that serves as a reference for the color of the object, and is an area corresponding to a combination of the incident angle of light from the lighting system and the reflection angle of light to the camera system in the target area.
[0009] A program according to one aspect of the present disclosure is a program for causing one or more processors to execute a testing method.
[0010] An inspection system of one aspect of the present disclosure includes an acquisition unit and a comparison unit. The acquisition unit acquires an object image of the surface of an object obtained by photographing the surface of the object irradiated by the lighting system by the camera system. The comparison unit compares the color of the target area of the object image with the color of the reference area. The reference area is an area of the reference image of the surface of the reference object that serves as a reference for the color of the object, and is an area corresponding to a combination of an incident angle of light from the lighting system and a reflection angle of light to the camera system in the target area.
[0011] According to the aspect of the present disclosure, there is an effect that the accuracy of the inspection of the color of the surface of the object can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a flowchart of an inspection method according to one embodiment.
[0013] Figure 2 is a block diagram of an inspection system for implementing the above inspection method.
[0014] Figure 3 It is an explanatory diagram of the positional relationship between the lighting system and the imaging system of the inspection system and the object.
[0015] Figure 4 It is an explanatory diagram of the positional relationship between the lighting system and the imaging system of the inspection system and the reference object.
[0016] Figure 5 FIG. 1 is a diagram showing an example of an image of a target object (target image) captured by the above-mentioned inspection system.
[0017] Figure 6 FIG. 1 is a diagram showing an example of an image of a reference object (reference image) captured by the inspection system.
[0018] Figure 7 This is a diagram for explaining a method for determining the normal direction of the surface of an object.
[0019] Figure 8 This is a graph showing the coincidence rates between a plurality of samples prepared as objects and a reference object.
[0020] Fig. 9 This is a graph showing the results of visual evaluation of a plurality of samples prepared as objects.
[0021] Fig.10 This is a graph showing the relationship between the agreement rate of a plurality of samples prepared as objects and the results of visual evaluation.
[0022] Fig.11 It is a graph showing a histogram of pixel values (R values) of each of the target region and the reference region.
[0023] Fig.12 It is a graph showing a histogram of pixel values (G values) of each of the target region and the reference region.
[0024] Fig.13 It is a graph showing a histogram of pixel values (B values) of each of the target region and the reference region.
[0025] Fig.14 This is a diagram showing an example of a heat map of a target image.
[0026] Fig.15 This is a diagram showing another example of a heat map of a target image.
[0027] Fig.16 This is a diagram showing another example of a heat map of a target image.
[0028] Fig.17 This is a diagram showing another example of a heat map of a target image.
[0029] Fig.18 This is a diagram showing an object image in which regions having the same combination of incident angle and reflection angle are differentiated by colors.
[0030] Fig.19 This is a diagram showing a reference image in which regions where the combination of the incident angle and the reflection angle matches are differentiated by color.
[0031] Fig. 20 FIG. 1 is a diagram showing an example of a target image including a target region determined to be unqualified.
[0032] Fig.21 FIG. 1 is a diagram showing an example of a target image in which a target area determined to be unqualified is emphasized. DETAILED DESCRIPTION
[0033] (1) Implementation Method
[0034] (1.1) Summary
[0035] Figure 1 is a flowchart showing an inspection method according to one embodiment. Figure 2 is an inspection system 1 for implementing an inspection method. The inspection method is Figure 3 The inspection method is a method for inspecting the surface of the object 100 shown in FIG. More specifically, the inspection method is a method for inspecting the color of the surface of the object 100. Figure 3 In order to simplify the illustration, a portion of the object 100 is shown.
[0036] The inspection method includes an acquisition step S11 and comparison steps S15 and S16.
[0037] like Figure 3 As shown, the acquisition step S11 is to acquire an object image P10 (see FIG. 1 ) of the surface of the object 100 obtained by photographing the surface of the object 100 illuminated by the lighting system 20 by the imaging system 30. Figure 5 The comparison steps S15 and S16 are performed on the focus area P101 (refer to Figure 5 ) is the same as the color of the reference area P201 (reference Figure 6 The reference area P201 is a reference image P20 (reference area) of the surface of the reference object 200 that serves as a reference for the color of the object 100. Figure 6 ) is the incident angle θt of the light L11 from the illumination system 20 and the reflection angle θt of the light L12 to the imaging system 30 in the area of interest P101. The area corresponding to the combination of .
[0038] In the inspection method, when comparing the color of the object 100 with the color of the reference object 200, the color is compared between the focus area P101 of the object 100 and the reference area P201 of the reference object 200. The reference area P201 is the area where the incident angle θt of the light from the lighting system 20 and the reflection angle θt of the light to the imaging system 30 are the same as those of the focus area P101. That is, in the inspection method, the color of the target object 100 and the reference object 200 are not simply compared. In the inspection method, the color of the focus area P101 is compared with the color of the reference area P201, and the reference area P201 corresponds to the incident angle θt and the reflection angle θt of the focus area P101. The combination of the incident angle θr and the reflection angle Combination of (refer to Figure 4 ). In this way, the colors of the area of interest P101 and the reference area P201 are compared with each other, taking the incident angle of the light from the lighting system 20 and the reflection angle of the light to the camera system 30 as key factors. Thus, the combination of the incident angle of the light from the lighting system 20 and the reflection angle of the light to the camera system 30 can compare the colors of the corresponding area of interest P101 and the reference area P201. Thus, the colors of the area of interest P101 and the reference area P201, whose optical properties (reflection properties) are consistent on the surface, can be compared. It can be considered that the optical properties of the surface reflect the shape of the surface. Therefore, when inspecting the color of the object 100, the influence of the difference in shape between the object 100 and the reference object 200 can be reduced. As a result, according to the inspection method of this embodiment, the accuracy of the inspection of the color of the surface of the object 100 can be improved.
[0039] (1.2) Details
[0040] Hereinafter, the inspection system 1 for implementing the inspection method of the present embodiment will be described in further detail with reference to the accompanying drawings. The inspection system 1 is a system for inspecting an object 100. The inspection system 1 has a function as a coloring inspection device. In the present embodiment, the inspection by the inspection system 1 is based on the color of the surface of the object 100.
[0041] The object 100 may also be an object having a surface. In the present embodiment, the surface of the object 100 includes a curved surface. As an example, the object 100 may be a motor vehicle. In particular, the surface of the object 100 is a part of the outer surface of the body of the motor vehicle. In addition, the object 100 is not limited to a motor vehicle. For example, the object 100 may be a mobile body other than a motor vehicle, or may not be a mobile body. Examples of mobile bodies include two-wheeled vehicles, trams, drones, airplanes, construction machinery, and ships. In addition, the object 100 may also be electrical equipment, tableware, containers, furniture, clothing, building materials, and the like. In short, the object 100 may be an object having a surface. In particular, if the object 100 is a painted object, the inspection system 1 of the present embodiment can be appropriately utilized.
[0042] like Figure 2 As shown in FIG. 1 , the inspection system 1 includes a determination system 10, a lighting system 20, and an imaging system 30. Figure 3 as well as Figure 4 In FIG. 1 , the lighting system 20 and the camera system 30 are shown in a deformed form.
[0043] The lighting system 20 is a system for irradiating light onto the surface of the object 100. The lighting system 20 includes one or more lamps for irradiating light onto the object 100. As an example, the lamp is an LED (Light Emitting Diode) lamp. In addition, the lamp radiates white light. In addition, in the lighting system 20, the number of lamps is not particularly limited, and the type of lamp may be a light source other than LED. In addition, the light emission color of the lamp is not limited to white. The light emission color of the lamp can be appropriately set in consideration of the color of the object 100 and the color that can be detected by the camera system 30. In addition, the wavelength of the light radiated by the lighting system 20 can be changed.
[0044] The imaging system 30 is a system for generating an image (digital image) of the surface of the object 100. In the present embodiment, the imaging system 30 captures the surface of the object 100 illuminated by the lighting system 20 to generate an image of the surface of the object 100. The imaging system 30 includes one or more cameras. The camera has one or more image sensors. In addition, the camera may also have one or more linear sensors.
[0045] like Figure 2 As shown, the determination system 10 includes an input / output unit 11, a storage unit 12, and a processing unit 13. The determination system 10 can be implemented by a computer system. The computer system may include one or more processors, one or more connectors, one or more communication devices, one or more memories, and the like.
[0046] The input / output unit 11 inputs and outputs information with the lighting system 20 and the imaging system 30. In the present embodiment, the input / output unit 11 is communicatively connected to the lighting system 20 and the imaging system 30. The input / output unit 11 includes one or more input / output devices and uses one or more input / output interfaces.
[0047] The storage unit 12 is used to store information used by the processing unit 13. The storage unit 12 includes one or more storage devices. The storage device is, for example, a RAM (Random Access Memory) or an EEPROM (Electrically Erasable Programmable Read Only Memory).
[0048] The storage unit 12 stores reference data. The reference data is a reference object 200 (see Figure 4 ) related data. In this embodiment, the surface of the object 100 is painted in a single color, and the surface of the reference object 200 is painted in a single color. As an example, the reference data can be a reference image P20 (refer to Figure 6 ) is generated. The imaging conditions may include the relative positional relationship between the reference object 200, the lighting system 20, and the imaging system 30 (i.e., information about the positional relationship between the photographic object, the lighting, and the camera). The reference data includes the incident angle θr, the reflection angle θr, and the reflection angle θr for each pixel of the reference object 200. and pixel values. Figure 4 As shown in FIG. 1 , the incident angle θr is the incident angle of the light L21 from the illumination system 20 to the area on the surface of the reference object 200 corresponding to the pixel. More specifically, the incident angle θr is the angle between the direction of the normal line N21 in the area on the surface of the reference object 200 corresponding to the pixel in the incident surface 210 and the light L21 from the illumination system 20. Figure 4 As shown, the reflection angle is the reflection angle of the light L22 from the area on the surface of the reference object 200 corresponding to the pixel to the imaging system 30. More specifically, the reflection angle The angle is the angle between the direction of the normal line N21 in the area of the surface of the reference object 200 corresponding to the pixel in the incident plane 210 and the light L22 toward the imaging system 30. As an example, the incident plane 210 includes the center of the illumination system 20 and the center of the imaging system 30, and can be defined as a plane orthogonal to the surface of the reference object 200. Figure 6 The reference image P20 is obtained, the center of the illumination system 20 and the center of the imaging system 30 are along the Y axis, and the incident plane 210 is a plane orthogonal to the X axis. In this embodiment, since the surface of the reference object 200 is flat, the normal line N21 in each pixel can be considered to be perpendicular to the surface. According to the relative positional relationship between the reference object 200, the illumination system 20 and the imaging system 30, the incident angle θr and the reflection angle θr are obtained. The pixel value may include values of three colors. The values of the three colors may be an R value corresponding to red, a G value corresponding to green, and a B value corresponding to blue. Thus, in this embodiment, the pixel value is represented by the RGB color system.
[0049] An example of the reference data is shown in Table 1 below. In Table 1, X and Y represent the coordinates of the pixel. In the following, a pixel whose X value is a and whose Y value is b is sometimes described as pixel (a, b). In addition, as an example, the reference image P20 has a size of 1024×1024, but Figure 6 For simplicity of illustration, the size is set to 16×16.
[0050] [Table 1]
[0051]
[0052] The processing unit 13 can be implemented, for example, by one or more processors (microprocessors). That is, one or more processors execute one or more programs (computer programs) stored in one or more memories, thereby functioning as the processing unit 13. One or more programs may be recorded in one or more memories in advance, or may be provided through an electrical communication line such as the Internet or recorded in a non-temporary recording medium such as a memory card.
[0053] like Figure 2 As shown, the processing unit 13 includes an acquisition unit F11, a determination unit F12, a comparison unit F13, a judgment unit 14, and a presentation unit 15. The acquisition unit F11, the determination unit F12, the comparison unit F13, the judgment unit F14, and the presentation unit F15 do not represent actual structures but represent functions implemented by the processing unit 13.
[0054] The acquisition unit F11 executes an acquisition step of acquiring an object image P10 (i.e., the surface of the object 100 illuminated by the lighting system 20) of the surface of the object 100 obtained by imaging the surface of the object 100 by the imaging system 30. Figure 5 ).
[0055] In this embodiment, the acquisition unit F11 acquires an image of the surface of the object 100 from the imaging system 30. That is, the acquisition unit F11 receives the image from the imaging system 30 via the input / output unit 11. The image acquired by the acquisition unit F11 from the imaging system 30 is determined by the imaging conditions of the imaging system 30. The imaging conditions may include the relative positional relationship between the object 100, the lighting system 20, and the imaging system 30 (that is, information on the positional relationship between the photographic object, the lighting, and the camera).
[0056] The decision unit F12 determines the incident angle θt and the reflection angle θt in the target area P101. The determination step is to calculate the incident angle θt and the reflection angle in the target area P101 using one or more images of the object 100. More specifically, the decision unit F12 generates object data used for inspecting the color of the object 100 based on the object image P10 acquired by the acquisition unit F11. The object data includes the incident angle θt, the reflection angle φt, and the pixel value for each pixel of the object 100. Figure 3 As shown in FIG. 1 , the incident angle θt is the incident angle of the light L11 from the illumination system 20 to the area on the surface of the object 100 corresponding to the pixel. More specifically, the incident angle θt is the angle between the direction of the normal line N11 in the area on the surface of the object 100 corresponding to the pixel in the incident surface 110 and the light L11 from the illumination system 20. Figure 3 As shown in FIG. 1 , the reflection angle φt is the reflection angle of the light L12 from the area on the surface of the object 100 corresponding to the pixel toward the imaging system 30. More specifically, the reflection angle The angle is the angle between the direction of the normal line N11 in the region of the surface of the object 100 corresponding to the pixel in the incident plane 110 and the light L12 toward the imaging system 30. As an example, the incident plane 110 includes the center of the lighting system 20 and the center of the imaging system 30, and can be defined as a plane orthogonal to the surface of the object 100. Figure 5 In the object image P10, the center of the lighting system 20 and the center of the imaging system 30 are along the Y axis, and the incident plane 110 is a plane orthogonal to the X axis. The decision unit F12 determines the incident angle θt and the reflection angle The normal line N11 of each pixel of the target image P10 is used. The determination unit F12 has a function of obtaining the normal line N11.
[0057] The normal line N11 can be obtained based on the shape of the surface of the object 100. Figure 3As shown in FIG. 1 , the surface of the object 100 is a curved surface, and the direction of the normal line N11 is different at different locations on the surface of the object 100. In this embodiment, triangulation is used to estimate the shape of the surface of the object 100. For example, Figure 7 As shown in FIG. 1 , the distance d to the measurement target portion P1 on the surface of the object 100 is obtained by using triangulation. Figure 7 In , 1 is the distance of the straight line connecting the photographic points C1 and C2 in the camera system 30. α is the angle formed by the straight line connecting the photographic point C1 and the measurement object part P1 and the straight line connecting the photographic points C1 and C2. β is the angle formed by the straight line connecting the photographic point C2 and the measurement object part P1 and the straight line connecting the photographic points C1 and C2. In this case, d is represented by l / (1 / tanα+1 / tanβ). Therefore, if 1, α, and β are determined, d can be calculated. Then, if the distance d is calculated with each part of the surface of the object 100 as the measurement object part P1, the shape of the surface of the object 100 can be obtained. If the shape of the surface of the object 100 can be obtained, the normal N11 of each part of the surface of the object 100 can be calculated. Therefore, the determination unit F12 can obtain the normal N11 by triangulation.
[0058] Here, the decision unit F12 sets the brightest area in the target image P10 as the reference area P102 (see Figure 5 ). The reference area P102 is considered to be an area where regular reflection occurs, and the incident angle θt can be considered to be equal to the reflection angle φt. Therefore, the determination unit F12 uses the normal line N11 in the reference area P102 as a reference, refers to the shape of the surface of the object 100, and determines the normal line N11 for each pixel of the object image P10.
[0059] In triangulation, two imaging systems 30 may simultaneously image the object 100 at the imaging points C1 and C2 , or one imaging system 30 may sequentially image the object 100 at the imaging points C1 and C2 .
[0060] Then, the decision unit F12 calculates the incident angle θt and the reflection angle φt based on the relative positional relationship between the object 100, the lighting system 20, and the imaging system 30, and the direction of the normal line N11. In addition, the pixel value may include three-color values as in the reference data. The three-color values may be an R value corresponding to red, a G value corresponding to green, and a B value corresponding to blue.
[0061] An example of the object data is shown in Table 2 below. In Table 2, X and Y represent the coordinates of the pixel. In the following, a pixel whose X value is a and whose Y value is b is sometimes described as pixel (a, b). In addition, as an example, the object image P10 is 1024×1024 in size, but Figure 5For simplicity of illustration, the size is set to 16×16.
[0062] [Table 2]
[0063]
[0064] The comparison unit F13 performs a comparison step of comparing the color of the focus area P101 of the target image P10 with the color of the reference area P201. The reference area P201 is an area of the base image P20, i.e., the focus area P101, where the incident angle θt of the light L11 from the lighting system 20 and the reflection angle θt of the light L12 to the imaging system 30 are the same as those of the reference area P20. The area corresponding to the combination of .
[0065] In this embodiment, the focus area P101 is a single pixel. The comparison unit F13 uses the pixels (target pixels) corresponding to the object 100 among the pixels of the target image P10 as the focus area P101. That is, even if it is a pixel of the target image P10, the comparison unit F13 does not compare the colors of pixels that have nothing to do with the object 100. In the example of Table 2, the pixel (1, 1) and the pixel (1024, 1024) do not correspond to the object 100, and the incident angle θt and the reflection angle θt are not obtained. Therefore, the pixel (1, 1) and the pixel (1024, 1024) are not the target pixels. In this way, the comparison unit F13 compares the colors of the target image P10 and the reference image P20 for each target pixel of the target image P10. Here, the color comparison uses the pixel value.
[0066] When comparing colors, the comparison unit F13 determines a reference region P201 to be compared with the color of the attention region P101. The reference region P201 is a region in the base image P20 that has the same incident angle θt and reflection angle as the attention region P101. In this embodiment, the reference area P201 is an area of the reference image P20 whose combination of incident angle and reflection angle is consistent with the focus area P101. For example, in Table 2, when the pixel (500, 321) is the focus area P101, the incident angle θt and the reflection angle The combination of is (15, 75). In this case, the reference area P201 is the incident angle θr and the reflection angle The combination of becomes the pixel (15, 75). In Table 1, in the pixel (50, 141), due to the incident angle θr and the reflection angle The combination of is (15, 75), so the pixel (50, 141) is selected as the reference area P201. Then, the comparison unit F13 compares the pixel values (R value, G value, B value) in the focus area P101 and the reference area P201, and obtains the error of the pixel value as a result of the comparison. As an example, the comparison unit F13 compares the pixel value (224, 77, 32) of the focus area P101, that is, the pixel (500, 321) and the pixel value (225, 75, 35) of the pixel (50, 141) as the reference area P201. In this case, the error of the pixel value as a result of the comparison is represented by the value (-1, 2, -3) obtained by subtracting the pixel value (225, 75, 35) of the reference area P201 from the pixel value (224, 77, 32) of the focus area P101.
[0067] The determination unit F14 performs a color determination process. The color determination process is a process for determining the color of the surface of the object 100. In more detail, the color determination process is a process for determining the color of the surface of the object 100 based on the result of the comparison in the comparison unit F13. In addition, the determination of the color of the surface of the object 100 is performed in units of the focus area P101. If, according to the comparison result of the comparison unit F13, the consistency rate (degree of consistency) between the color of the focus area P101 and the color of the reference area P201 is greater than a given value, the determination unit F14 sets the color of the focus area P101 to be qualified. On the other hand, if the degree of consistency between the color of the focus area P101 and the color of the reference area P201 is less than a given value, the determination unit F14 sets the color of the focus area P101 to be unqualified.
[0068] As an example, the given value can be determined by visual evaluation. The method for determining the given value using visual evaluation is briefly described. For example, as the object 100, a plurality of samples d1 to dn with different coating conditions are prepared. In addition, n is an arbitrary integer greater than 2. As an example, the coating condition can be set so that the color becomes lighter in the order of samples d1 to dn.
[0069] For each of the plurality of samples d1 to dn, a region having the same combination of incident angle and reflection angle is compared with the reference object 200 to determine the coincidence rate. Figure 8 It represents the relationship between samples d1~dn and the consistency rate. Figure 8 The highest agreement rate is found in sample dk. Then, for each of samples d1 to dn, multiple people (for example, 30 people) conduct a visual evaluation (visual evaluation) to find the accuracy rate. In the visual evaluation, one of samples d1 to dn is compared with sample dk. The accuracy rate is the ratio of the number of people who selected sample dk to the number of people who performed the visual evaluation. Fig. 9Indicates the result of visual evaluation. For samples with an accuracy of 1.0, it can be clearly set as unqualified. For samples with an accuracy of 0.5, since the accuracy is the same as the random value, it can be set as qualified. Then, for samples d2~dk-2, dk+2~dn-1 with an accuracy between 0.5 and 1.0, it is further determined which sample will be set as the allowable range.
[0070] For example, Fig.10 As shown, for samples dk+2 to dn-1, a visual evaluation is performed on sample dl with a large inclination (slope) of the consistency rate among samples dk+2 to dn-1 and the qualified sample dk+2. Here, if the accuracy is 1.0, sample dl is set as unqualified. Then, a visual evaluation is performed on sample dl-1 with a higher consistency rate following sample dl and sample dl. Moreover, if the accuracy is 1.0, sample dl-1 is set as unqualified. Then, a visual evaluation is performed on sample dl-2 with a higher consistency rate following sample dl-1 and sample dl-1. If the accuracy is 0.5, sample dl-1 is set as a sample at the limit of the allowable range. In this way, the visual evaluation is repeated until the accuracy becomes 0.5, and the sample when the accuracy becomes 0.5 is set as a sample at the limit of the allowable range. Among them, if sample dk+2 is reached before the accuracy becomes 0.5, sample dk+2 is set as a sample at the limit of the allowable range and the visual evaluation is ended.
[0071] On the other hand, in the visual evaluation of sample dl and sample dk+2 that has become qualified, if the accuracy is 0.5, sample dl is set to be qualified. Then, a visual evaluation of sample dl+1 and sample dl with a low consistency rate following sample dl is performed. And, if the accuracy is 0.5, sample dl+1 is set to be qualified. Then, a visual evaluation of sample dl+2 and sample dl+1 with a low consistency rate following sample dl+1 is performed. If the accuracy is 1.0, sample dl+1 is set as a sample at the limit of the allowable range. In this way, the visual evaluation is repeated until the accuracy becomes 1.0, and the sample when the accuracy becomes 1.0 is set as a sample at the limit of the allowable range. Among them, if sample dn-1 is reached before the accuracy becomes 1.0, the previous sample dn-2 of sample dn-1 is set as a sample at the limit of the allowable range and the visual evaluation is ended.
[0072] Moreover, for samples d2 to dk-2, samples of the limit of the allowable range can also be determined in the same manner. Then, based on the consistency rate of the samples of the limit of the allowable range selected from samples d2 to dk-2 and the consistency rate of the samples of the limit of the allowable range selected from samples dk+2 to dn-1, a given value is determined. For example, the larger one, the smaller one, or the average value of the consistency rate of the samples of the limit of the allowable range selected from samples d2 to dk-2 and the consistency rate of the samples of the limit of the allowable range selected from samples dk+2 to dn-1 can be used as the given value.
[0073] The prompting unit F15 performs a result prompting step of providing a prompt based on the comparison result in the comparison step. That is, the prompting unit F15 provides a prompt based on the comparison result in the comparison unit F13. The prompting based on the comparison result may also include providing a prompt of the determination result of the determination unit F14 using the comparison result. Therefore, the prompting unit F15 can provide a prompt of the determination result of the determination unit F14. In this embodiment, the prompting unit F15 outputs the determination result of the determination unit F14 to an external device through the input / output unit 11. The external device can provide a prompt of the determination result of the determination unit F14, that is, the inspection result in the inspection system 1.
[0074] (1.3) Action
[0075] Next, refer to Figure 1 The flowchart of FIG. 1 briefly describes the inspection method implemented in the inspection system 1 described above. In the inspection system 1, the acquisition unit F11 acquires the object image P10 from the camera system 30 (S11). Next, the determination unit F12 obtains the normal line N11 (S12) for each focus area P101 of the object image P10, and further obtains the incident angle θt and the reflection angle θt in the focus area P101. (S13, S14). Next, the comparison unit F13 determines a reference area P201 to be compared with the color of the focus area P101 (S15). Here, the comparison unit F13 compares the incident angle θt and the reflection angle θt in the reference image P20 with the focus area P101. The area corresponding to the combination of is determined as the reference area P201. Then, the comparison unit F13 compares the pixel values (R value, G value, B value) in the focus area P101 and the reference area P201, and obtains the error of the pixel values as the comparison result (S16). Based on the comparison result of the comparison unit F13, the determination unit F14 determines the color of the focus area P101, and the presentation unit F15 presents the determination result of the determination unit F14 (S17).
[0076] (1.4) Summary
[0077] The inspection system 1 described above includes an acquisition unit F11 and a comparison unit F13. The acquisition unit F11 acquires an object image P10 of the surface of the object 100 obtained by photographing the surface of the object 100 illuminated by the lighting system 20 by the camera system 30. The comparison unit F13 compares the color of the focus area P101 of the object image P10 with the color of the reference area P201. The reference area P201 is an area of the reference image P20 of the surface of the reference object 200 that serves as a reference for the color of the object 100, and is an incident angle θt of the light L11 from the lighting system 20 and a reflection angle θt of the light L12 to the camera system 30 in the focus area P101. Therefore, according to the inspection system 1, the accuracy of the inspection of the color of the surface of the object 100 can be improved.
[0078] In other words, it can be said that the inspection system 1 performs the following method (inspection method). The inspection method includes an acquisition step S11 and comparison steps S15 and S16. The acquisition step S11 is a step of acquiring an object image P10 of the surface of the object 100 obtained by photographing the surface of the object 100 illuminated by the lighting system 20 by the camera system 30. The comparison steps S15 and S16 are steps of comparing the color of the focus area P101 of the object image P10 with the color of the reference area P201. The reference area P201 is an area of the reference image P20 of the surface of the reference object 200 that serves as a reference for the color of the object 100, and is an incident angle θt of the light L11 from the lighting system 20 in the focus area P101 and a reflection angle θt of the light L12 to the camera system 30. Therefore, according to the inspection method, similarly to the inspection system 1, the accuracy of the inspection of the color of the surface of the object 100 can be improved.
[0079] The inspection method is implemented by executing a program (computer program) by one or more processors. The program is a program for causing one or more processors to execute the inspection method. According to such a program, the accuracy of the inspection of the color of the surface of the object 100 can be improved, similarly to the inspection method. Moreover, the program can be provided by a storage medium. The storage medium is a computer-readable non-temporary storage medium, which stores the above-mentioned program. According to such a storage medium, the accuracy of the inspection of the color of the surface of the object 100 can be improved, similarly to the inspection method.
[0080] (2) Modification
[0081] The embodiments of the present disclosure are not limited to the above-described embodiments. The above-described embodiments can be variously modified according to design, etc., as long as the purpose of the present disclosure can be achieved. Modifications of the above-described embodiments are listed below.
[0082] In a modified example, the region of interest P101 may not be a single pixel but may be composed of a plurality of continuous pixels. In this case, the influence caused by noise can be reduced. For example, the region of interest P101 may be an m×n quadrilateral region. m and n are both integers, and at least one of m and n is greater than 2. In this case, the incident angle θt and the reflection angle θt in the region of interest P101 are The pixel value may be the incident angle θt, the reflection angle θt, and the reflection angle θt of a plurality of consecutive pixels constituting the region of interest P101. and a representative value of each pixel value. The representative value can be appropriately selected from the maximum value, minimum value, average value, mode value, etc.
[0083] In a modified example, the color system of the color (pixel value) of the attention area P101 is not limited to the RGB color system. Examples of the color system include the XYZ color system, the xyY color system, and the L * u * v * Color system, L * a * b * Colorimetric system such as CIE colorimetric system. As an example, the camera system 30 can also generate an image whose pixel values are not represented by the RGB colorimetric system but by the XYZ colorimetric system. Alternatively, the colorimetric system can be transformed through calculation processing. For example, an image whose pixel values are represented by the RGB colorimetric system can be converted into an image whose pixel values are represented by the XYZ colorimetric system. In the calculation processing in this case, a model formula, a lookup table, etc. can be used. As a result, the pixel values of the object image P10 can be represented by the desired colorimetric system.
[0084] In a modified example, a colorimeter may also be used. A colorimeter can only measure the color of a relatively narrow range (e.g., a range less than 10 mm in radius) at a time, and the area that can be measured at one time is relatively small. In the case where the object 100 is a large object such as a vehicle, it is not practical to use a colorimeter to measure the color of the entire surface of the object. Therefore, it is considered to use a colorimeter and a camera system 30 at the same time to measure the color of the entire surface of the object. In this case, first, the color of a specific part of the object 100 is measured using a colorimeter to obtain a color measurement value (e.g., L * a * b * Next, the camera system 30 is used to capture a specific portion of the object 100 to obtain an image, which is used as the reference image P20. The pixel values of the reference image P20 are directly associated with the measured values of the colorimeter. Then, the camera system 30 is used to capture the entire surface of the object 100 in sequence, and the obtained image is used as the object image P10. Based on the reference image P20, the incident angle θr, and the reflection angle θr, the reference image P20 is obtained. The color inspection is performed by comparing the combination of the color difference and the color. Here, for the area where the color difference is within the allowable range, if it is qualified based on the inspection of the colorimeter, it can also be considered qualified. That is, the pixel value of the object image P10 is not directly associated with the measured value of the colorimeter, but is compared with the reference image P20 that is directly associated with the measured value of the colorimeter. Therefore, it can be considered that the pixel value of the object image P10 is indirectly evaluated by the colorimeter. Therefore, by using the colorimeter and the camera system 30 at the same time, it is possible to perform an inspection equivalent to the color inspection using only the colorimeter, and it is easy to expand the part (area) of the inspection object 100, and the inspection process can be shortened. In particular, the above-mentioned method of using the colorimeter and the camera system 30 at the same time is particularly effective in the case where it is required to use a specified colorimeter for color evaluation in the color inspection.
[0085] In the above embodiment, the comparison unit F13 uses the incident angle θr and the reflection angle The combination of the incident angle θt and the reflection angle in the area of interest P101 The reference image P20 includes an area of the reference image P20 that matches the combination of θt and θt as the reference area P201. However, sometimes the reference image P20 does not include an area having the same incident angle θt and reflection angle as the area of interest P101. The combination of consistent incident angle θr and reflection angle Therefore, the reference data can also be generated from a plurality of reference images P20 with different shooting conditions. Thus, it is possible to generate a region that necessarily includes the incident angle θt and the reflection angle The combination of consistent incident angle θr and reflection angle The combined benchmark data.
[0086] In a modified example, the comparison unit F13 can use the angles of incidence θr within the first angle range including the angle of incidence θt in the region of interest P101, the angle of reflection To include the reflection angle As a reference area P201, the area of the reference image P20 within the second angle range including the first angle range may be an angle range centered on the incident angle θt in the area of interest P101. For example, the first angle range may be a range of θt-dl to θt+dl. d1 may be about 1 to 10°. In addition, the second angle range may be an angle range centered on the reflection angle θt in the area of interest P101. For example, the second angle range can be The range of d2 can be about 1 to 10°.
[0087] However, the object image P10 can include the incident angle θt and the reflection angle In addition, the reference image P20 can also include the incident angle θr and the reflection angle That is, for the incident angle θt and the reflection angle Therefore, the comparison unit F13 may compare the colors of the object 100 and the reference object 200 using a statistical method.
[0088] As an example, the comparison unit F13 may compare the colors of the object 100 and the reference object 200 using a histogram. The comparison steps S15 and S16 performed by the comparison unit F13 may compare the color histograms of the plurality of focus areas P101 corresponding to a specific combination of the incident angle and the reflection angle with the color histograms of the plurality of reference areas P201 of the reference image corresponding to the specific combination. Here, in the specific combination, the incident angles θt and θr are angles within the first angle range, and the reflection angles are within the first angle range. The first angle range and the second angle range may be appropriately set.
[0089] Here, the pixel value includes R value, G value and B value. Therefore, the comparison unit F13 creates histograms of the focus area P101 and the reference area P201 for the R value, G value and B value, respectively. For example, Fig.11 Indicating the histograms of R values, G11 indicates the histogram of the focus region P101 , and G12 indicates the histogram of the reference region P201 . Fig.12 The histograms of G values are shown. G21 shows the histogram of the focus region P101, and G22 shows the histogram of the reference region P201. Fig.13 The comparison unit F13 can compare the histogram of the focus area P101 and the histogram of the reference area P201 with respect to the R value, the G value, and the B value, and evaluate the consistency rate. The determination unit F14 can inspect the color of the object 100 and the reference object 200 based on the consistency rate of the histograms of the R value, the G value, and the B value.
[0090] Alternatively, the comparison unit F13 may also use a thermal map to compare the colors of the object 100 and the reference object 200. As an example, the comparison steps S15 and S16 performed by the comparison unit F13 respectively produce a thermal map with respect to the incident angle and the pixel value, and a thermal map with respect to the reflection angle and the pixel value for the object image P10 and the reference image P20. In addition, the pixel value includes an R value, a G value, and a B value. Therefore, for the incident angle and the reflection angle, a thermal map corresponding to the R value, the G value, and the B value is produced respectively. That is, 6 types of thermal maps are produced from the object image P10 and the reference image P20, respectively. For example, Fig.14 It is a heat map of the target image P10, and corresponds to the incident angle θt and the pixel value (R value). Fig.15 is the heat map of the object image P10, and the reflection angle Corresponds to the pixel value (R value). Fig.16 It is a heat map of the reference image P20, and corresponds to the incident angle θr and the pixel value (R value). Fig.17 is the heat map of the reference image P20, and the reflection angle The comparison unit F13 can compare the thermal map of the target image P10 with the thermal map of the reference image P20 to evaluate the consistency rate. The determination unit F14 can inspect the colors of the target object 100 and the reference object 200 based on the consistency rate between the thermal map of the target image P10 and the thermal map of the reference image P20.
[0091] In a modified example, the prompt unit F15 may also perform an image prompting step of displaying the same combination of incident angle and reflection angle in the same manner in the object image and the reference image. Here, examples of the same manner include the same color, the same shadow, the same emphasis method, etc. As an example, the prompt unit F15 may display the same combination of incident angle and reflection angle in the object image and the reference image in the same color. That is, the prompt unit F15 may display the area with the same combination of incident angle and reflection angle in the object image and the reference image in different colors. For example, Fig.18 represents the object image P11, Fig.19Represents the reference image P21. Area P111 of the object image P11 and area P211 of the reference image P21 are the same color, indicating that the combination of the incident angle and the reflection angle is the same. In addition, area P112 of the object image P11 and area P212 of the reference image P21 are the same color, indicating that the combination of the incident angle and the reflection angle is the same. In addition, area P113 of the object image P11 and area P213 of the reference image P21 are the same color, indicating that the combination of the incident angle and the reflection angle is the same. In addition, area P114 of the object image P11 and area P214 of the reference image P21 are the same color, indicating that the combination of the incident angle and the reflection angle is the same. Therefore, the areas that appear to be the same color in the object image P11 and the reference image P21 can be displayed in an easily understandable manner.
[0092] In a modified example, the prompting unit F15 may also perform a result prompting step based on the comparison result of the comparison unit F13 (the comparison result in the comparison step). As an example, the prompting unit F15 may also perform a prompting step for clearly distinguishing the result of the comparison by the comparison unit F13, the qualified interest area determined by the determination unit F14, and the unqualified interest area. Fig. 20 In the object image P12 shown in FIG. 1 , the attention area included in the area P121 is determined to be unqualified, and the attention area not included in the area P121 is determined to be qualified. Fig.21 As shown, the prompting unit F15 may prompt the object image P13 that distinguishes the unqualified attention area from the qualified attention area. Fig.21 In the example, the region P131 corresponds to the region P121 of the object image P12, and the region of interest included in the region P131 and the region of interest not included in the region P131 are represented by different colors. In addition, the region of interest not included in the region P131 is different from the object image P12, and all are represented by the same color. By the prompt of the prompt unit F15, the region of interest determined to be unqualified (region of interest with abnormality) in the object image P12 can be easily understood.
[0093] In a modified example, the inspection system 1 may not include the determination unit F12. For example, when shape data related to the shape of the object 100 already exists, the normal N11 can be obtained based on the shape data. CAD data can be cited as an example of shape data. That is, in this case, the incident angle θt and the reflection angle θt in the area of interest P101 are predetermined. Therefore, according to this method, the incident angle θt and the reflection angle in the target area P101 can be omitted. Even without the determination unit F12, the comparison unit F13 can obtain the incident angle θt and the reflection angle Therefore, the structure of the inspection system 1 can be simplified.
[0094] In a modified example, the input-output unit 11 may include an image display device. In this case, the prompt unit F15 may display the comparison result of the comparison unit F13 and the determination result of the determination unit F14 on the image display device of the input-output unit 11. In addition, the input-output unit 11 may include a sound output device. In this case, the prompt unit F15 may output the comparison result of the comparison unit F13 and the determination result of the determination unit F14 from the sound output device of the input-output unit 11.
[0095] In one variation, the wavelength of the light emitted by the illumination system 20 can be changed. This can be achieved by using a light source or a color filter that emits different colors. In short, in the inspection system 1, at least one of the wavelength of the light emitted by the illumination system 20 and the wavelength of the light detected by the imaging system 30 can be changed.
[0096] In a modified example, the inspection system 1 may include a plurality of imaging systems 30. In this case, it is preferable to perform color correction between the plurality of imaging systems 30. That is, in different imaging systems 30, due to individual differences in cameras, pixel values may be different even for the same color. Therefore, when using a plurality of imaging systems 30, it is sufficient to photograph a color chart as a reference together with the object 100, and perform color correction between the plurality of imaging systems 30 based on the pixel values of the pixels corresponding to the color chart.
[0097] In a modified example, the inspection system 1 (determination system 10) may also be composed of multiple computers. For example, the functions of the inspection system 1 (determination system 10) (particularly the acquisition unit F11, the determination unit F12, the comparison unit F13, the determination unit F14, and the presentation unit F15) may also be distributed in multiple devices. Furthermore, at least part of the functions of the inspection system 1 (determination system 10) may also be implemented, for example, through the cloud (cloud computing).
[0098] The execution subject of the inspection system 1 (determination system 10) described above includes a computer system. The computer system has a processor and a memory as hardware. The function of the execution subject of the inspection system 1 (determination system 10) in the present disclosure is realized by executing the program recorded in the memory of the computer system by the processor. The program can be pre-recorded in the memory of the computer system or provided through an electrical communication line. In addition, the program can also be recorded in a non-temporary recording medium such as a memory card, an optical disk, a hard disk drive, etc. that can be read by the computer system. The processor of the computer system is composed of one to multiple electronic circuits including a semiconductor integrated circuit (IC) or a large-scale integrated circuit (LSI). A reconfigurable logic device that can be programmed after the manufacture of the LSI and can reconstruct the bonding relationship within the LSI or the circuit division structure within the LSI can also be used for the same purpose. Multiple electronic circuits can be integrated into one chip or distributed in multiple chips. Multiple chips can be integrated in one device or distributed in multiple devices.
[0099] (3) Method
[0100] As is apparent from the above-described embodiments and modifications, the present disclosure includes the following aspects. In the following, in order to clearly indicate the corresponding relationship with the embodiments, reference numerals are added in parentheses.
[0101] The first method is an inspection method, comprising an acquisition step (S11) and a comparison step (S15, S16). The acquisition step (S11) is a step of acquiring an object image (P10) of the surface of the object (100) obtained by photographing the surface of the object (100) illuminated by the lighting system (20) by the camera system (30). The comparison step (S15, S16) is a step of comparing the color of the focus area (P101) of the object image (P10, P11, P12, P13) with the color of the reference area (P201). The reference area (P201) is an area of a reference image (P20, P21) of the surface of a reference object (200) that serves as a reference for the color of the object (100), and is an angle of incidence (θt) of light (L11) from the lighting system (20) in the focus area (P101) and a reflection angle of light (L12) to the camera system (30). According to this method, the accuracy of the color inspection of the surface of the object (100) can be improved.
[0102] The second aspect is an inspection method based on the first aspect. In the second aspect, the object image (P10) includes a plurality of regions of interest (P101). According to this aspect, the accuracy of the inspection of the color of the surface of the object (100) can be improved.
[0103] The third aspect is an inspection method based on the first or second aspect. In the third aspect, the region of interest (P101) is composed of a single pixel or a plurality of continuous pixels. According to this aspect, the accuracy of the inspection of the color of the surface of the object (100) can be improved.
[0104] A fourth aspect is an inspection method based on any one of the first to third aspects. In the fourth aspect, in the comparison step (S15, S16), a color histogram of a plurality of focus areas (P101) corresponding to a specific combination of incident angle and reflection angle is compared with a color histogram of a plurality of reference areas (P201) of a reference image (P20, P21) corresponding to the specific combination. According to this aspect, the accuracy of the color inspection of the surface of the object (100) can be improved.
[0105] The fifth aspect is an inspection method based on the fourth aspect. In the fifth aspect, in a specific combination, the incident angle is an angle within the first angle range, and the reflection angle is an angle within the second angle range. According to this aspect, the accuracy of the inspection of the color of the surface of the object (100) can be improved.
[0106] The sixth mode is an inspection method based on the fourth or fifth mode. In the sixth mode, the plurality of regions of interest (P101) include a plurality of regions of interest (P101) having the same combination of incident angle and reflection angle. The plurality of reference regions (P201) include a plurality of reference regions (P201) having the same combination of incident angle and reflection angle. According to this mode, the accuracy of the inspection of the color of the surface of the object (100) can be improved.
[0107] A seventh aspect is an inspection method based on any one of the first to sixth aspects. In the seventh aspect, the reference area (P201) is a region where the incident angle (θr) of the light (L21) from the lighting system (20) in the reference area (P201) is within a first angle range including the incident angle (θt) of the light (L11) from the lighting system (20) in the region of interest (P101). The reflection angle of the light (L22) from the lighting system (20) in the reference area (P201) is The reflection angle of the light (L12) from the illumination system (20) in the area including the area of interest (P101) According to this method, the accuracy of color inspection of the surface of the object (100) can be improved.
[0108] The eighth aspect is an inspection method according to any one of the first to seventh aspects. In the eighth aspect, the inspection method further includes determining an incident angle (θt) and a reflection angle in the region of interest (P101). According to this method, the accuracy of the inspection of the color of the surface of the object (100) can be improved.
[0109] The ninth aspect is an inspection method based on the eighth aspect. In the ninth aspect, the determination step (S12, S13, S14) uses one or more images of the object (100) to calculate the incident angle (θt) and the reflection angle in the target area (P101). According to this aspect, the accuracy of inspecting the color of the surface of the object (100) can be improved.
[0110] The tenth aspect is an inspection method based on the eighth or ninth aspect. In the tenth aspect, the determination step (S12, S13, S14) sets the brightest area in the object image (P10) as the incident angle (θt) and the reflection angle (θt). According to this method, the incident angle (θt) and the reflection angle can be equal. The improvement of accuracy.
[0111] The eleventh mode is an inspection method based on the tenth mode. In the eleventh mode, the inspection method further includes an image prompting step (S17) of displaying, in the same manner, an area having the same combination of incident angle and reflection angle in the target image (P11) and the reference image (P21). According to this mode, an area having the same appearance of color in the target image (P11) and the reference image (P21) can be displayed in an easily understandable manner.
[0112] The twelfth mode is an inspection method based on any one of the first to eleventh modes. In the twelfth mode, the inspection method further includes a result presentation step (S17) of presenting a presentation based on the comparison result in the comparison step (S15, S16). According to this mode, a presentation based on the comparison result in the comparison step (S15, S16) can be presented.
[0113] A thirteenth aspect is an inspection method according to any one of the first to seventh aspects. In the thirteenth aspect, an incident angle (θt) and a reflection angle in a region of interest (P101) are predetermined. According to this method, the incident angle (θt) and the reflection angle in the target area (P101) can be omitted. The calculation can simplify the processing.
[0114] A fourteenth aspect is a program for causing one or more processors to execute the inspection method of any one of the first to thirteenth aspects. According to this aspect, the accuracy of the inspection of the color of the surface of the object (100) can be improved.
[0115] The fifteenth method is an inspection system (1), comprising an acquisition unit (F11) and a comparison unit (F13). The acquisition unit (F11) acquires an object image (P10) of the surface of an object (100) obtained by photographing the surface of the object (100) irradiated by an illumination system (20) by an imaging system (30). The comparison unit (F13) compares the color of a focus area (P101) of the object image (P10, P11, P12, P13) with the color of a reference area (P201). The reference area (P201) is an area of a reference image (P20, P21) of the surface of a reference object (200) that serves as a reference for the color of the object (100), and is an angle of incidence (θt) of light (L11) from the illumination system (20) in the focus area (P101) and a reflection angle of light (L12) to the imaging system (30). According to this method, the accuracy of the color inspection of the surface of the object (100) can be improved.
[0116] Industrial Applicability
[0117] According to the inspection method, program, and inspection system disclosed in the present invention, the accuracy of the inspection of the color of the surface of an object such as a motor vehicle or an electrical appliance can be improved. As a result, an object having a surface with a desired color can be obtained efficiently. That is, the inspection method, program, and inspection system disclosed in the present invention are useful in industry.
[0118] -Explanation of symbols-
[0119] 1 Check the system
[0120] 20 Lighting System
[0121] 30 Camera System
[0122] 100 Objects
[0123] 200 Reference
[0124] P10, P11, P12, P13 object images
[0125] P101 Area of concern
[0126] P102 Reference area
[0127] P20, P21 reference images
[0128] P201 Reference area
[0129] L11, L12, L21, L22 Light
[0130] θt, θr incident angle
[0131] Reflection Angle
[0132] S11 Acquisition Steps
[0133] S12, S13, S14 Decision Steps
[0134] S15, S16 comparison steps
[0135] S17 prompting step (image prompting step, result prompting step).
Claims
1. An inspection method, comprising: an acquisition step of acquiring an object image of the surface of the object obtained by photographing the surface of the object illuminated by the lighting system with an imaging system; as well as a comparison step of comparing a color of a focus area of the object image with a color of a reference area, the reference area being an area of a reference image of a surface of a reference object serving as a reference for the color of the object and corresponding to an incident angle θt of light from the illumination system and a reflection angle θt of light to the imaging system in the focus area; The combination of the incident angle θr and the reflection angle A combination of The incident angle θr is an angle between the direction of the normal line of the area on the surface of the reference object corresponding to the reference area and the light incident from the illumination system to the surface of the reference object, and the reflection angle is the angle between the direction of the normal and the light from the surface of the reference object toward the camera system, The incident angle θt is an angle between the direction of the normal line of the region on the surface of the object corresponding to the target region of the target image and the light incident from the lighting system to the surface of the object. It is an angle formed by the direction of the normal line of the region of the surface of the object and the light from the surface of the object toward the imaging system.
2. The inspection method according to claim 1, wherein: The object image includes a plurality of the regions of interest.
3. The inspection method according to claim 1 or 2, wherein: The region of interest includes a single pixel or a plurality of continuous pixels.
4. The inspection method according to claim 1 or 2, wherein: In the comparison step, the incident angle θt and the reflection angle The histogram of colors of the plurality of attention regions corresponding to a specific combination is compared with the histogram of colors of the plurality of reference regions of the standard image corresponding to the specific combination.
5. The inspection method according to claim 4, wherein: In the specific combination, the incident angle θt is an angle within a first angle range, and the reflection angle is an angle within the second angle range.
6. The inspection method according to claim 4, wherein: The plurality of regions of interest include the incident angle θt and the reflection angle Combination of multiple areas of interest with the same The plurality of reference areas include the incident angle θr and the reflection angle The same combination of multiple reference regions.
7. The inspection method according to claim 1 or 2, wherein: Regarding the reference area, an incident angle θr of light from the illumination system in the reference area is within a first angle range including an incident angle θt of light from the illumination system in the region of interest, and a reflection angle φr of light from the illumination system in the reference area is within a first angle range including a reflection angle φt of light from the illumination system in the region of interest. Within the second angle range.
8. The inspection method according to claim 1 or 2, wherein: The inspection method further includes a determination step of determining the incident angle θt and the reflection angle in the region of interest.
9. The inspection method according to claim 8, wherein: The determining step calculates the incident angle θt and the reflection angle in the target area using one or more images of the target object.
10. The inspection method according to claim 8, wherein: In the determination step, the brightest area in the object image is set as the angle between the incident angle θt and the reflection angle Equal base area.
11. The inspection method according to claim 10, wherein: The inspection method further includes an image prompting step of displaying the incident angle θt and the reflection angle θt in the same manner in the object image and the reference image. The same area of combination.
12. The inspection method according to claim 1 or 2, wherein: The inspection method further includes a result presenting step of presenting a result based on the result of the comparison in the comparing step.
13. The inspection method according to claim 1 or 2, wherein: The incident angle θt and the reflection angle in the region of interest are predetermined 14. A recording medium having a program recorded thereon, The program is for causing one or more processors to execute the inspection method according to any one of claims 1 to 13.
15. An inspection system comprising: an acquisition unit that acquires an object image of a surface of an object obtained by photographing the surface of the object illuminated by the lighting system through an imaging system; and a comparing unit for comparing a color of a focus area of the object image with a color of a reference area, the reference area being an area of a reference image of a surface of a reference object serving as a reference for the color of the object and corresponding to an incident angle θt of light from the illumination system and a reflection angle θt of light to the imaging system in the focus area; The combination of the incident angle θr and the reflection angle A combination of in, The incident angle θr is an angle formed by the direction of the normal line of the area on the surface of the reference object corresponding to the reference area and the light incident from the illumination system to the surface of the reference object. is the angle between the direction of the normal and the light from the surface of the reference object toward the camera system, The incident angle θt is an angle between the direction of the normal line of the region on the surface of the object corresponding to the target region of the target image and the light incident from the lighting system to the surface of the object. It is an angle formed by the direction of the normal line of the region of the surface of the object and the light from the surface of the object toward the imaging system.
Citation Information
Patent Citations
Color inspection device and color inspection method
JP2015155892A
Lighting system, inspection system and control system
CN103562710A
Method for matching color and appearance of coatings containing effect pigments
CN104114985A
Variable angle spectroscopic imaging measurement method and device therefor
CN104471361A
Surface texture indexing device, surface texture indexing method, and program
CN106104261A
