Determination device, determination system, computer program, and determination method

The determination device improves container inspection accuracy and reduces costs by using two cameras and a trained model to analyze image features from different radial directions, addressing the inefficiencies of multi-camera systems and high-speed inaccuracies.

JP7565808B2Active Publication Date: 2024-10-11HI-THINK SOKEN CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2021008181
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-01-21
Publication Date
2024-10-11
Estimated Expiration
2041-01-21

AI Technical Summary

Technical Problem

Existing container inspection systems require multiple cameras and extensive image processing, leading to increased production costs and potential inaccuracies in high-speed inspections, particularly when detecting mismatches between container content and labeling.

Method used

A determination device that uses two cameras to image the side surface of cylindrical objects from different radial directions, extracts image features using color and pattern information, and employs a trained model to determine object type based on these features, reducing the number of cameras and image processing while improving accuracy.

Benefits of technology

The system enhances the accuracy of determining object type by utilizing a trained model to analyze image features robust to rotation and high-speed conveyance, reducing production costs and improving detection precision without manual threshold adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565808000001
    Figure 0007565808000001
  • Figure 0007565808000002
    Figure 0007565808000002
  • Figure 0007565808000003
    Figure 0007565808000003
Patent Text Reader

Abstract

To provide a determination apparatus, a determination system, a computer program, a determination method, and a learned model generating method which can improve accuracy in determination of a kind of an object.SOLUTION: A determination apparatus according to the present invention has an acquiring unit for acquiring a pair of images obtained by capturing a side surface of a cylindrical object in different diameter directions, an extracting unit for extracting an image feature amount of each of a pair of the acquired images, and a kind determination unit for inputting the image feature amount of each of a pair of the extracted images to determine a kind of the object based on a learned model for outputting identification information for each of image regions of the side surface of the object in which the pair of images are captured and each of the identification information output by the learned model.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a determination device, a determination system, and a computer program. and How to judge By law Regarding. [Background technology]

[0002] When containers such as cans, bottles, and plastic bottles are transported at high speed on a conveyor line, the exterior of the container is photographed with a camera to detect whether or not different types of containers have been mixed in. The reason for conducting such inspections for mixed containers is that if the product labeled on the container does not match the content, it could lead to a serious accident or damage the manufacturer's credibility.

[0003] Patent Document 1 discloses an apparatus that uses four cameras to capture images of the surroundings of an inspection object such as a can, acquires four images, combines the four acquired images to create a single image of the exterior surface, and compares the created image of the exterior surface with a normal image of the exterior surface through image processing to inspect for defects such as dissimilar labels. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2009-128261 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, the device of Patent Document 1 requires the introduction of four cameras, which increases production costs. In addition, when the created outer surface image is compared with a normal outer surface image by image processing, the amount of image processing increases, and there is a possibility that the inspection object being transported at high speed on the transport line cannot be inspected accurately. On the other hand, as a method different from the pattern matching method, a method of detecting different labels by extracting the color distribution (distribution of RGB values) of the created outer surface image and comparing the extracted color distribution with a manually determined threshold is also conceivable. However, not only does the detection result depend on the manually determined threshold, but even images of different labels may have similar color distributions, and the detection accuracy of the inspection object is not sufficient. Considering that a mismatch between the product displayed on the container and the contents may cause a serious accident or damage the reliability of the manufacturer, it is desirable to improve the accuracy of determining the type of the object.

[0006] The present invention has been made in consideration of the above circumstances, and provides a determination device, a determination system, and a computer program that can improve the accuracy of determining the type of an object. and How to judge Law The purpose is to provide. [Means for solving the problem]

[0007] The present application includes multiple means for solving the above-mentioned problems. As one example, a determination device includes an acquisition unit that acquires a set of images obtained by imaging the side of a cylindrical object from different radial directions, an extraction unit that extracts image features of each of the set of images acquired by the acquisition unit, a trained model that inputs the image features of each of the set of images extracted by the extraction unit and outputs identification information for each imaging region of the side of the object in which the set of images are captured, and a type determination unit that determines the type of the object based on the identification information output by the trained model. Effect of the Invention

[0008] According to the present invention, it is possible to improve the accuracy of determining the type of an object. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a schematic diagram illustrating an example of a configuration of a determination system. [Diagram 2] FIG. 2 is a schematic diagram showing the appearance of a side surface of a can. [Diagram 3] FIG. 13 is a schematic diagram showing an example of an imaging area of ​​a can. [Figure 4] FIG. 4 is a schematic diagram illustrating an example of processing by a feature amount extraction unit. [Diagram 5] FIG. 2 is a schematic diagram illustrating an example of an image co-occurrence matrix. [Figure 6] FIG. 13 is a schematic diagram showing an example of a change in an image co-occurrence matrix. [Figure 7] FIG. 13 is a schematic diagram showing an example of processing of a trained model. [Figure 8] FIG. 11 is a schematic diagram showing an example of a method for setting an identification label. [Figure 9] FIG. 4 is a schematic diagram showing the relationship between product types and identification labels. [Figure 10] FIG. 13 is a schematic diagram showing an example of a method for determining a product type. [Figure 11] FIG. 13 is a schematic diagram showing an example of a method for generating teacher data. [Figure 12] FIG. 1 is a schematic diagram showing an example of a method for generating a trained model. [Figure 13] 13 is a schematic diagram showing a display example of a product type determination screen. FIG. [Figure 14] 10 is a flowchart showing an example of a processing procedure for type determination by a determination device. [Figure 15] 13 is a flowchart showing an example of a processing procedure for generating a trained model 571. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a schematic diagram showing an example of the configuration of a determination system. The determination system includes a determination device 50 and two cameras (imaging devices) 20. The two cameras 20 are arranged facing each other toward an object on a conveyor line (belt conveyor) 1 that conveys cylindrical objects, and capture most of the side of the object (also referred to as the "front side" and the "back side" for convenience). Hereinafter, in this specification, the object will be described as a can 10 (e.g., a beverage can), but the object is not limited to a can, and also includes containers such as bottles and PET bottles, and objects having a similar shape. Note that the can 10 can rotate in a circumferential direction due to vibration or the like when moving on the conveyor line 1. The conveyor line shown in FIG. 1 can be, for example, a stage before a boxing process in which contents have already been poured into the can 10, but is not limited thereto.

[0011] The determination device 50 includes a control unit 51 that controls the entire device, an interface unit 52, a storage unit 53, an image processing unit 54, an operation unit 55, a display panel 56, a learning device 57, a type determination unit 58, a combination determination unit 59, and an output unit 60. The control unit 51 can be composed of a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), or the like.

[0012] Interface unit 52 has an interface function with two cameras 20. Interface unit 52 has a function as an acquisition unit, and acquires a pair of images G1, G2 obtained by capturing images of the side surface of can 10 from different radial directions with camera 20. The different radial directions can be, for example, an angle between two radial directions of 180 degrees (on a straight line), but it is not necessary for the angle to be strictly 180 degrees as long as they are approximately on a straight line.

[0013] FIG. 2 is a schematic diagram showing the appearance of the side of the can 10. As shown in FIG. 2, a design that identifies the product (goods) is printed on the side of the can 10. In addition, in the case of PET bottles and the like, a film with a design printed thereon is attached. The design shows a pattern (for example, letters, designs, etc.) using various colors. FIG. 2A shows the front side of the design of the can 10, and FIG. 2B shows the back side of the design of the can 10. If the type of product is different, all or part of the design displayed on the can 10 is different. As described above, the can 10 can rotate in the circumferential direction due to vibration or the like when moving on the conveyor line 1. Therefore, even if the product is the same, the designs captured by the two cameras 20 will be shifted in the circumferential direction depending on the rotation position of the can 10. In addition, the design is also simply called a "label."

[0014] Fig. 3 is a schematic diagram showing an example of an imaging area of ​​can 10. In Fig. 3A, area 21 shown by a dashed line indicates an imaging area imaged by one camera 20, and in Fig. 3B, area 22 shown by a dashed line indicates an imaging area imaged by the other camera 20. If Fig. 3A shows the front side of can 10, Fig. 3B shows the back side of can 10. For example, if, in a pair of images G1 and G2, the area in which image G1 is captured is imaging area 21, the area in which image G2 is captured is imaging area 22.

[0015] The storage unit 53 is configured with a semiconductor memory, a hard disk, or the like, and can store necessary information and the processing results by the control unit 51. The storage unit 53 also stores a set of images acquired via the interface unit 52.

[0016] The display panel 56 can be configured as a liquid crystal display or an organic EL (Electro Luminescence) display.

[0017] The operation unit 55 can be configured with, for example, a keyboard, a mouse, etc. The operation unit 55 may also be configured with a touch panel or the like, and may be used to input characters on the display panel 56, and to operate icons, images, characters, etc. displayed on the display panel 56.

[0018] The image processing unit 54 includes a feature amount extraction unit 541, which serves as an extraction unit and will be described later, and a vectorization processing unit 542. First, the extraction of feature amounts will be described.

[0019] 4 is a schematic diagram showing an example of the processing of the feature extraction unit 541. The feature extraction unit 541 extracts image features of each of a pair of images G1 and G2 acquired via the interface unit 52. The image features include a color feature C1 and a pattern feature P1 of the image G1, and a color feature C2 and a pattern feature P2 of the image G2.

[0020] The color feature C1 includes, for example, the RGB values ​​or the RGB ratios of the image G1. The color feature C2 includes, for example, the RGB values ​​or the RGB ratios of the image G2. If the RGB values ​​are expressed by numerical values ​​ranging from 0 to 255, each pixel of the image is expressed by a numerical value ranging from 0 to 255. The RGB values ​​are so-called absolute values, and represent the average RGB values ​​of the entire image, and can be expressed, for example, as R=100, G=200, and B=150 for the entire image. The RGB ratios represent the relative ratios of RGB in the entire image, and can be expressed, for example, as R=30%, G=50%, and B=20% for the entire image. At least one of the RGB values ​​and the RGB ratios can be used as the color feature. The color feature may be a value of a color representation method convertible to RGB or a ratio of a color representation method convertible to RGB. Color representations that can be converted to RGB include, for example, the HSV color space consisting of three components: hue, saturation, and value, or the HLS color space consisting of three components: hue, saturation, and lightness / luminance.

[0021] The pattern feature P1 includes image co-occurrence information related to the luminance value of image G1, and the pattern feature P2 includes image co-occurrence information related to the luminance value of image G2. The image co-occurrence information (also called an "image co-occurrence matrix") includes matrix information in which the luminance value of a set of multiple pixels specified by a predetermined arrangement pattern in an image is used as an index, and the frequency of the set of multiple pixels across the image is used as an element. Note that other pixel values ​​may be used instead of the luminance value.

[0022] FIG. 5 is a schematic diagram showing an example of an image co-occurrence matrix. For ease of explanation, an image is a block of 5×5 images (pixels). The pixel values ​​represent brightness values. The predetermined arrangement pattern is a pattern that identifies a plurality of pixels that are vertically spaced apart by three pixels. In the example of FIG. 5, the arrangement pattern is represented by a dashed line extending three pixels in the vertical direction. If the plurality of pixel sets are pixel sets with brightness values ​​of 1 and 2, respectively, the index of the image co-occurrence matrix is ​​(1, 2). Since the number of pixel sets with brightness values ​​of 1 and 2 in the entire image is 4, the element of (1, 2) in the image co-occurrence matrix is ​​4. The image co-occurrence matrix is ​​a two-dimensional matrix, and if the range of brightness values ​​is 0 to 255, it becomes a 256×256 matrix. That is, the brightness value value becomes the index of the image co-occurrence matrix (rows 1 to 256, columns 1 to 256), and the element becomes the number (frequency) of pixel sets in the entire image. It should be noted that the predetermined arrangement pattern is not limited to the vertical direction, but may be the horizontal direction or the diagonal direction, and the number of pixels is not limited to three.

[0023] Next, a change in the image co-occurrence matrix when the product (can) is rotated slightly in the circumferential direction and when the type of product is changed will be described.

[0024] FIG. 6 is a schematic diagram showing an example of a change in the image co-occurrence matrix. In FIG. 6, a change from the image co-occurrence matrix exemplified in FIG. 5 will be described. The image in FIG. 6A is a schematic representation of a case where a product (can) is rotated slightly in the circumferential direction. In FIG. 6A, for convenience, the image is shifted by one pixel to the right compared to the example in FIG. 5. In this case, the number of pairs of pixels with brightness values ​​of 1 and 2 in the entire image remains 4, so the element (1, 2) of the image co-occurrence matrix remains 4. That is, the image co-occurrence matrix (pattern feature) of this embodiment can be said to be a feature that is robust against rotation because the amount of change in the elements of the image co-occurrence matrix is ​​small with respect to the rotation of the object in the circumferential direction, and is a suitable feature as a feature of an image of an object such as a can 10 that is rotatably moving on a conveying line 1.

[0025] The image in FIG. 6B is a schematic representation of a case where the type of product has changed. In FIG. 6B, for example, the design is different depending on the type of product. Since there is no pair of pixels with brightness values ​​of 1 and 2 that are 3 pixels apart vertically in the layout pattern, the element (1, 2) of the image co-occurrence matrix is ​​0. In this way, when the type of product changes and the design changes, the pattern feature also changes, making it suitable as a feature for accurately determining the type of product.

[0026] When extracting pattern features, the feature extraction unit 541 may use one or more predetermined arrangement patterns. When using multiple arrangement patterns (for example, a vertical pattern, a horizontal pattern, pixel spacing, etc.), an image co-occurrence matrix is ​​obtained for each arrangement pattern.

[0027] The learning device 57 includes a trained model 571 generated by machine learning. The machine learning may be, for example, a random forest using multiple decision trees, a multi-layered neural network (deep learning), or a network using multiple support vector machines (SVMs). Other machine learning may also be used. In this specification, a random forest is used as an example. The learning device 57 may be configured by combining hardware such as a CPU (for example, a multi-processor having multiple processor cores), a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), and an FPGA (Field-Programmable Gate Array).

[0028] When trained model 571 receives the image features of each of a set of images extracted by feature extraction unit 541, it outputs an identification label (also referred to as "identification information") for each captured area of ​​the side of can 10 from which the set of images are captured. The captured areas are areas of the entire side of can 10 that are captured by camera 20. The identification label may be any information that can identify the pattern of can 10 captured in the image, and any required numerical value or code may be used. A specific description will be given below.

[0029] FIG. 7 is a schematic diagram showing an example of processing of the trained model 571. A feature vector (also referred to as an "image feature") obtained by vectorizing an image feature is input to the trained model 571. Note that the image feature and the feature vector extracted from an image are formally different, but substantially indicate the same feature. As shown in FIG. 7, the vectorization processing unit 542 vectorizes a color feature C1 and a pattern feature P1 extracted from one image G1 of a pair of images, and outputs a feature vector V1. The vectorization processing unit 542 also vectorizes a color feature C2 and a pattern feature P2 extracted from the other image G2 of the pair of images, and outputs a feature vector V2. The feature vectors V1 and V2 can combine different feature amounts, namely, the color feature and the pattern feature of an image. In FIG. 7, two vectorization processing units 542 are shown arranged in parallel. This indicates that the image features extracted from each of a pair of images G1 and G2 are vectorized. Alternatively, one vectorization processing unit 542 may vectorize the image features extracted from each of a pair of images G1 and G2 in sequence.

[0030] The trained model 571 includes a plurality of decision trees. When a feature vector V1 corresponding to one image G1 of a pair of images G1 and G2 is input, each decision tree uses each component of the input feature vector V1 as a variable (attribute) used for conditional branching of the decision tree, performs conditional branching according to the value of each component, and outputs an identification label. The trained model 571 performs majority voting on the output results of each decision tree and outputs a final identification label L1. The trained model 571 can output a reliability R1 of the identification label L1. The reliability is an index indicating the certainty of the identification label, and can be expressed as a number between "0" and "1", for example. In this case, "1" means a reliability of 100%. Similarly, when a feature vector V2 corresponding to the other image G2 of a pair of images G1 and G2 is input, the trained model 571 outputs an identification label L2 and a reliability R2. 7 shows two feature vectors V1 and V2 input in parallel to trained model 571, but the two feature vectors V1 and V2 may be input in series in order. Identification label L1 is information for identifying the pattern of can 10 in the imaging area where image G1 was captured, and identification label L2 is information for identifying the pattern of can 10 in the imaging area where image G2 was captured. In other words, the identification labels L1 and L2 make it possible to identify the pattern on the front side and the pattern on the back side of can 10.

[0031] Next, an identification label for identifying the type of product (can 10) will be described.

[0032] FIG. 8 is a schematic diagram showing an example of a method for setting an identification label. FIG. 8 shows a can 10 as viewed from above. As shown in FIG. 8, the circumference of the can 10 is divided into three divided regions at 120 degrees. Different identification labels 1, 2, and 3 are set in each of the three divided regions. That is, three identification labels 1 to 3 are set for one product (can 10). By setting the identification labels in this manner, when the sides (front and back sides) of the can 10 are imaged with the two cameras 20, the imaged regions of the front and back sides each contain two identification labels, but one of the two identification labels becomes dominant (occupies a larger area in the imaged region), so that an identification label that identifies the imaged region is always present. Even if the two cameras 20 are installed at fixed positions and the can 10 on the conveyor line 1 moves while rotating in the circumferential direction, an identification label that identifies the imaged region is always present.

[0033] In the example of Fig. 8, the side of can 10 is divided into three equal parts, but this is not limited to this. Other angles may be used to determine the division areas depending on the amount of information of the design printed on the side of can 10. For example, the angle may be smaller than 120 degrees for a side with a large amount of information of the design, and conversely, the angle may be larger than 120 degrees for a side with a small amount of information of the design. For example, the side of can 10 may be divided into 110 degrees, 120 degrees, and 130 degrees.

[0034] FIG. 9 is a schematic diagram showing the relationship between the product type and the identification label. As shown in FIG. 9, when the type of the product (can 10) is A, the identification labels A1, A2, and A3 are set. When the type of the product (can 10) is B, the identification labels B1, B2, and B3 are set. When the type of the product (can 10) is C, the identification labels C1, C2, and C3 are set. When the type of the product (can 10) is D, the identification labels D1, D2, and D3 are set. When the type of the product (can 10) is E, the identification labels E1, E2, and E3 are set. The same applies to other product types. Here, depending on the product, the same design as that of other products may be printed, so for example, the identification labels A3 and D3 may be the same. When the type of the product (can 10) is A, the identification labels A1, A2, and A3 are set. The relationship shown in FIG. 9 may be stored in the memory unit 53, for example.

[0035] Type determination unit 58 determines the type of can 10 based on each identification label output by trained model 571 (learning device 57). More specifically, combination determination unit 59 determines the combination of each identification label output by trained model 571, and type determination unit 58 determines the type of can 10 based on the determination result of combination determination unit 59.

[0036] FIG. 10 is a schematic diagram showing an example of a method for determining a product type. As shown in FIG. 10A, the identification labels output by the trained model 571 are identified as identification labels A1 and A2. The combination determination unit 59 determines the combination of the identification labels A1 and A2. As illustrated in FIG. 9, it is understood that the combination of the identification labels A1 and A2 is a combination that corresponds to the product type A. That is, since the combination of the identification labels A1 and A2 is a combination that actually exists in the product (can 10), the combination determination unit 59 outputs the input identification labels A1 and A2 as they are to the type determination unit 58. The type determination unit 58 outputs the product type A by referring to the relationship illustrated in FIG. 9.

[0037] On the other hand, as shown in FIG. 10B, the identification labels output by trained model 571 are identified as identification labels B1 and A1. Combination determination unit 59 determines the combination of identification labels B1 and A1. As illustrated in FIG. 9 above, it is found that the combination of identification labels B1 and A1 is a combination that does not actually exist in the product (can 10). If the combination determined by combination determination unit 59 is a combination that does not exist in can 10, type determination unit 58 determines the type of can 10 based on the reliability of each of the identification labels B1 and A1.

[0038] Specifically, the combination determination unit 59 acquires the reliability of each of the identification labels B1 and A1, and determines the magnitude relationship of each reliability. For example, if the reliability of the identification label B1 is greater than that of the identification label A1, the identification label A1 with the lower reliability is corrected to match the identification label B1 with the higher reliability. In the example of FIG. 10, the identification label A1 is corrected to the identification label B2 or B3. The combination determination unit 59 outputs the corrected identification labels (B1 and B2, or B1 and B3) to the type determination unit 58. The type determination unit 58 outputs the product type B by referring to the relationship illustrated in FIG. 9 described above.

[0039] Cans moving on the conveyor line can rotate in the circumferential direction as they move. Therefore, even if the product is the same, the images captured by the camera are different each time (i.e., for each moving product), resulting in a large number of different images. In addition, if the side of a can is photographed in sections using multiple cameras, the images captured by each camera will be different, further increasing the number of image combinations. In addition, cans are conveyed at high speed (e.g., 3,000 cans / min) on the conveyor line, so product type determination must be performed at high speed.

[0040] According to this embodiment, a set of images is obtained by capturing images of the side of a can 10 moving on a conveying line 1 from different radial directions, image features of each of the captured set of images are extracted, and when the image features of each of the extracted set of images are input, a trained model 571 is used which outputs an identification label for each of the imaged areas of the side of the can 10 in which the set of images are captured.By using this trained model 571, even if there are a large number of combinations of images captured by camera 20, the pattern of the imaged area captured by camera 20 can be accurately identified.

[0041] In addition, in this embodiment, since a random forest is used as machine learning, heterogeneous features (for example, color features and pattern features) and discrete features can be applied in feature classification on a dimensional basis (variables used for conditional branching of a decision tree). In addition, since a method based on a decision tree is used, the output result is relatively easy to explain, and calculations using a decision tree can be parallelized, allowing for high-speed calculations. In addition, there is no need to manually determine a threshold value for classification, so human intervention is not required, and the trained model 571 can perform optimal classification and has high prediction accuracy. In addition, the reliability of the output result (identification label) can be calculated.

[0042] In addition, in this embodiment, by using image features extracted from an image, it is not necessary to perform image processing on the side image obtained by, for example, capturing images of the side of a can with multiple cameras and combining (expanding) the captured images, and high-speed processing can be realized. Also, since the number of cameras used can be reduced to two, it is possible to reduce the number of cameras and the amount of image processing by reducing the number of images captured by the cameras, compared to a configuration in which, for example, four cameras are used to capture the entire circumference of a can, which contributes to reducing production costs.

[0043] Furthermore, in this embodiment, color features and pattern features are used as image features, so that it is possible to prevent deterioration in judgment accuracy that is simply due to ambiguity in parameters of statistical distributions such as color distribution, and to perform highly accurate product type judgment.

[0044] Furthermore, in this embodiment, RGB values ​​(e.g., average values ​​for the entire image) or relative RGB proportions are used as color features, so that even if the can 10 rotates circumferentially while moving on the conveying line 1, the fluctuations in the color features can be kept small, enabling highly accurate product type determination.

[0045] In addition, in this embodiment, an image co-occurrence matrix is ​​used as the pattern feature, so that even if the cans 10 rotate in the circumferential direction while moving on the conveyor line 1, the fluctuation in the pattern feature can be kept small, enabling highly accurate product type determination. Furthermore, by using image feature values ​​that are robust against the rotation of the cans 10, highly accurate product type determination is possible even when there are a large number of image combinations.

[0046] Furthermore, in this embodiment, the combination of identification labels obtained from a set of images is determined, and if the combination of identification labels does not actually exist, correction is made according to the reliability of the identification labels (reliability of the results), thereby enabling the product type to be determined with even greater accuracy.

[0047] Next, a method for generating the trained model 571 will be described.

[0048] FIG. 11 is a schematic diagram showing an example of a method for generating training data. As shown in FIG. 11, the can 10 is rotated in the circumferential direction by a predetermined angle α. Each time the can 10 is rotated by the predetermined angle α, the side of the can 10 is imaged by the camera 20. Here, the angle α is set to 10 degrees, but is not limited to 10 degrees. As described in FIG. 8, the entire circumference of the can 10 is divided into three divided regions at 120 degrees, and different identification labels 1, 2, and 3 are set for each of the three divided regions. Therefore, in the annotation, a different identification label is set each time the total rotation angle of the can 10 becomes 120 degrees. In FIG. 11, identification labels 1, 2, and 3 are set. Through such operations, identification label 1 is set for images T1, T2, ..., T12 (rotation angle α=0 degrees, 10 degrees, ..., 110 degrees), identification label 2 is set for images T13, T14, ..., T24 (rotation angle α=120 degrees, 130 degrees, ..., 230 degrees), and identification label 3 is set for images T25, T26, ..., T36 (rotation angle α=240 degrees, 250 degrees, ..., 350 degrees). Similar annotations can be performed on cans 10 of other types of products to collect training data.

[0049] FIG. 12 is a schematic diagram showing an example of a method for generating a trained model 571. The trained model 571 is generated using the training data shown in the example of FIG. 11. A part of the collected training data is used as training data, and the rest is used as evaluation data. A plurality of data sets are generated from the training data. The plurality of data sets can be generated by bootstrap sampling (extraction with replacement). As shown in FIG. 12, a certain data set can include image features (specifically, feature vectors) and corresponding identification labels 1 of images T1 to T12, image features and corresponding identification labels 2 of images T13 to T24, and image features and corresponding identification labels 3 of images T25 to T36. In this case, all or a part of the image features of images T1 to T12, images T13 to T24, and images T25 to T36 can be randomly assigned.

[0050] Image feature values ​​of the images T1 to T12 are input to the learning model 571a (a model where machine learning has not been performed or is in progress), and a decision tree is created so that the identification label output by the learning model 571a approaches the identification label 1, to generate a trained model 571. Similarly, image feature values ​​of the images T13 to T24 are input to the learning model 571a, and a decision tree is created so that the identification label output by the learning model 571a approaches the identification label 2, to generate a trained model 571. Also, image feature values ​​of the images T25 to T36 are input to the learning model 571a, and a decision tree is created so that the identification label output by the learning model 571a approaches the identification label 3, to generate a trained model 571. In this case, too, all or part of the image feature values ​​of the images T1 to T12, images T13 to T24, and images T25 to T36 can be randomly assigned.

[0051] Once the trained model 571 is generated, the estimation error between the identification label output by the trained model 571 and the correct identification label is calculated using the evaluation data, and if necessary, the machine learning is repeated again.

[0052] As described above, the method of generating the learning model involves setting identification labels for identifying each of a plurality of partitioned regions obtained by dividing the side surface of can 10 in the circumferential direction, acquiring a plurality of images obtained by imaging the side surface of can 10 each time can 10 is rotated in the circumferential direction by a predetermined angle, extracting image features for each of the acquired images, and generating a learned model such that, when the extracted image features are input, an identification label set for the imaging region from which the image from which the image features were extracted is captured is output. Note that the generation of learned model 571 may be performed by determination device 50 or by a separate device.

[0053] Fig. 13 is a schematic diagram showing an example of the product type determination screen. The product type determination screen displays the product name (or the product name), a set of images captured by two cameras 20 (in Fig. 13, an image of the front side and an image of the back side), an identification label for the set of images (in Fig. 13, the identification labels are A1 and A2), a counter value for the captured can 10 (indicating, for example, the number of the can 10 on the conveyor line 1), a "normal" icon, a "reject" icon, and the like.

[0054] The product type determination screen may be displayed for all cans 10 moving on the conveyor line 1, or may be displayed when a preset condition is met (for example, when the determination device 50 detects the inclusion of a different type of can). When displaying all cans 10, the determination results for the cans 10 may be shared among multiple display devices, taking into account the high speed of conveyance. Examples of cans being mixed in include a non-alcoholic beverage in an alcoholic beverage can, an alcoholic beverage in a non-alcoholic beverage can, or a beverage different from the beverage of the product displayed on the can.

[0055] As described above, the control unit 51 generates display data to display each identification label output by the trained model 571 in association with an image in which an imaging area identified by each identification label is captured.

[0056] The output unit 60 outputs to an external display device the display data generated by the control unit 51. The display device can display a product type determination screen as shown in FIG.

[0057] The operator checks the product type determination screen, and if he / she determines that no different types of cans have been mixed in, he / she can operate the "normal" icon, and if he / she determines that different types of cans have been mixed in, he / she can operate the "reject" icon. When the "reject" icon is operated, the can 10 with the corresponding counter value is rejected from the conveyor line 1 by the rejection device, and it is possible to prevent it from being mistakenly sent to the packing process.

[0058] When the inclusion of a different type of can is detected, the different type of can may be removed from the conveyor line 1 by an removing device without the intervention of an operator.

[0059] 14 is a flowchart showing an example of a processing procedure for type determination by determination device 50. For convenience, the following description will be given with control unit 51 as the main processor of the processing. Control unit 51 acquires a set of images of a product (can 10) from two cameras 20 (S11). Control unit 51 extracts color features and pattern features from each of the set of images (S12), and calculates feature vectors for each of the set of images from the extracted color features and pattern features (S13).

[0060] The control unit 51 inputs the calculated feature vector to the trained model 571 (S14). The control unit 51 determines the combination of identification labels output by the trained model 571 (S15), and if the combination is normal (normal in S15), determines the type of product based on the combination of identification labels (S16), and performs the process of step S19 described below.

[0061] If the combination is abnormal (abnormal in S15), the control unit 51 compares the reliability of the identification labels (S17), corrects the identification label with the smaller reliability (S18), and performs the process of step S16.

[0062] The control unit 51 displays the identification label and a pair of images in association with each other (S19), and determines whether or not to end the process (S20). If the process is not to be ended (NO in S20), the control unit 51 repeats the process from step S11 onward. If the process is to be ended (YES in S20), the control unit 51 ends the process.

[0063] 15 is a flowchart showing an example of a processing procedure for a method of generating a trained model 571. The product is rotated 10 degrees in a circumferential direction and images are taken, and different identification labels are set for the images obtained by the image capture every 120 degrees (S31). The control unit 51 extracts color features and pattern features from each image (S32), and calculates a feature vector for each image (S33).

[0064] The control unit 51 trains the learning model 571a using the feature vector of each image and the identification label of each image (S34). The control unit 51 determines whether or not there are other types of products (S35), and if there are other types of products (YES in S35), repeats the processing from step S31 onwards. If there are no other types of products (NO in S35), the control unit 51 generates a trained model (S36) and ends the processing.

[0065] The determination device of this embodiment includes an acquisition unit that acquires a set of images obtained by imaging the side of a cylindrical object from different radial directions, an extraction unit that extracts image features of each of the set of images acquired by the acquisition unit, a trained model that inputs the image features of each of the set of images extracted by the extraction unit and outputs identification information for each imaging region of the side of the object from which the set of images were captured, and a type determination unit that determines the type of the object based on the identification information output by the trained model.

[0066] In the determination device of this embodiment, the image feature amount includes a color feature amount and a pattern feature amount of the image.

[0067] In the determination device of this embodiment, the color feature amount includes RGB values ​​of the image, a ratio of RGB of the image, values ​​of color representations convertible to RGB including HSV of the image, or a ratio of the color representations.

[0068] In the determination device of this embodiment, the pattern feature amount includes image co-occurrence information related to the luminance value of the image.

[0069] In the determination device of this embodiment, the image co-occurrence information includes matrix information in which the luminance value of a set of multiple pixels identified by a predetermined arrangement pattern within the image is used as an index, and the frequency of the set of multiple pixels across the image is used as an element.

[0070] The determination device of this embodiment includes a combination determination unit that determines the combination of each piece of identification information output by the trained model, and the type determination unit determines the type of the object based on the determination result of the combination determination unit.

[0071] In the determination device of this embodiment, the trained model outputs the reliability of the identification information, and the type determination unit determines the type of the object based on the reliability when the combination determined by the combination determination unit is a combination that does not exist in the object.

[0072] The determination device of this embodiment includes an output unit that outputs display data to display each piece of identification information output by the trained model in association with an image of a partitioned area identified by each piece of identification information acquired by the acquisition unit.

[0073] The judgment system of this embodiment includes the above-mentioned judgment device and a plurality of imaging devices that image the side of a cylindrical object from different radial directions, and the judgment device acquires a set of images obtained by imaging with the plurality of imaging devices.

[0074] The computer program of this embodiment causes a computer to execute a process of acquiring a set of images obtained by imaging the side of a cylindrical object from different radial directions, extracting image features of each of the acquired set of images, inputting the extracted image features of each of the set of images into a trained model, and determining the type of the object based on identification information or the reliability of the identification information of each of the imaging regions in which the set of images were captured of the side of the object, which is output by the trained model.

[0075] The determination method of this embodiment involves imaging the side of a cylindrical object that is circumferentially rotatable and moving on a conveying line from different radial directions using multiple imaging devices, and the determination device acquires a set of images obtained by imaging using the multiple imaging devices, extracts image features for each of the acquired set of images, inputs the extracted image features for each of the set of images into a trained model, and determines the type of the object based on the identification information or reliability of the identification information for each of the imaging regions in which the set of images were captured, which are output by the trained model.

[0076] The trained model generation method of this embodiment sets identification information that identifies each of a plurality of divided regions of a side of a cylindrical object that is divided circumferentially, acquires a plurality of images obtained by imaging the side of the object each time the object is rotated circumferentially by a predetermined angle, extracts image features from each of the acquired images, and generates a trained model such that, when the extracted image features are input, the identification information set for the imaging region from which the image from which the image features were extracted was captured is output. [Explanation of symbols]

[0077] 1. Conveyor Line 10 cans 20 Camera 21, 22 Imaging area 50 Judgment device 51 Control section 52 Interface section 53 Memory section 54 Image processing section 541 Feature Extraction Unit 542 Vectorization Processing Unit 55 Operation section 56 Display Panel 57 Learning Unit 571 trained models 571a Learning Model 58 Type determination section 59 Combination Judgment Section 60 Output section

Claims

1. an acquisition unit that acquires a set of images obtained by imaging a side surface of a cylindrical object from different radial directions; an extracting unit that extracts image features of each of the set of images acquired by the acquiring unit; a trained model that receives image feature amounts of each of the set of images extracted by the extraction unit and outputs identification information of each of the imaging regions of the side surface of the object in which the set of images are captured; A type determination unit that determines a type of the object based on each piece of identification information output by the trained model; a combination determination unit that determines a combination of each piece of identification information output by the trained model; Equipped with The trained model is Outputting the reliability of the identification information; The type determination unit is When the combination determined by the combination determination unit is a combination that does not exist in the object, a type of the object is determined based on the reliability. Judgment device.

2. The image feature amount is including color features and pattern features of the image; The determination device according to claim 1 .

3. The color feature amount is The value of the RGB of the image, the ratio of the RGB of the image, the value of a color representation that can be converted to RGB including HSV of the image, or the ratio of the color representation, The determination device according to claim 2 .

4. The pattern feature amount is image co-occurrence information relating to luminance values ​​of the images; The determination device according to claim 2 or 3.

5. The image co-occurrence information is The information includes matrix information having an index represented by a luminance value of a set of a plurality of pixels specified by a predetermined arrangement pattern in the image, and an element represented by a frequency of the set of a plurality of pixels across the image. The determination device according to claim 4.

6. An output unit that outputs display data so as to display each identification information output by the trained model in association with an image of a partitioned area identified by each identification information acquired by the acquisition unit, The determination device according to any one of claims 1 to 5.

7. The determination device according to any one of claims 1 to 6, A plurality of imaging devices for imaging the side surface of a cylindrical object from different radial directions; Equipped with The determination device includes: acquiring a set of images captured by the plurality of imaging devices; Judging system.

8. On the computer, acquiring a set of images of a side surface of a cylindrical object from different radial directions; Extracting image features from each of the acquired set of images; The image features of each of the extracted images are input into the trained model. determining a type of the object based on identification information or a reliability of the identification information of each of the imaging regions in which the set of images of the side of the object are captured, the identification information being output by the trained model; Determining a combination of each piece of identification information output by the trained model; The trained model outputs a reliability of the identification information; and determining a type of the object based on the reliability when the determined combination does not exist in the object. A computer program that executes a process.

9. A side surface of a cylindrical object that is rotatable in a circumferential direction and that moves on a conveying line is captured by a plurality of imaging devices from different radial directions; The determination device is acquiring a set of images captured by the plurality of image capture devices; Extracting image features from each of the acquired set of images; The image features of each of the extracted images are input into the trained model. determining a type of the object based on identification information or a reliability of the identification information of each of the imaging regions in which the set of images of the side of the object are captured, the identification information being output by the trained model; Determining a combination of each piece of identification information output by the trained model; The trained model outputs a reliability of the identification information; and determining a type of the object based on the reliability when the determined combination does not exist in the object. Judgment method.

Citation Information

Patent Citations

  • Label detection system and detection method thereof

    CN101844633A

  • Inspecting method for mixing-in of vessel of different kind

    JP1993164706A

  • Apparatus and method for non-contact type survey and inspection for color label

    JP1993232030A

  • Can outer shape-inspecting apparatus using three-plate- type ccd camera

    JP2002357559A

  • Visual examination device

    JP2008175588A