Inspection device, parameter setting method, and parameter setting program
The inspection device automatically sets parameter information for new products by acquiring attribute information and selecting pre-defined settings, reducing setup time and improving detection accuracy.
Patent Information
- Application Number
- JP2023056942
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-03-31
AI Technical Summary
Existing inspection devices require manual entry of setting information for new products, and X-ray inspection devices fail to automatically set necessary conditions for new products.
An inspection device and method that automatically sets parameter information by acquiring attribute information of the container and liquid, selecting a corresponding parameter set from pre-defined settings, and applying it to the device.
Automatically sets parameter information for new products, reducing setup time and operator burden, and improving detection accuracy by correcting parameters for erroneous detections.
Smart Images

Figure 2024144813000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to setting configuration information for an inspection device that inspects a liquid contained in a container. [Background technology]
[0002] Conventionally, inspection devices have been proposed for detecting foreign objects in liquids contained in containers. As an example of such inspection devices, Patent Document 1 discloses an inspection device that executes an imaging process for imaging a container made of a light-transmitting material in which liquid is contained, an image processing process for filtering the image of the captured container, and a detection process for detecting foreign objects contained in the container based on the filtered image. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2022-122072 A [Patent Document 2] JP 2002-148212 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, when inspecting a new product using the inspection device disclosed in Patent Document 1, there is a problem in that an operator must manually enter various setting information corresponding to the new product.
[0005] In this regard, as an example of a technology for automatically setting setting information, the X-ray inspection device disclosed in Patent Document 2 automatically sets image processing parameters such as image correction coefficients and image correction constants for determining the intensity of X-rays or the presence of foreign matter by transporting an object to be inspected by a transport mechanism before normal operation. However, the X-ray inspection device disclosed in Patent Document 2 does not automatically set setting information by inputting necessary conditions when setting setting information corresponding to a new product, and therefore cannot solve the above-mentioned problem.
[0006] In view of the above-mentioned problems, one of the objects of the present disclosure is to provide an inspection device, a parameter setting method, and a parameter setting program that are capable of automatically setting setting information by inputting necessary conditions when setting setting information corresponding to a new product. [Means for solving the problem]
[0007] An inspection apparatus according to an exemplary embodiment includes: an attribute information acquisition unit that acquires attribute information of a translucent container that is an inspection target and a liquid in the container; a parameter set acquisition unit that acquires a parameter set corresponding to the attribute information acquired by the attribute information acquisition unit from a plurality of parameter sets that are setting information prepared in advance according to attributes of the container and the liquid; The inspection apparatus further includes a parameter setting unit that sets the parameter set acquired by the parameter set acquisition unit as setting information for the inspection apparatus.
[0008] A parameter setting method according to an exemplary embodiment includes: Acquire attribute information of the translucent container and the liquid in the container that are the subject of inspection; A parameter set corresponding to the acquired attribute information is acquired from a plurality of parameter sets, which are setting information prepared in advance according to attributes of the container and the liquid; The acquired parameter set is set as the setting information of the inspection device.
[0009] A parameter setting program according to an exemplary embodiment includes: For computers, acquiring attribute information of a translucent container and a liquid therein that are to be inspected; acquiring a parameter set corresponding to the acquired attribute information from among a plurality of parameter sets which are setting information previously prepared according to attributes of the container and the liquid; The acquired parameter set is set as the setting information of the inspection device. Effect of the Invention
[0010] The present disclosure makes it possible to provide an inspection device, a parameter setting method, and a parameter setting program that can automatically set setting information by inputting necessary conditions when setting information corresponding to a new product. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a diagram showing a configuration of an inspection apparatus according to an exemplary embodiment; [Diagram 2] FIG. 2 is a front view showing a container to be inspected that is placed in the inspection device. [Diagram 3] FIG. 11 is a diagram illustrating an example of parameters related to erroneous detection of a foreign object. [Figure 4] 10 is a flowchart illustrating an example of a process executed by an inspection apparatus according to an exemplary embodiment. [Diagram 5] 10 is a flowchart illustrating another example of a process executed by the inspection apparatus according to an exemplary embodiment. [Figure 6] 10 is a flowchart illustrating another example of a process executed by the inspection apparatus according to an exemplary embodiment. [Figure 7] 10 is a flowchart illustrating an example of a parameter correction process executed by an inspection apparatus according to an exemplary embodiment. [Figure 8] FIG. 1 is a diagram showing main components of an inspection apparatus according to an exemplary embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] An exemplary embodiment will be described below with reference to the drawings. FIG. 1 is a diagram showing the configuration of an inspection device 1 according to an exemplary embodiment. The inspection device 1 is a device for detecting foreign matter in a container made of a light-transmitting material. The foreign matter in the container is assumed to be a piece of cork, a piece of plastic, a piece of metal, etc. The inspection device 1 includes a processor 10, an input device 11, a rotation mechanism 12, a lighting device 13, a photographing device 14, a communication interface (I / F) 15, and a storage device 16.
[0013] The processor 10 is a computing device that performs overall control of the inspection device 1. Specific examples of the processor 10 include processors such as a CPU (Central Processing Unit) and an MPU (Micro Processing Unit). The processor 10 executes a method relating to parameter setting in an exemplary embodiment by reading and executing a parameter setting program 100 from the storage device 16. The program executed by the processor 10 may be executed by an integrated circuit such as a Field-Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC). The integrated circuits such as the processor, FPGA, and ASIC correspond to a computer.
[0014] The input device 11 is a device for an operator to input or select attribute information of the container to be inspected and the liquid in the container. A specific example of the input device 11 is a touch panel. The attributes of the container and the liquid include the type of shape of the container, the size of the container, the color of the container, and the color of the liquid. For example, when the liquid is wine, the types of the container shape are Bordeaux type, Burgundy type, sparkling wine type (champagne type), Rhine type / Moselle type, Bocksbeutel type, etc. The types of the container size are, for example, full bottle size and half bottle size. The color of the container is, for example, green or transparent. The color of the liquid is, for example, red, white, or rosé. Note that liquids other than wine can also be inspected.
[0015] The parameters according to the attributes of the container and liquid being inspected can be broadly divided into (1) parameters according to the type of shape of the container and the size of the container being inspected, and (2) parameters according to the color of the container and the color of the liquid being inspected.
[0016] Parameters according to the type of shape of the container to be inspected and the size of the container include, for example, identification information of the operating program, parameters relating to the position of the clamp holding the container to be inspected, parameters relating to the timing of imaging, parameters specifying the image processing area of the container to be inspected, parameters specifying an offset of the measurement position in the vertical axis direction of the container, parameters relating to measurement of the edge of the container, parameters relating to determination of the width of the container, parameters relating to the process of masking the outline of the container, image processing areas relating to discrimination of the type of liquid, parameters relating to measurement of the liquid level, parameters indicating the start and end points in the vertical axis direction of the captured image, etc. Values are set for each of these parameters according to the type of container shape.
[0017] The parameters according to the color of the container and the color of the liquid to be inspected include the light amount and emission width of the light source, the gain and exposure time of the imaging device, parameters related to the determination of the presence or absence of the container to be inspected, parameters related to the alignment process, upper and lower limits of the binarization level for determining the type of liquid, parameters related to the median process, parameters related to the difference image, etc. Values are set for these parameters according to the color of the container and the color of the liquid, respectively.
[0018] The rotation mechanism 12 is a device that rotates the container to be inspected around a vertical rotation axis and a horizontal rotation axis as shown in FIG. 2. In this embodiment, the vertical rotation axis is a vertical rotation axis located between the two containers 20, 21 to be inspected. The horizontal rotation axis is a rotation axis perpendicular to the vertical rotation axis, and extends near the drinking spouts of the containers 20, 21 to be inspected. In the initial state, the containers 20, 21 to be inspected are arranged so that the longitudinal axes of these containers are parallel to the vertical rotation axis. The rotation mechanism 12 can rotate the container to be inspected at a plurality of preset rotation angles around the horizontal rotation axis. Also, the rotation mechanism 12 can rotate the container to be inspected at a preset rotation angle around the vertical rotation axis. The preset rotation angle can be, for example, 0 to 180°.
[0019] The lighting device 13 is a device for illuminating the container and liquid to be inspected. The photographing device 14 is a device for photographing the container and liquid to be inspected and generating a photographed image. The inspection device 1 includes two photographing devices 14. The lighting device 13 and the photographing device 14 are installed at opposing positions sandwiching the container to be inspected. When the container to be inspected is in an upright state, the photographing device 14 is disposed on the front side of the inspection device 1, and the lighting device 13 is disposed on the rear side. The lighting device 13 and the photographing device 14 are rotated together with the container to be inspected by the rotation mechanism 12. Therefore, the positional relationship between the container to be inspected, the lighting device 13, and the photographing device 14 does not change due to the rotation operation by the rotation mechanism 12. Therefore, the photographing device 14 can photograph the container in an upright state and the container in an inclined state for each of the two containers to be inspected. The number of containers to be inspected is not limited to two, and may be one or three or more.
[0020] The photographing device 14 photographs the container to be detected and generates a photographed image when a predetermined time (e.g., 100 ms, 300 ms, 500 ms, etc.) has elapsed after the container to be detected has been rotated by the rotation mechanism 12 at a predetermined rotation angle around the horizontal rotation axis and / or the vertical rotation axis and has come to rest. For this reason, the generated photographed image will show air bubbles and foreign objects moving within the liquid in the container.
[0021] The communication interface 15 communicates data between the inspection device 1 and other devices (not shown). The storage device 16 is a storage device in which various information such as the parameter setting program 100 executed by the processor 10 and parameter sets is stored.
[0022] The parameter setting program 100 includes an attribute information acquisition unit 101, a parameter set acquisition unit 102, a parameter setting unit 103, an inspection process control unit 104, an image processing unit 105, a foreign object detection unit 106, a parameter correction unit 107, and an erroneous detection determination unit 108.
[0023] The attribute information acquisition unit 101 is a program that acquires attribute information of a translucent container and a liquid in the container, which are inspection objects. The attribute information acquisition unit 101 can acquire attribute information of the container and the liquid in the container input by an operator using the input device 11.
[0024] The parameter set acquisition unit 102 is a program that acquires a parameter set corresponding to the attribute information acquired by the attribute information acquisition unit 101 from among a plurality of parameter sets that are setting information prepared in advance according to the attributes of the container and the liquid. In this embodiment, a number of parameter sets corresponding to the number of combinations of the container shape type, container size, container color, and liquid color are prepared and stored in the storage device 16. For example, when there are five container shape types, three container sizes, two container colors, and five liquid colors, 150 parameter sets are prepared. The parameter set acquisition unit 102 acquires a parameter set corresponding to the attribute information acquired by the attribute information acquisition unit 101 from the storage device 16. Identification information corresponding to the container shape type, container size, container color, and liquid color is assigned to each parameter set. For example, a first identification information is assigned to a parameter set corresponding to the container shape: Bordeaux type, the container size: full bottle size, the container color: green, and the liquid color: red, and a second identification information is assigned to a parameter set corresponding to the container shape: Burgundy type, the container size: full bottle size, the container color: green, and the liquid color: red.
[0025] Such a parameter set may be registered in a storage device of an external device with which the inspection device 1 can perform data communication, instead of the storage device 16 of the inspection device 1. In this case, the parameter set acquisition unit 102 acquires a parameter set identified by the identification information of the parameter set from the storage device of the external device via the communication interface 15.
[0026] The parameter setting unit 103 is a program that sets the parameter set acquired by the parameter set acquisition unit 102 as setting information of the inspection device 1. The parameter setting unit 103 sets the acquired parameter set as the setting information of the inspection device 1 by saving the parameter set in a saving area of the setting information of the storage device 16.
[0027] The inspection process control unit 104 is a program that controls an inspection process for detecting foreign matter contained in a liquid contained in a container to be inspected, based on a parameter set set by the parameter setting unit 103. In the inspection process, the container to be inspected is rotated around a horizontal rotation axis and a vertical rotation axis, and an image of the container is taken. The inspection process control unit 104 rotates the container to be inspected via the rotation mechanism 12 by executing an operation program that executes a rotation operation according to the type of shape and size of the container to be inspected. The inspection process control unit 104 also controls the imaging device 14 to image the container to be inspected in a stationary state, and generate an image in which the container is captured.
[0028] The image processing unit 105 is a program that executes image processing on the captured image of the container to be inspected. Specifically, the image processing unit 105 can execute alignment processing, container presence / absence determination processing, container width measurement processing, liquid type determination processing, contour mask generation processing, and label processing on the captured image of the container to be inspected, using parameters set by the parameter setting unit 103.
[0029] In the alignment process, the image processing unit 105 executes a matching process based on the outline of a predetermined container for the captured image to identify the position of the container in the captured image. In the container presence / absence determination process, the image processing unit 105 determines whether or not a container is present in the captured image based on the average and variance of the brightness of the captured image. In the container width measurement process, the image processing unit 105 detects the edge of the container in the width direction and measures the width of the container. In the liquid type determination process, the image processing unit 105 determines whether the type of liquid in the captured image is the type of liquid specified by the setting information. In the contour mask generation process, the image processing unit 105 generates a contour mask corresponding to the outline of the container in the captured image. In the label process, the image processing unit 105 identifies the position of the label attached to the container in the captured image and identifies the position of the gap in the label.
[0030] The image processing unit 105 also generates a difference image from a plurality of captured images generated by continuously capturing images of the container to be inspected. For example, the image processing unit 105 generates a difference image between an image captured 100 milliseconds after the container to be inspected is rotated and stopped, and an image captured 300 milliseconds after the container to be inspected is rotated and stopped. The image processing unit 105 also generates a difference image between the difference image thus generated and an image captured 500 milliseconds after the container to be inspected is rotated and stopped. If the container to be inspected contains a foreign object, the trajectory of the foreign object or air bubbles moving in the liquid may be displayed in the difference image. If the container to be inspected does not contain a foreign object, the trajectory of the air bubbles moving in the liquid may be displayed in the difference image.
[0031] Furthermore, the image processing unit 105 divides the difference image thus generated into a plurality of image regions, and then performs median filter processing, binarization processing, mask processing, and opening processing on each divided image region using the parameters set by the parameter setting unit 103.
[0032] Furthermore, the image processing unit 105 performs median filter processing, binarization processing, mask processing, and opening processing for each divided image area using parameters corrected by the parameter correction unit 107 described later and parameters set by the parameter setting unit 103.
[0033] The foreign object detection unit 106 is a program that executes a foreign object detection process to detect foreign objects in the liquid in the container using the difference image on which the image processing unit 105 has executed the median filter process, the binarization process, the mask process, and the opening process. More specifically, the foreign object detection unit 106 detects a pixel area in the difference image that has a luminance value different from that of the background image area and is less than a predetermined area (hereinafter referred to as the "area lower limit value"). Then, the foreign object detection unit 106 judges a pixel area in the difference image that is equal to or larger than the area lower limit value as a foreign object. The area lower limit value is preferably set to the area in pixel units of the smallest foreign object that may exist in the container. In other words, the area lower limit value is preferably set to an area slightly larger than the maximum area of an air bubble that may exist in the container. The initial value of this area lower limit value is set by the parameter setting unit 103. The area lower limit value is corrected by the parameter correction unit 107 described later.
[0034] The parameter correction unit 107 is a program that corrects parameters related to the erroneous detection of a foreign object when the foreign object detection unit 106 erroneously detects a foreign object. In other words, the parameter correction unit 107 corrects parameters related to the erroneous detection of a foreign object when the foreign object detection unit 106 detects an air bubble in a liquid as a foreign object. The parameters related to the erroneous detection of a foreign object include (1) an area lower limit value used in the foreign object detection process executed by the foreign object detection unit 106, and (2) parameters related to the image processing executed by the image processing unit 105. The image processing is a median filter process, a binarization process, a mask process, and an opening process. FIG. 3 is a diagram showing an example of parameters related to the erroneous detection of a foreign object. The parameters related to the erroneous detection of a foreign object can be set for each divided image area and for each predetermined operation executed by the operation program.
[0035] The area lower limit used in the foreign object detection process is a threshold value that specifies a predetermined area equivalent to the minimum area of a foreign object in the difference image. In the foreign object detection process, a pixel area in the binarized difference image that has a luminance value different from that of the background image area and is equal to or greater than the area lower limit is detected as a foreign object. Therefore, if the value of the area lower limit is increased, minute air bubbles in the liquid are less likely to be detected as foreign objects, and erroneous detection of foreign objects is suppressed.
[0036] The parameters relating to the image processing executed by the image processing unit 105 include parameters relating to median filtering, binarization, masking, and opening.
[0037] A specific example of a parameter related to median filtering is a parameter that specifies the pixel-unit range over which median filtering is performed. For example, if the median is "7", then a 7 pixel x 7 pixel area corresponds to the unit pixel area over which median filtering is performed. The parameter that specifies the median filter area corresponds to the "median" parameter in FIG. 3. Increasing the value of this parameter, i.e., expanding the area over which median filtering is performed, reduces false detection of foreign objects.
[0038] A specific example of a parameter related to the binarization process is a threshold value used in the binarization process. The difference image is binarized based on this threshold value. For example, when the difference image is expressed in 256 gradations, this threshold value is a value greater than 0 (black) and less than 255 (white). For example, when the background image area of the difference image is black (luminance: 0), in other words, when a pixel area with a relatively high luminance value is expressed as a foreign object, a pixel area having a luminance value greater than this threshold value may be detected as a foreign object. Therefore, by increasing this threshold value, the number of pixel areas that may be detected as a foreign object is reduced, thereby suppressing erroneous detection of a foreign object.
[0039] Furthermore, when the background image area of the difference image is white (brightness: 255), in other words, when pixel areas with relatively low brightness values are expressed as foreign objects, pixel areas having brightness values smaller than this threshold value may be detected as foreign objects. Therefore, by making this threshold value smaller, the number of pixel areas that may be detected as foreign objects is reduced, thereby suppressing erroneous detection of foreign objects. The threshold value used in the binarization process may be set for each divided image area of the difference image.
[0040] A specific example of a parameter related to masking is the standard deviation of bubble size. In masking, pixel regions constituting the difference image are masked if their size falls within the range of the standard deviation of the bubble size. The standard deviation of bubble size is the standard deviation of the size of holes in multiple bubbles that may be contained in the liquid under inspection. This parameter corresponds to the "hole standard deviation" parameter in FIG. 3. Increasing the value of this parameter, i.e., increasing the variation in the size of pixel regions detected as bubbles, causes more pixel regions to be detected as bubbles and masked, thereby suppressing erroneous detection of foreign objects.
[0041] A specific example of a parameter related to the opening process is a parameter that specifies the pixel-unit range from which noise is removed by the opening process. This parameter corresponds to the "noise removal" parameter in Figure 3. Increasing the value of this parameter, i.e., expanding the range from which noise is removed, reduces false detection of foreign objects.
[0042] The average brightness of air bubbles is a parameter that specifies the average brightness of air bubbles that may be contained in the liquid to be inspected. This parameter is used in the masking process and the opening process. This parameter corresponds to the parameter "average brightness of holes" in Figure 3. Increasing the value of this parameter makes it easier to distinguish between foreign objects and bubbles, thereby reducing false detection of foreign objects.
[0043] The parameter correction unit 107 increases or decreases the value of a parameter related to the above-mentioned erroneous detection of a foreign object according to the type of the parameter. For example, in the case of a parameter whose erroneous detection of a foreign object is suppressed by increasing the value of the parameter, the parameter correction unit 107 increases the value of the parameter by a preset value. The amount by which the parameter value is increased can be determined according to the degree of influence on the erroneous detection of a foreign object. For example, the amount by which the parameter value is increased can be specified by an operator. Also, a preset amount of increase determined according to the degree of influence on the erroneous detection of a foreign object may be adopted as the amount by which the parameter value is increased.
[0044] On the other hand, in the case of a parameter whose value can be reduced to suppress erroneous detection of a foreign object, parameter correction unit 107 reduces the parameter value by a preset value. The amount of reduction in the parameter value can be determined according to the degree of influence of the parameter on erroneous detection of a foreign object.
[0045] The erroneous detection determination unit 108 is a program that determines whether or not a foreign object has been erroneously detected based on the result of the foreign object detection process executed by the foreign object detection unit 106 .
[0046] FIG. 4 is a flowchart showing an example of a process executed by the inspection device 1 according to an exemplary embodiment.
[0047] In step S1, the attribute information acquisition unit 101 of the inspection device 1 acquires attribute information of the container to be inspected and the liquid in the container. In step S2, the parameter set acquisition unit 102 acquires a parameter set corresponding to the attribute information acquired by the attribute information acquisition unit 101 from a plurality of parameter sets prepared in advance. In step S3, the parameter setting unit 103 sets the parameter set acquired by the parameter set acquisition unit 102 as the initial value of the setting information of the inspection device 1.
[0048] In step S4, the inspection process control unit 104 executes an inspection process on the liquid in the container that does not contain any foreign matter, based on the parameter set set by the parameter setting unit 103.
[0049] In step S5, the image processing unit 105 acquires a plurality of captured images obtained by the inspection process. In step S6, the image processing unit 105 executes image processing on the acquired captured images. Details of the image processing executed by the image processing unit 105 will be described in detail with reference to FIG. In this image processing, a foreign body inspection process is executed to determine the presence or absence of a foreign body in the container to be inspected.
[0050] In step S7, the parameter correction unit 107 determines whether or not a foreign object has been detected based on the foreign object detection result obtained in the process of step S5. If it is determined that a foreign object has not been detected (NO), the process of Fig. 4 ends. On the other hand, if it is determined that a foreign object has been detected (YES), the process branches to step S8.
[0051] In step S8, the parameter correction unit 107 executes a parameter correction process for correcting parameters related to erroneous detection of a foreign substance based on the foreign substance detection result generated by the foreign substance inspection process, and the process of FIG. 4 ends.
[0052] FIG. 5 is a flowchart showing an example of image processing executed by the inspection device 1 according to an exemplary embodiment.
[0053] In step S10 shown in FIG. 5, the image processing unit 105 generates a difference image based on a plurality of captured images. In this embodiment, the image processing unit 105 generates a grayscale difference image. More specifically, in the first step S10, the image processing unit 105 generates a difference image between the first captured image and the second captured image. In the second step S10, the image processing unit 105 generates a difference image between the third captured image and the difference image generated in the first step S10. In this way, the image processing unit 105 generates difference images for all the generated captured images.
[0054] In step S11, the image processing unit 105 divides the difference image into a plurality of image regions. Each divided region corresponds to a divided image region. In step S12, the process shown in FIG. 6 is executed for each divided image region of the generated difference image.
[0055] In step S13, the image processing unit 105 determines whether the processes of steps S10 to S12 have been performed for all the acquired captured images. If it is determined that the processes of steps S10 to S12 have not been performed for all the acquired captured images (NO), the process returns to step S10, and step S10 is executed a second time. On the other hand, if it is determined that the processes of steps S10 to S12 have been performed for all the acquired captured images (YES), the process of FIG. 5 ends.
[0056] 6 is a flowchart showing another example of the process executed by the inspection device 1 according to an exemplary embodiment. This process corresponds to step S12 in FIG.
[0057] In step S20, the image processing unit 105 selects one divided image area from the multiple divided image areas and performs median filtering on the selected divided image area. In step S21, the image processing unit 105 performs binarization on the divided image area on which the median filtering has been performed.
[0058] In step S22, the image processor 105 executes a mask process on the binarized divided image region. In this mask process, bubbles in the divided image region are detected based on pattern matching that detects the same shape as a bubble, and the bubbles are masked. Note that, depending on the parameter values that are set, there is a possibility that all bubbles are not masked.
[0059] In step S23, the image processing unit 105 performs an opening process on the divided image region on which the mask process has been performed, thereby removing white noise within the divided image region.
[0060] In step S24, the foreign object detector 106 performs a foreign object detection process on the divided image region on which the opening process has been performed.
[0061] In step S25, image processing unit 105 determines whether or not foreign object detection processing has been performed on the last region to be divided in the immediately preceding step S24. If it is determined that foreign object detection processing has not been performed on the last region to be divided (NO), the process returns to step S20. In this case, the processes of steps S20 to S24 are performed on divided image regions that have not yet been selected. On the other hand, if it is determined that foreign object detection processing has been performed on the last region to be divided (YES), the process of FIG. 6 ends.
[0062] 7 is a flowchart showing an example of a parameter correction process executed by the inspection device 1 according to an exemplary embodiment. In step S30, the parameter correction unit 107 corrects the value of a parameter related to the erroneous detection of a foreign matter according to the type of the parameter.
[0063] In step S31, the image processing unit 105 performs the image processing shown in FIG. 6 on the captured image already acquired in step S5 of FIG. 4, using the parameters related to the erroneous detection of a foreign substance corrected in step S30.
[0064] In step S32, the erroneous detection determination unit 108 determines whether or not there has been an erroneous detection of a foreign object based on the result of the foreign object detection process executed using the parameters related to the erroneous detection of a foreign object corrected in step S30. If it is determined that there has been an erroneous detection of a foreign object (YES), the process returns to step S30. On the other hand, if it is determined that there has been no erroneous detection of a foreign object (NO), the parameter correction process in FIG. 7 ends.
[0065] FIG. 8 is a diagram showing main components of an inspection device 1 according to an exemplary embodiment. The inspection device 1 includes an attribute information acquisition unit 101, a parameter set acquisition unit 102, and a parameter setting unit 103. The attribute information acquisition unit 101 acquires attribute information of a translucent container and a liquid in the container, which are objects of inspection. The parameter set acquisition unit 102 acquires a parameter set corresponding to the attribute information acquired by the attribute information acquisition unit from among a plurality of parameter sets, which are setting information prepared in advance according to the attributes of the container and the liquid. The parameter setting unit 103 sets the parameter set acquired by the parameter set acquisition unit 102 as setting information of the inspection device.
[0066] By adopting this configuration, the setting information can be automatically set by inputting the attribute information of the container and the liquid in the container, which is a necessary condition when setting the setting information corresponding to a new product. Therefore, compared to setting the setting information manually, the setting time can be significantly shortened and the burden on the worker can be reduced.
[0067] The attributes of the container and the liquid include the type of container shape, the color of the container, and the color of the liquid. Therefore, the inspection device 1 can automatically set a parameter set according to the type of container shape, the color of the container, and the color of the liquid of a new product from among a plurality of parameter sets prepared in advance according to the type of container shape, the color of the container, and the color of the liquid.
[0068] Furthermore, in the above-described embodiment, the foreign object detection unit 106 performs a foreign object detection process to detect foreign objects in the liquid in the container by determining that a pixel area of a predetermined area or more exists in an image obtained by performing image processing on a captured image of the container in a state in which no foreign object is contained. Then, when a foreign object is erroneously detected by the foreign object detection unit 106, the parameter correction unit 107 corrects parameters related to the erroneous detection of a foreign object. In this way, even if a foreign object is erroneously detected, the parameters related to the erroneous detection of a foreign object can be automatically corrected, and the accuracy of foreign object detection can be improved.
[0069] Furthermore, in the above-described embodiment, image processing unit 105 executes image processing using the parameters related to the erroneous detection of a foreign object corrected by parameter correction unit 107. Next, foreign object detection unit 106 executes foreign object detection using the parameters related to the erroneous detection of a foreign object corrected by parameter correction unit 107. Parameter correction unit 107 corrects the parameters related to the erroneous detection of a foreign object until the erroneous detection of a foreign object by foreign object detection unit 106 is eliminated. This corrects the parameters related to the erroneous detection of a foreign object to values that do not cause erroneous detection of a foreign object, thereby improving the accuracy of foreign object detection.
[0070] In another embodiment, the inspection device 1 may include a code information acquisition unit that acquires code information such as a one-dimensional code or a two-dimensional code attached to a container to be inspected. Specific examples of the code information acquisition unit include a barcode reader and a two-dimensional code reader. In this embodiment, the code information attached to the container and the identification information of the parameter set are associated with each other, and the data table may be registered in the storage device 16 of the inspection device 1 or in the storage device of an external device with which the inspection device 1 can perform data communication.
[0071] The attribute information acquiring unit 101 refers to the data table and identifies the identification information of the parameter set associated with the code information acquired by the code information acquiring unit. Then, the attribute information acquiring unit 101 acquires a parameter set identified by the identification information of the parameter set associated with the code information acquired by the code information acquiring unit from among a plurality of parameter sets prepared in advance.
[0072] By employing this configuration, an operator can input code information of a product to be inspected, and automatically set setting information corresponding to that product.
[0073] In the above examples, the program includes instructions (or software code) that, when loaded into a computer, causes the computer to perform one or more functions described in the embodiments. The program may be stored on a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, the computer-readable medium or tangible storage medium includes random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technology, CD-ROM, digital versatile disk (DVD), Blu-ray® disk or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device. The program may be transmitted on a transitory computer-readable medium or communication medium. By way of example and not limitation, the transitory computer-readable medium or communication medium includes electrical, optical, acoustic, or other form of propagated signal.
[0074] The present disclosure is not limited to the above-described embodiments, and can be modified as appropriate without departing from the spirit and scope of the present disclosure. [Explanation of symbols]
[0075] 1. Inspection equipment 4. Divided image area 10 Processors 11 Input Devices 12 Rotation mechanism 13 Lighting equipment 14 Imaging Equipment 15 Communication Interface 16 Storage device 100 Parameter setting program 101 Attribute information acquisition section 102 Parameter set acquisition unit 103 Parameter setting section 104 Inspection processing control unit 105 Image processing section 106 Foreign object detection unit 107 Parameter correction section 108 False positive judgment unit
Claims
1. an attribute information acquisition unit that acquires attribute information of a translucent container that is an inspection target and a liquid in the container; a parameter set acquisition unit that acquires a parameter set corresponding to the attribute information acquired by the attribute information acquisition unit from a plurality of parameter sets that are setting information prepared in advance according to attributes of the container and the liquid; a parameter setting unit that sets the parameter set acquired by the parameter set acquisition unit as setting information for an inspection device; Equipped with Inspection equipment.
2. The inspection device according to claim 1 , wherein attributes of the container and the liquid include a type of shape of the container, a size of the container, a color of the container, and a color of the liquid.
3. a foreign object detection unit that performs a foreign object detection process to detect a pixel area having a predetermined area or more in an image obtained by performing image processing on a photographed image of the container in a state where the container does not contain a foreign object as a foreign object in the liquid in the container; a parameter correction unit that corrects a parameter associated with the erroneous detection of the foreign object when the foreign object is erroneously detected by the foreign object detection unit; The inspection device according to claim 1 or 2, comprising:
4. 4. The inspection device according to claim 3, wherein the parameter correction unit corrects the parameter related to the erroneous detection of the foreign matter by increasing or decreasing a value of the parameter related to the erroneous detection of the foreign matter depending on a type of the parameter related to the erroneous detection of the foreign matter.
5. The inspection device according to claim 4 , wherein the parameters related to erroneous detection of a foreign object include a threshold value that defines the predetermined area and a parameter related to the image processing.
6. 6. The inspection device according to claim 5, wherein the parameters relating to image processing include parameters relating to median filtering, binarization, masking, and opening.
7. an image processing unit that performs the image processing on the captured image using the parameters related to the erroneous detection of the foreign matter corrected by the parameter correction unit to generate an image, the foreign object detection unit executes the foreign object detection process by using the image generated by the image processing unit and the parameters related to the erroneous detection of the foreign object corrected by the parameter correction unit; The inspection device according to claim 3 , wherein the parameter correction section corrects the parameter related to erroneous detection of the foreign matter until erroneous detection of the foreign matter by the foreign matter detection section is eliminated.
8. The inspection device, Acquire attribute information of a translucent container to be inspected and a liquid in the container; acquiring a parameter set corresponding to the acquired attribute information from among a plurality of parameter sets which are setting information prepared in advance according to attributes of the container and the liquid; The acquired parameter set is set as setting information of the inspection device. How to set parameters.
9. For computers, acquiring attribute information of a translucent container to be inspected and a liquid in the container; acquiring a parameter set corresponding to the acquired attribute information from a plurality of parameter sets which are setting information prepared in advance according to attributes of the container and the liquid; The acquired parameter set is set as the setting information of the inspection device. Parameter setting program.
Citation Information
Patent Citations
Apparatus and method for inspecting foreign matter on liquid surface
JP2001296251A
Device and system for inspecting foreign matter in liquid filled in transparent container
JP2002318202A
Device and method for detecting foreign matter in container
JP2004028930A
Method and apparatus for inspecting circuit pattern
JP2006179889A
Off-line adjustment device
JP2013205378A
