Inspection system, inspection method, and inspection program
The inspection system automatically adjusts quality criteria based on the inspection object's characteristics, reducing erroneous classifications and enhancing efficiency by integrating preliminary inspection, standard determination, and quality determination functions.
Patent Information
- Application Number
- JP2023058926
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
AI Technical Summary
Existing inspection systems for packaging materials, such as those described in Patent Documents 1 to 3, fail to adapt to varying quality standards across different products or production lots, leading to incorrect classification of non-defective items as defective and requiring manual adjustment of detection conditions.
An inspection system with a detection section, calculation device, and imaging devices that perform preliminary inspection, standard determination, and quality determination functions, allowing automatic adjustment of quality criteria based on the inspection object's characteristics.
Reduces erroneous classification of good products as defective, conserves resources, and improves production efficiency by eliminating the need for manual quality criterion adjustments.
Smart Images

Figure 2024146180000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an inspection system, an inspection method, and an inspection program. [Background technology]
[0002] In the inspection of packaging materials for beverage products, etc., a technology for inspecting the quality of an object to be inspected based on an image of the object to be inspected is widely used. International Publication No. 2020 / 121239 (Patent Document 1) discloses an optical inspection device that detects internal defects of a parison based on an image of the parison acquired using a light source and a detector having a polarizing filter. Japanese Patent Application Laid-Open No. 2018-136268 (Patent Document 2) discloses an inspection device that detects defects due to transparent foreign matter in the side wall of a preform using a light source that irradiates light from a parallel direction to the side surface of the preform and a camera that captures an image of the preform from the side to obtain a captured image. Japanese Patent Application Laid-Open No. 2017-190952 (Patent Document 3) discloses an inspection method for determining a thickness defect or thick fog at the bottom of a preform by illuminating one side of the axial direction of the preform with a parallel light beam along the axial direction and acquiring an image of the certified preform from the other side of the axial direction. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2020 / 121239 (or Patent Publication No. 2022-512434) [Patent Document 2] JP 2018-136268 A [Patent Document 2] JP 2017-190952 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, the techniques of Patent Documents 1 to 3 are premised on the premise that the majority of the objects to be inspected meet a predetermined quality standard, and that the exceptional objects that do not meet the quality standard are detected as defective. Therefore, when the quality standard that the objects to be inspected must meet varies depending on the product or production lot of the objects to be inspected, some of the good objects may be judged as defective. In order to avoid this, it is necessary to adjust the conditions for detecting defective objects every time an object to be inspected with a different quality standard is used, which makes the measures required when switching products cumbersome.
[0005] Therefore, there is a need to realize an inspection system, an inspection method, and an inspection program that can automatically adjust the quality judgment criteria for the object to be inspected. [Means for solving the problem]
[0006] The inspection system of the present invention comprises a detection unit capable of detecting an object to be inspected, and a calculation device, wherein the detection unit includes at least one photographing device, and the calculation device is capable of realizing a preliminary inspection function of performing a preliminary inspection of the object to be inspected based on the detection result of the object to be inspected by the detection unit, a criterion determination function of determining a quality judgment criterion for the object to be inspected based on the result of the preliminary inspection, and a quality judgment function of judging the quality of the object to be inspected based on an image of the object to be inspected photographed by the photographing device and the quality judgment criterion.
[0007] The inspection method according to the present invention is characterized in that it includes a preliminary inspection step of conducting a preliminary inspection of an object to be inspected, a standard determination step of determining a quality judgment standard for the object to be inspected based on the results of the preliminary inspection, and a quality judgment step of judging the quality of the object to be inspected based on an image of the object to be inspected and the quality judgment standard.
[0008] The inspection program of the present invention is characterized in that, when executed by a computer, it realizes a preliminary inspection function of conducting a preliminary inspection of an object to be inspected, a standard determination function of determining a quality judgment standard for the object to be inspected based on the results of the preliminary inspection, and a quality judgment function of judging the quality of the object to be inspected based on an image of the object to be inspected and the quality judgment standard.
[0009] These configurations allow the quality judgment criteria for the inspection objects to be automatically adjusted. This reduces the number of erroneous judgments of non-defective items as defective, which contributes to resource conservation. In addition, since there is no need to manually adjust the quality judgment criteria, production efficiency can be improved.
[0010] Preferred embodiments of the present invention will be described below. However, the scope of the present invention is not limited to the preferred embodiments described below.
[0011] In one aspect of the inspection system according to the present invention, the preliminary inspection function preferably determines a color of the object to be inspected based on a detection result of the object to be inspected by the detection unit.
[0012] This configuration makes it easier to reduce erroneous determinations when there is variation in color among non-defective products under inspection.
[0013] In one aspect of the inspection system of the present invention, it is preferable that the quality assessment standard is a threshold value for binarization processing, and in the quality assessment function, a binary image is obtained by binarizing an image of the object to be inspected captured by the photographing device using the threshold value determined by the standard determination function, and the quality of the object to be inspected is judged based on the area of light or dark areas in the binary image.
[0014] According to this configuration, the quality of the inspection object can be determined by relatively simple image processing.
[0015] In one aspect, the inspection system of the present invention further includes a storage device for storing a plurality of reference images, the quality assessment standard being at least one reference image selected from the plurality of reference images by the standard determination function, and it is preferable that the quality assessment function assesses the quality of the object to be inspected based on a comparison between an image of the object to be inspected captured by the photographing device and the at least one selected reference image.
[0016] According to this configuration, the results of the inspection performed by the inspection system tend to coincide with the results of the manual inspection, and the quality evaluation criteria can be set relatively easily.
[0017] In one aspect of the inspection system of the present invention, it is preferable that the quality assessment function calculates a score indicating the quality of the object to be inspected based on a comparison of the image of the object to be inspected captured by the imaging device with a selected reference image.
[0018] This configuration makes it easy to quantitatively compare the quality of the inspection object.
[0019] In one aspect of the inspection system of the present invention, it is preferable that the detection unit includes at least a first photographing device and a second photographing device, the detection result used in the preliminary inspection function is an image of the object to be inspected photographed by the first photographing device, and the image used in the quality assessment function is an image of the object to be inspected photographed by the second photographing device.
[0020] With this configuration, shooting conditions can be set in the first photographing device with the aim of obtaining an image suitable for judging color, and shooting conditions can be set in the second photographing device with the aim of obtaining an image suitable for judging quality, so that images suitable for each judgment can be obtained, making it easier to improve the accuracy of the inspection.
[0021] Further features and advantages of the present invention will become more apparent from the following description of exemplary and non-limiting embodiments, which are given with reference to the drawings. [Brief description of the drawings]
[0022] [Figure 1] 1 is a schematic diagram of an inspection system according to an embodiment; [Diagram 2] FIG. 1 is a configuration diagram of an inspection system according to an embodiment. [Diagram 3] FIG. 11 is a configuration diagram of a first modified example of an inspection system according to an embodiment. [Figure 4] FIG. 11 is a configuration diagram of a second modified example of the inspection system according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] An embodiment of an inspection system, an inspection method, and an inspection program according to the present invention will be described with reference to the drawings. In the following, an example in which the inspection system according to the present invention is applied to an inspection system 1 that inspects a preform P (one example of an object to be inspected) and an inspection method using the inspection system 1 will be described.
[0024] [Configuration of the inspection system] The inspection system 1 includes a detection unit 2, a conveyor 3, an ejector 4, and a computer 5 (FIGS. 1 and 2). The computer 5 has an inspection program according to this embodiment installed therein.
[0025] In this embodiment, the detection unit 2 is composed of a first imaging device 21 and a second imaging device 22. The first imaging device 21 and the second imaging device 22 each have a digital camera that captures an image of the preform P passing through the interior of the machine to generate image data, and the generated image data is transferred to the computer 5. Note that the first imaging device 21 and the second imaging device 22 are devices that detect the preform P present within the field of view of the respective digital cameras and generate image data, and therefore are devices that can detect the preform P.
[0026] The first photographing device 21 and the second photographing device 22 are both installed in a position that allows them to photograph the preforms P transported by the conveyor 3, and the first photographing device 21 is installed upstream of the second photographing device 22 along the transport direction of the conveyor 3. It is preferable that the first photographing device 21 and the second photographing device 22 have a continuous photographing capability that allows them to photograph the preforms P transported at each point in accordance with the transport speed of the conveyor 3.
[0027] The conveyor 3 continuously transports a plurality of preforms P aligned in a row. The conveyor 3 has an encoder (not shown) so that the amount of movement of the conveyor 3 is input to the computer 5. This enables the computer 5 to associate the images captured by the first and second photographing devices 21 and 22 with each individual preform P.
[0028] The rejector 4 is a device that can selectively reject specific individual preforms P from among those conveyed on the conveyor 3. The rejector 4 is controlled by a computer 5, which uses a signal from an encoder of the conveyor 3 as a clue to operate the rejector 4 to target the preform P to be rejected (for example, a preform P1 with a foreign object attached thereto) and reject it.
[0029] The conveyor 3 and the rejector 4 according to this embodiment may be any device that is generally used for inspecting preforms.
[0030] The computer 5 is a known computer in terms of hardware, and therefore includes typical components of a computer, such as a calculation device 51 such as a CPU, a storage device 52 such as a hard disk drive, and the like.
[0031] [Configuration of inspection method and inspection program] Next, two embodiments will be described regarding an inspection method using the inspection system 1. The difference between the two embodiments lies in the difference in the inspection program executed by the computer 5, and the hardware configuration of the inspection system 1 is the same. To summarize the differences between the two embodiments, in the first embodiment, a captured image of the preform P is binarized to determine the quality of the preform P, and in the second embodiment, the captured image of the preform P is compared with a reference image to determine the quality of the preform P.
[0032] (Common matters) In any embodiment, the inspection method according to the present embodiment includes a preliminary inspection step, a standard determination step, and a quality judgment step. As functions for carrying out each of these steps, the inspection program according to the present embodiment causes the computer 5 (the arithmetic device 51) to realize a preliminary inspection function, a standard determination function, and a quality judgment function.
[0033] In any embodiment, a plurality of preforms P are conveyed in a line by the conveyor 3. When the conveyed preforms P pass through the first photographing device 21 and the second photographing device 22, an image of each preform P is taken and each image is transferred to the computer 5. For the sake of distinction, the image taken by the first photographing device 21 is referred to as a first image, and the image taken by the second photographing device 22 is referred to as a second image.
[0034] The preliminary inspection function is common to the two embodiments, and is a function for performing a preliminary inspection of the preform P based on an image (first image) of the preform P captured by the first photographing device 21. In the preliminary inspection function according to this embodiment, a portion corresponding to the preform P in the first image is identified, and the color of the portion is compared with the L * a * b * A calculation process is performed to specify the color system.
[0035] The criterion determination function and the quality assessment function are different in the two embodiments, and will be described separately below. Note that in both embodiments, the functions are realized in the order of the preliminary inspection function, the criterion determination function, and the quality assessment function. However, since the criterion determination function is a function that determines the quality assessment criterion used in the quality assessment function, the quality assessment function will be described first, and the quality assessment criterion to be used will be clarified, and then the criterion determination function that determines the quality assessment criterion will be described.
[0036] First Embodiment In the quality judgment function according to the first embodiment, a binary image is obtained by binarizing the image (second image) of the preform P photographed by the second photographing device 22, and the quality of the preform P is judged based on the area of the dark part in the binary image. Since the preform P is a transparent article, it appears with a relatively high brightness in the second image. On the other hand, in the case of a preform P1 having a foreign matter attached thereto, the foreign matter does not transmit light or diffusely reflects light, so that the part of the foreign matter appears with a relatively low brightness in the second image. Therefore, the area of the dark part is larger in the binary image when the foreign matter is present than in the binary image when the foreign matter is not present. Using this, a preform P1 having an area of the dark part exceeding a predetermined reference value is judged to be possibly having a foreign matter attached thereto, and is to be rejected.
[0037] The binarization process performed here is a known binarization process, in which, for all pixels of the second image subjected to the binarization process, portions whose brightness is equal to or greater than a threshold value are determined as bright portions, and portions whose brightness is less than the threshold value are determined as dark portions.
[0038] Here, the problem is that the result of the quality judgment may differ depending on the color of the preform P. For example, the brightness of the preform P in the second image tends to be lower when the preform P is colored and transparent than when it is colorless and transparent. Therefore, if the same threshold value is used for the colorless and transparent case and the colored and transparent case, the area of the dark part is likely to be larger in the latter case. Due to this, when the preform P is colored and transparent, it may be rejected even though no foreign matter is attached. Therefore, in this embodiment, this problem is solved by adjusting the threshold value taking into account the color.
[0039] In the standard determination function according to the present embodiment, a threshold value for the binarization process is determined based on the color of the preform P to be inspected determined by the preliminary inspection function (an example of the result of the preliminary inspection). * Value, a * value, and b * A method of selecting a threshold from among predetermined candidates based on the magnitude of at least one of the values, or a method of setting the threshold as L * Value, a * value, and b * As a function of at least one of the values, etc.
[0040] As a result, binarization processing is performed using a threshold value determined in consideration of the color of the preform P to be inspected, making it easy to avoid erroneous judgments due to the color of the preform P.
[0041] Of the above functions, the quality judgment function is implemented for all individual preforms P. This is because it is necessary to inspect all preforms P and reject those preforms P that are judged to possibly have foreign matter attached thereto.
[0042] In contrast, the preliminary inspection function and the standard determination function may be realized for all individual preforms P, but this is not necessarily required. The color of the preform P is expected to be within a certain range for a certain handling unit such as the model number or delivery unit (lot) of the preform P, and therefore the accuracy of the quality judgment often does not decrease even if the binarization threshold is the same within the handling unit. The preliminary inspection function and the standard determination function can be realized, for example, every time the model number of the preform P is changed, every time the lot is changed, every time a certain quantity (for example, 100 pieces) is changed, or the like.
[0043] It is not necessary that the frequency at which the preliminary inspection function is realized is the same as the frequency at which the reference determination function is realized. For example, the preliminary inspection function may be realized for all preforms P to grasp the trend of changes in the color of the preforms P, and the reference determination function may be realized when the color of the preforms P deviates from a predetermined range.
[0044] Second Embodiment In the quality determination function according to the second embodiment, the quality of the preform P is determined based on a comparison between an image (second image) of the preform P captured by the second imaging device 22 and a reference image. The reference image is an image previously captured of a non-defective preform P (i.e., a preform P with no foreign matter attached), and is stored in the storage device 52.
[0045] If no foreign matter is attached to the preform P to be inspected, it is expected that the second image and the reference image will show a high degree of agreement. On the other hand, in the case of a preform P1 with foreign matter attached, the second image and the reference image will clearly differ in the area where the foreign matter is present. Therefore, the pixels of the parts corresponding to the preform P in the second image and the reference image are compared, and the sum of the differences over all of the compared pixels is calculated as the score for the preform P. Then, a preform P1 with a score exceeding a predetermined reference value is determined to be one that may have foreign matter attached, and is rejected.
[0046] Here again, the problem is that the quality judgment result may differ depending on the color of the preform P. For example, if the preform P in the reference image is colorless and transparent and the preform P to be inspected is colored and transparent, the colors of the two are different, so when comparing each pixel of the portion corresponding to the preform P in the second image and the reference image, there will be a slight difference in each pixel. Therefore, the total difference is likely to be a large value, and the preform P may be rejected even though no foreign matter is attached to it. Therefore, in this embodiment, this problem is solved by selecting the reference image taking into account the color.
[0047] In this embodiment, the storage device 52 stores a plurality of reference images. The plurality of reference images are obtained by individually photographing a plurality of non-defective preforms P having different colors. In addition, each reference image includes a numerical value (e.g., L * Value, a * value, and b * At least one of the values is associated with it.
[0048] In the standard determination function according to the present embodiment, a standard image that is most suitable as a quality judgment standard to be used for inspecting the preform P to be inspected is selected from among a plurality of standard images stored in the storage device 52, based on the color of the preform P to be inspected determined by the preliminary inspection function (one example of the result of the preliminary inspection). For example, * Value, a * value, and b * The reference image associated with a value closest to at least one of the values is selected.
[0049] As a result, since the score is calculated using a reference image determined in consideration of the color of the preform P to be inspected, erroneous judgment due to the color of the preform P can be easily avoided.
[0050] As with the first embodiment, it is not necessarily required that the preliminary inspection function and the reference determination function be realized for all individual preforms P, and the frequency of the preliminary inspection function and the reference determination function do not have to be the same.
[0051] [Effects of the inspection system] As described above, by inspecting the preform P using the inspection system 1 according to this embodiment, when the preform P is colored and transparent, it is unlikely that the preform P will be mistakenly rejected due to the color of the preform P itself. In addition, since there is no need to manually adjust the quality assessment standard in consideration of the color of the preform P, a smooth and labor-saving inspection can be realized.
[0052] [Modifications] Next, a modified example of the inspection system 1 according to the above embodiment will be described with reference to the drawings.
[0053] In the inspection system 1A according to the first modified example, the detection unit 2 is composed of a colorimeter 23 and an image capturing device 24 (FIG. 3). The colorimeter 23 is a device that measures the color of the preform P and outputs a numerical value (an example of a detection result) expressed in a predetermined color system, and a known colorimeter can be used. The output value of the colorimeter 23 is input to the computer 5. In this modified example, the output value of the colorimeter 23 is used in the preliminary inspection function, and the captured image by the image capturing device 24 is used in the quality judgment function. In this way, the preliminary inspection function according to the present invention is not limited to an aspect in which the color is judged based on the captured image.
[0054] In the inspection system 1B according to the second modified example, the detection unit 2 is composed of a single image capturing device 25 (FIG. 4). In this modified example, the images captured by the image capturing device 25 are used in both the preliminary inspection function and the quality assessment function. According to this modified example, the number of image capturing devices can be reduced compared to the above embodiment, which is advantageous in terms of the installation space and installation costs of the inspection system. On the other hand, the image aspect suitable for judging the color tone and the image aspect suitable for judging the quality do not necessarily match, which may be disadvantageous in terms of inspection accuracy.
[0055] Each of the modified examples is similar to the above embodiment except for the points that are particularly noted. Note that each of the modified examples can be applied to both the criteria determination function and the quality evaluation function.
[0056] As is clear from the above embodiment and modified examples, in the present invention, the type and number of devices constituting the detection unit are not limited as long as they include at least one imaging device. In particular, the detection result provided to the preliminary inspection function is not limited to an image, and therefore the device for obtaining the detection result is not limited to an imaging device.
[0057] Other embodiments Finally, other embodiments of the inspection system, inspection method, and inspection program according to the present invention will be described. Note that the configurations disclosed in the following embodiments can be applied in combination with the configurations disclosed in other embodiments, as long as no contradiction occurs.
[0058] In the above embodiment, the preliminary inspection function is described as an example of a configuration in which the color of the preform P is determined. However, the preliminary inspection function according to the present invention is not limited to the aspect of determining the color of the object to be inspected. Other aspects include, but are not limited to, an aspect of determining the gloss of the object to be inspected (the result of the preliminary inspection is gloss), an aspect of performing infrared spectroscopy measurement of the object to be inspected (the result of the preliminary inspection is infrared spectroscopy spectrum), and an aspect of performing near-infrared spectroscopy measurement of the object to be inspected (the result of the preliminary inspection is near-infrared spectroscopy spectrum). Note that the detection unit may include a device that can obtain a detection result corresponding to the aspect of the selected preliminary inspection function. For example, when the preliminary inspection function is realized in an aspect of determining the gloss of the object to be inspected, the detection unit may include a gloss meter.
[0059] In the above embodiment, the quality judgment function has been described by way of an example of binarizing the image of the preform P and comparing the image of the preform P with a reference image. However, in the present invention, the manner in which the image of the inspection object is used in the quality judgment function is not limited. In addition, the quality judgment standard is determined according to the mode selected for the quality judgment function, and the mode of the standard determination function is determined correspondingly.
[0060] In the above embodiment, in the preliminary inspection function, the color of the preform P is * a * b * The configuration for specifying the color system has been described as an example. However, when specifying the color tone in the preliminary inspection function according to the present invention, the color system to be used is arbitrary, and may be any of the XYZ color system, Munsell color system, RGB color system, L * C * Known color space such as h color space, PCCS (Japan Color Research Institute Color Coordination System), etc. can be used. Depending on the color space selected, the specifications of the device for obtaining the detection results used in the preliminary inspection function can be determined.
[0061] In the above embodiment, the detection unit 2 and the computer 5 (arithmetic device 51) are separate from each other. However, in the present invention, the detection unit and the arithmetic device may be incorporated into the same component. For example, the present invention can be implemented using a device (typically a smartphone) in which an image capture device and an arithmetic device are integrated.
[0062] Regarding other configurations, it should be understood that the embodiments disclosed in this specification are illustrative in all respects and that the scope of the present invention is not limited thereto. A person skilled in the art would easily understand that appropriate modifications are possible without departing from the spirit of the present invention. Therefore, other embodiments modified without departing from the spirit of the present invention are naturally included in the scope of the present invention. [Industrial Applicability]
[0063] The present invention can be used for inspecting, for example, preforms, bottles, and the like. [Explanation of symbols]
[0064] 1: Inspection system 2: Detection section 21: First imaging device 22: Second imaging device 3: Conveyor 4: Repulsion machine 5: Computer 51: Arithmetic device 52: Storage device P: Preform P1: Preform with foreign matter attached 1A: Inspection system (first variant) 23: Colorimeter 24: Photographing equipment 1B: Inspection system (second variant) 25: Photographing equipment
Claims
1. The apparatus includes a detection unit capable of detecting an object to be inspected and a calculation device, the detection unit includes at least one imaging device, The computing device, a preliminary inspection function for performing a preliminary inspection of the inspection object based on a detection result of the inspection object by the detection unit; a standard determination function for determining a quality judgment standard for the object to be inspected based on a result of the preliminary inspection; an inspection system capable of realizing a quality determination function of determining the quality of the inspection object based on an image of the inspection object captured by the imaging device and the quality determination criterion.
2. The inspection system according to claim 1 , wherein the preliminary inspection function judges a color of the object to be inspected based on a detection result of the object to be inspected by the detection unit.
3. the quality criterion is a threshold value for a binarization process, 3. The inspection system according to claim 1 or 2, wherein, in the quality assessment function, a binary image is obtained by binarizing the image of the object to be inspected photographed by the photographing device using the threshold determined by the standard determination function, and the quality of the object to be inspected is judged based on the area of light or dark areas in the binary image.
4. Further comprising a storage device for storing a plurality of reference images; the quality judgment criterion is at least one reference image selected from the plurality of reference images by the criterion determination function; The inspection system according to claim 1 or 2, wherein the quality judgment function judges the quality of the object to be inspected based on a comparison between the image of the object to be inspected captured by the imaging device and the at least one selected reference image.
5. The inspection system according to claim 4 , wherein the quality assessment function calculates a score indicating the quality of the object to be inspected based on a comparison between the image of the object to be inspected captured by the imaging device and a selected reference image.
6. the detection unit includes at least a first image capture device and a second image capture device, the detection result used in the preliminary inspection function is an image of the inspection object captured by the first imaging device, The inspection system according to claim 1 or 2, wherein the image used in the quality assessment function is an image of the inspection object captured by the second imaging device.
7. a preliminary inspection step of performing a preliminary inspection of the inspection object; a criterion determination step of determining a quality judgment criterion for the inspection object based on a result of the preliminary inspection; and a quality determination step of determining the quality of the object to be inspected based on an image of the object to be inspected and the quality determination criterion.
8. When executed by a computer, A preliminary inspection function for performing a preliminary inspection of the inspection object; a standard determination function for determining a quality judgment standard for the object to be inspected based on a result of the preliminary inspection; and a quality determination function for determining the quality of the object to be inspected based on an image of the object to be inspected and the quality determination criterion.
Citation Information
Patent Citations
Inspection method for outside appearance of label and its device
JP1994186002A
Image processor
JP2000331163A
Normal / Defective confection deciding system
JP2003216928A
Image forming apparatus and method for setting capability of removing liquid
JP2006306079A
Image inspection device, printing system, and image inspection method and program
JP2012137481A
