Learning image storage apparatus, learning apparatus, article processor, and x-ray inspection apparatus
The learning image storage device addresses placement variability by guiding operators to position articles correctly, improving the accuracy of learning models for article type identification and foreign object detection.
Patent Information
- Application Number
- JP2023044439
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-03
AI Technical Summary
Existing systems face challenges in generating accurate learning models for identifying article types and detecting foreign objects due to variations in article placement positions, necessitating images with articles placed at various positions throughout the image.
A learning image storage device that guides operators to place articles at specific areas within an image, allowing for the generation and storage of images with articles positioned appropriately, using display units and control sections to facilitate accurate learning image creation.
Improves the accuracy of learning models by ensuring articles are consistently placed at appropriate positions, enhancing the identification of article types and detection of foreign objects.
Smart Images

Figure 2024134237000001_ABST
Abstract
Description
[Technical field]
[0001] One aspect of the present invention relates to a learning image storage device, a learning device, an article processing device, and an X-ray inspection device. [Background technology]
[0002] Patent Document 1 discloses a label issuing device that can assist in the type of an object (product). The label issuing device described in Patent Document 1 extracts features from a processing target image in which an object is captured by an imaging device, and identifies the type of the object by extracting an object image that matches the features of the processing target image from among pre-stored object images of a plurality of objects. Recently, AI technology has been used to identify the type of object contained in the processing target image and to determine whether or not a foreign object is contained in the processing target image. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2012-66573 A Summary of the Invention [Problem to be solved by the invention]
[0004] It is necessary to generate a learning model that identifies the type of object or determines the presence or absence of a foreign object by using AI technology. In addition, to generate a learning model, an image for machine learning is required. However, if the image for machine learning is not appropriate, the accuracy of the generated learning model will be low. In particular, in a device in which a process is started by an operator placing an object on a predetermined placement unit, the placement position of the object changes depending on the operator. In other words, the processing target image acquired in such a device has a variation in the position where the object is placed in the entire image. Therefore, in order to generate a highly accurate learning model, it is necessary to prepare images in which the object is placed in various positions in the entire image. For this purpose, a mechanism is required to generate an image in which the object is placed in an appropriate position in the entire image.
[0005] Therefore, an object of one aspect of the present invention is to provide a learning image storage device, a learning device, an item processing device, and an X-ray inspection device that can generate and store images in which items are placed in appropriate positions throughout the entire image as images for machine learning. [Means for solving the problem]
[0006] (1) An educational image storage device according to one aspect of the present invention is a educational image storage device that generates and stores educational images including objects, and includes a display unit having a first area that displays the entire educational image to be generated, a control unit that causes the display unit to display a guide display that prompts an operator to place an object in a placement area that is part of the first area, and a memory unit that stores at least a portion of the image of the first area with the object placed in the placement area as a educational image.
[0007] In the learning image storage device of this configuration, the control unit displays a guide on the display unit to place objects in the placement area in the first area, and the display state in the first area that the operator can confirm can be stored as it is as a learning image. This makes it possible to generate and store an image in which objects are placed in appropriate positions throughout the entire image as an image for machine learning.
[0008] (2) In the learning image storage device described in (1) above, the control unit may cause the display unit to display a guide display that distinguishes the placement area from other areas in the first area. In this configuration, the placement area can be displayed in an easy-to-understand manner for the operator, so that the operator can place the item in the specified placement area.
[0009] (3) In the learning image storage device described in (2) above, the control unit may display the other areas in color. With this configuration, the arrangement area can be displayed in a more easily understandable manner.
[0010] (4) In the learning image storage device according to any one of (1) to (3) above, the control unit may change the position of the arrangement area based on information about the learning image stored in the storage unit. This makes it possible to generate learning images in which items are arranged in various positions within the entire learning image, for example.
[0011] (5) In the learning image storage device according to any one of (1) to (4) above, the position of the arrangement area may be changed based on information on the learning image for each arrangement area stored in the storage unit. This makes it possible to generate and store learning images in which the objects are arranged at each position without bias, even when generating learning images in which objects are arranged at various positions within the entire learning image.
[0012] (6) In the learning image storage device according to any one of (1) to (5) above, the storage unit may store sample images of objects in advance, and the control unit may extract a sample image that matches an object to be acquired as a learning image from the storage unit and display the sample image in a second area different from the first area. This allows the operator to generate a learning image while checking the type of object of the learning image to be created.
[0013] (7) In the learning image storage device according to any one of (1) to (6) above, the display unit may display an image including an object captured by the imaging device in the first area, whereby the operator can move the object according to the guidance display while checking the captured image displayed in the first area.
[0014] (8) In the learning image storage device according to any one of (1) to (6) above, the display unit may display in the first area an X-ray transmission image of the object generated based on the X-rays transmitted through the object. This allows the operator to move the object according to the guidance display while checking the X-ray transmission image displayed in the first area.
[0015] (9) A learning device according to one aspect of the present invention may include the learning image storage device according to any one of (1) to (7) above, and a learning unit that generates a learning model for estimating the type of an article contained in an image captured by an article processing device, using the learning images stored in the storage unit. In this configuration, the learning model is generated based on learning images in which articles are arranged in appropriate positions across the entire image, thereby improving the accuracy of the learning model.
[0016] (10) A learning device according to one aspect of the present invention may include the learning image storage device according to any one of (1) to (6) and (8) above, and a learning unit that uses the learning images stored in the storage unit to generate a learning model for estimating whether or not a foreign object is included in an X-ray transmission image generated by an X-ray inspection device. In this configuration, the learning model is generated based on learning images in which an object is placed at an appropriate position in the entire image, thereby improving the accuracy of the learning model.
[0017] (11) An article processing device according to one aspect of the present invention may include an imaging device that captures an image of an article, a learning unit as described in (9) above, an identification unit that identifies the type of article contained in an image captured by the imaging device based on a learning model generated by the learning unit, and a printing unit that prints the type of article acquired by the identification unit. In an article processing device having this configuration, the accuracy of identifying the type of article can be improved.
[0018] (12) An X-ray inspection device according to one aspect of the present invention may include an X-ray irradiation unit that irradiates an object with X-rays, an X-ray detection unit that detects X-rays, the learning device described in (10) above, and an inspection unit that determines whether or not a foreign object is included in an X-ray transmission image generated from the X-ray detection result by the X-ray detection unit based on a learning model generated by the learning unit. The X-ray inspection device configured in this manner can increase the accuracy of determining whether or not a foreign object is included in the X-ray transmission image. Effect of the Invention
[0019] According to one aspect of the present invention, an image in which items are placed in appropriate positions throughout the entire image can be generated and stored as an image for machine learning. [Brief description of the drawings]
[0020] [Figure 1] FIG. 1 is a block diagram showing the functional configuration of a product processing apparatus according to a first embodiment. [Diagram 2] FIG. 2 is a perspective view showing the overall configuration of the product processing apparatus of FIG. [Diagram 3] FIG. 3 is a diagram showing an example of an operation image. [Figure 4] 4(A) and 4(B) are diagrams showing an example of screen transition of the learning image generation support function. [Diagram 5] 5(A) and 5(B) are diagrams showing an example of screen transition of the learning image generation support function. [Figure 6] FIG. 6 is a block diagram showing a functional configuration of a modified example of the first embodiment. [Figure 7] FIG. 7 is a block diagram showing a functional configuration of an X-ray inspection apparatus according to the second embodiment. [Figure 8] FIG. 8 is a front view showing the overall configuration of the X-ray inspection apparatus of FIG. [Figure 9] FIG. 9 is a diagram showing an example of an operation image. [Figure 10] 10(A) and 10(B) are diagrams showing an example of screen transition of the learning image generation support function. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] First embodiment Hereinafter, a product processing device (article processing device) 1 including a learning image storage device 3 according to a first embodiment will be described with reference to the drawings. In the description of the drawings, the same elements are given the same reference numerals, and duplicated descriptions will be omitted.
[0022] The product processing device 1 shown in Fig. 1 and Fig. 2 is a device that automatically determines the type of product P, such as a prepared food product (item) P (see Fig. 3) placed on a placement unit 5. The product processing device 1 includes a first unit 1A and a second unit 1B. The learning image storage device 3 (see Fig. 6) is composed of a controller 13, an imaging unit 7, and a display unit 9. The first unit 1A includes a support body 32, the placement unit 5, and an imaging unit (imaging device) 7.
[0023] The imaging unit 7 captures an image of the commodity P. When the commodity P is placed on the placement unit 5, the imaging unit 7 is controlled by the controller 13 to capture an image of the commodity P and generate imaging information. The imaging unit 7 may be, for example, a CCD image sensor or a CMOS image sensor that captures a color image, as long as it can convert the image of the commodity P into an electrical signal. The imaging unit 7 outputs the imaging information to the controller 13.
[0024] The second unit 1B includes a housing 30, operation keys 15, a display unit 9, and a controller 13. The operation keys 15 are an input unit that accepts operations by an operator. The display unit 9 displays various information. The display unit 9 is controlled by the controller 13 to display images. The issuing unit 11 issues a label L. The issuing unit 11 prints product information based on printing information output from the controller 13, and issues the label L.
[0025] The controller 13 is a part that controls various operations in the product processing device 1, and is configured to include a CPU, a ROM, a RAM, etc. The controller 13 is equipped with a storage unit 17. The controller 13 forms a product identification unit 21 and an issuance control unit 23 that execute various processes in the product processing device 1, for example, by loading a program stored in the ROM onto the RAM and executing it on the CPU. However, each of these units may be configured as hardware.
[0026] The storage unit 17 has a product master storage area 17a and a trained model storage area 17b, and stores information necessary for product master and product identification. The product master includes a data table in which at least the number (ID) of the product P is associated with the product name, unit price, sample image, etc. The trained model storage area 17b stores the trained model. The trained model is a model generated by machine learning. The product identification unit 21 inputs the image information output from the imaging unit 7 to the trained model stored in the trained model storage area 17b. The product identification unit 21 may normalize the image to be input, for example, by reducing, enlarging, or trimming the image. The product identification unit 21 may also perform various processes on the input image, such as adjusting the contrast, changing the color, or changing the format.
[0027] The trained model may include a neural network or a convolutional neural network. Furthermore, the trained model may include a neural network with multiple layers. That is, the trained model may be generated by deep learning. For example, the product identification unit 21 acquires an estimation result including an output value output from the neural network in response to inputting an image into the neural network of the trained model. The product identification unit 21 identifies the type of the product P based on the estimation result.
[0028] The issuance control unit 23 reads out product information corresponding to the identified type of product P from the product master stored in the product master storage area 17a, and causes the issuing unit 11 to issue a label L. The issuance control unit 23 outputs issuing information for the label L (e.g., product name, price, etc.) to the issuing unit 11. The issuing unit 11 prints and issues the label L based on the issuing information.
[0029] The product processing device 1 described above starts identifying the type of product P when the operator places the product P on the placement unit 5. However, the placement position of the product P on the placement unit 5 varies depending on the operator. In other words, the position of the product P varies across the entire captured image. Therefore, in order to generate a highly accurate learning model, it is necessary to prepare captured images in which the product P is placed at various positions across the entire image. The product processing device 1 of this embodiment has a learning image generation support function that can generate and store images in which the product P is placed at an appropriate position across the entire image.
[0030] In order to realize the learning image generation support function, in the product processing device 1 of this embodiment, a model creation image storage area 17c is formed in the storage unit 17. The model creation image storage area 17c stores learning images, which will be described in detail later. In addition, the controller 13 forms a support control unit (control unit) 25 that executes the learning image generation support function in the product processing device 1 by loading a program stored in the ROM onto the RAM and executing it on the CPU.
[0031] 3, the display unit 9 displays an operation image 60 having a first area 61 that displays the entire learning image to be generated. The display content of the display unit 9 is controlled by the assistance control unit 25. Below, the learning image generation assistance function will be described along with the flow when the operator generates a learning image of a new product P (a product P that has not been learned in a trained model).
[0032] When generating a learning image of a product P, the operator activates the learning image generation support function, for example, by pressing a learning image generation start button or the like displayed on the display unit 9. The support control unit 25 causes the display unit 9 to display a product type input screen (not shown) for inputting the type of product P for which a learning image is to be generated. The product processing device 1 may include a scanner or the like for reading one-dimensional codes, two-dimensional codes, and the like corresponding to the type of product P.
[0033] When information is input to the product type input screen, the support control unit 25 causes the display unit 9 to display an operation image 60 as shown in FIG. 3. The operation image 60 has a first area 61, a second area 65, and an area in which various buttons B1, B2, B3, etc. are displayed. The first area 61 is an area for displaying image information output from the imaging unit 7. The first area 61 displays the upper surface of the placement unit 5 or the upper surface of the placement unit 5 and the product P placed on the upper surface of the placement unit 5, which are imaged by the imaging unit 7. The second area 65 displays a sample image of the product P for which a learning image is to be created. The operator can generate a learning image while checking the type of the product P of the learning image to be created.
[0034] The support control unit 25 causes the display unit 9 to display a guidance display that prompts the operator to perform an operation so as to place the product P in the placement area 63A, which is a part of the first area 61, in the operation image 60. In this embodiment, the support control unit 25 causes the display unit 9 to display a frame portion (guidance display) 63 and a text guidance portion (guidance display) 67 as the guidance display in the operation image 60.
[0035] The support control unit 25 causes the display unit 9 to display a frame portion 63 that enables the placement area 63A to be distinguished from other areas 61A in the first area 61. The support control unit 25 displays the other areas 61A in color, and does not display the placement area 63A in the frame portion 63 in color. Specifically, the support control unit 25 displays the other areas 61A in color, such as gray. More specifically, the support control unit 25 executes a masking process such that the image captured by the imaging unit 7 is displayed as is in the portion corresponding to the placement area 63A of the placement unit 5, and the image captured by the imaging unit 7 is not displayed in the portion corresponding to the other areas 61A of the placement unit 5. By executing such a process, the support control unit 25 prompts the operator to operate so that the product P is placed in the portion corresponding to the placement area 63A of the placement unit 5. Note that the process of not displaying the image captured by the imaging unit 7 may be a process of making it difficult to see.
[0036] The support control unit 25 controls the display unit 9 to display text guidance for the operator on the text guidance unit 67. The support control unit 25 prompts the operator to place the product P in the portion of the placement unit 5 corresponding to the placement area 63A by executing a process to display text such as "Please place the product within the frame on the left" on the text guidance unit 67, for example.
[0037] When the support control unit 25 detects that the add button B2 has been pressed, it stores the image to be displayed in the first area 61, including the masked portion, in the model creation image storage area 17c of the storage unit 17 as a learning image. That is, a learning image in which the product P is placed to the left of the entire area captured by the imaging unit 7 is stored in the storage unit 17. The support control unit 25 stores at least the type of product P together with the learning image in the storage unit 17 as information related to the learning image. Examples of the information related to the learning image include, in addition to the type of product P, imaging position information regarding which area of the placement unit 5 the image was captured, imaging conditions, and the like.
[0038] When one learning image is stored by pressing the add button B2, the support control unit 25 changes the position of the arrangement area 63A. For example, the support control unit 25 displays a frame portion 63 indicating the arrangement area 63A above the first area 61 as shown in FIG. 4(A). This allows the operator to press the add button B2 in a state where the product P is placed in the area of the placement unit 5 corresponding to the arrangement area 63A. As a result, a learning image in which the product P is placed above the entire area imaged by the imaging unit 7 is stored in the storage unit 17. Next, the support control unit 25 displays a frame portion 63 indicating the arrangement area 63A to the right of the first area 61 as shown in FIG. 4(B). When the operator presses the add button B2, a learning image in which the product P is placed to the right of the entire area imaged by the imaging unit 7 is stored in the storage unit 17.
[0039] Next, the support control unit 25 displays a frame 63 indicating the placement area 63A below the first area 61 as shown in FIG. 5(A). This allows the operator to press the add button B2 with the product P placed in the area of the placement unit 5 corresponding to the placement area 63A. As a result, a learning image in which the product P is placed below the entire area captured by the imaging unit 7 is stored in the storage unit 17. Next, the support control unit 25 displays a frame 63 indicating the placement area 63A in the center of the first area 61 as shown in FIG. 5(B). When the operator presses the add button B2, a learning image in which the product P is placed in the center of the entire area captured by the imaging unit 7 is stored in the storage unit 17.
[0040] In the product processing device 1 of this embodiment, such a learning image generation support function allows an operator to prepare learning images in which the product P is arranged in various positions throughout the image when generating learning images of a new product P. In the product processing device 1 of this embodiment, even when the operator generates learning images of a registered product P (a product P that has been learned by a trained model), the learning image generation support function allows the operator to store learning images that are efficient and effective for learning.
[0041] When generating a learning image of a registered product P, as in the case of generating a learning image of a new product P, input of the type of product P for which a learning image is to be created is accepted. After that, the support control unit 25 displays the operation image 60 on the display unit 9, and changes the position of the arrangement area 63A based on information about the learning image stored in the model creation image storage area 17c of the storage unit 17. That is, the support control unit 25 changes the position of the frame portion 63 indicating the arrangement area 63A. For example, the support control unit 25 changes the position of the arrangement area 63A based on the type of the product P, imaging position information on which area of the placement unit 5 the image was captured, and imaging conditions. This makes it possible to generate learning images in which the product P is arranged at various positions in the entire learning image, for example.
[0042] Therefore, when generating a learning image of a new product P, the frame 63 indicating the placement area 63A is displayed in the order of the left, upper, right, lower and center of the first area 61, whereas, for example, when generating a learning image of an already registered product P, the frame 63 indicating the placement area 63A is displayed at the top or bottom of the first area 61.
[0043] Furthermore, when displaying the operation image 60 on the display unit 9, the assistance control unit 25 may change the position of the arrangement area 63A based on information on the learning image for each arrangement area 63A stored in the storage unit 17. For example, when the number of learning images in which, for example, a product P is arranged at the top of the image is small among the learning images stored in the storage unit 17, the assistance control unit 25 may display a frame portion 63 indicating the arrangement area 63A above the first area 61. This makes it possible to generate and store learning images in which the product P is arranged at each position without bias, even when generating learning images in which the product P is arranged at various positions within the entire learning image.
[0044] The learning unit 27 performs machine learning using the learning images stored in the model creation image storage area 17c of the storage unit 17 and the type of product P to generate a trained model. The learning images are a group of images in which the product P is arranged at various positions (for example, left, upper, right, lower, center) in the entire image for each type of product P, which are generated by the learning image generation support function as described above. The learning unit 27 performs machine learning by using, for example, each pixel value of the image as an input value to the neural network and processing information corresponding to the image as an output value of the neural network to generate a neural network. When the pixel value is used as an input value, it is used as the input value of the neuron corresponding to each pixel. The above machine learning itself can be performed in the same manner as a conventional machine learning algorithm. The learning unit 27 stores the generated trained model in the trained model storage area 17b of the storage unit 17.
[0045] The effect of the product processing device 1 of the first embodiment will be described. In the product processing device 1 of the first embodiment, the operator can place the product P in the placement area 63A in the first area 61 simply by moving the product P according to the guidance displayed on the display unit 9 by the assistance control unit 25. This makes it possible to generate and store an image in which the product P is placed in an appropriate position in the entire image as an image for machine learning.
[0046] In the product processing device 1 of the first embodiment, the support control unit 25 causes the display unit 9 to display a frame 63, which is a guide display that enables the placement area 63A to be distinguished from other areas 61A in the first area 61. This allows the placement area 63A to be displayed in an easily understandable manner for the operator, allowing the operator to place the product P in the specified placement area 63A. Furthermore, the support control unit 25 displays the other areas 61A in the first area 61 that are different from the placement area 63A in color, allowing the placement area 63A to be displayed in an even more easily understandable manner.
[0047] In the product processing device 1 of the first embodiment, a trained model is generated based on a training image in which a product is arranged at an appropriate position in the entire image, so the accuracy of the trained model can be improved. In the product processing device 1 having a product identifier 21 that identifies the type of item included in the captured image captured by the imaging unit 7 based on the trained model generated based on such a training image, the accuracy of identifying the type of product P is improved.
[0048] Second Embodiment Hereinafter, an X-ray inspection apparatus 101 including a learning image storage device 3A according to the second embodiment will be described with reference to the drawings. In the description of the drawings, the same elements are given the same reference numerals, and duplicated description will be omitted.
[0049] 7 and 8, the X-ray inspection apparatus 101 has an apparatus main body 102, support legs 103, a shield box 104, a conveying unit 105, an X-ray irradiating unit 106, an X-ray detection unit 107, a display operation unit (display unit) 108, and a controller 113. The X-ray inspection apparatus 101 conveys a plurality of products (articles) G in sequence, irradiates the products with X-rays using the X-ray irradiating unit 106, generates an X-ray transmission image of the products G, and inspects the products G based on the generated X-ray transmission image. The products G are carried into the X-ray inspection apparatus 101 by an input conveyor 151 and carried out by an output conveyor 152.
[0050] The device main body 102 houses a controller 113 and the like. The controller 113 forms an image generating unit 119, an inspection unit 121, an assistance control unit 125, and a learning unit 127 that execute various processes in the X-ray inspection device 101, for example, by loading a program stored in a ROM onto a RAM and executing it on a CPU. The image generating unit 119 generates an X-ray transmission image based on a signal output from the X-ray detection unit 107. The inspection unit 121 inspects whether or not a foreign object is contained in a product G brought into the inspection area R based on the X-ray transmission image. The inspection unit 121 displays an inspection result screen on the display operation unit 108. The inspection result screen has, for example, a foreign object display unit that displays the position of a detected foreign object, and a result display unit that displays an inspection result such as OK or NG.
[0051] The X-ray inspection apparatus 101 described above inspects the product P transported from the upstream side in the inspection area R. Depending on the supply status of the product P from the upstream device to the transport section 105, the transport position of the product P in the width direction (front-back direction) of the transport section 105 changes, and thus the inspection position of the product P in the width direction in the inspection area R changes. Therefore, in order to generate a highly accurate learning model, it is necessary to prepare X-ray transmission images in which the product P is arranged at various positions in the width direction as learning screens. The X-ray inspection apparatus 101 of this embodiment has a learning image generation support function that can generate and store X-ray transmission images in which the product P is arranged at an appropriate position in the width direction.
[0052] In order to realize the learning image generation support function, in the X-ray inspection apparatus 101 of this embodiment, a model creation image storage area 117c is formed in the storage unit 117. The model creation image storage area 117c stores learning images, which will be described in detail later. In addition, the controller 113 forms a support control unit 125 that executes the learning image generation support function in the X-ray inspection apparatus 101 by loading a program stored in the ROM onto the RAM and executing it on the CPU.
[0053] As shown in FIG. 9, the display operation unit 108 displays an operation image 160 having a first area 161 that displays the entire learning image to be generated. The display content of the display operation unit 108 is controlled by the support control unit 125. The learning image generation support function will be described below along with the flow when the operator generates a learning image of the product P. When generating a learning image of the product P, the operator starts the learning image generation support function by, for example, pressing a learning image generation start button or the like displayed on the display operation unit 108. The support control unit 125 causes the display operation unit 108 to display a product information input screen (not shown) for inputting the type of the product P for which a learning image is to be created and the presence or absence of a foreign object.
[0054] When the operator inputs information into the product information input screen, the support control unit 125 causes the display operation unit 108 to display an operation image 160 as shown in FIG. 9. The operation image 160 has a first area 161, a second area 165, and an area in which various buttons B1, B2, B3, etc. are displayed. The first area 161 is an area for displaying X-ray transmission image information output from the image generation unit 119. The support control unit 125 causes the display operation unit 108 to display a guidance display that prompts the operator to operate the operation image 160 so that the product P is placed in a placement area 163A that is a part of the first area 161. The support control unit 125 causes the display operation unit 108 to display an acquisition status display area 163 as a guidance display in the operation image 160.
[0055] The acquisition status display unit 163 is a section that displays the acquisition status of the learning images, and displays, for example, a bar graph. The acquisition status display unit 163 shows the acquisition status of the learning images for each region in the width direction. The acquisition status display unit 163 displays a plurality of scales S arranged in the vertical and horizontal directions in FIG. 9. Of the plurality of scales S, the scales S arranged in the vertical direction are regions that virtually divide the width direction (front-back direction) of the conveying unit 105. These scales S may correspond to a plurality of elements that constitute the X-ray detection unit 107. The scales S arranged in the horizontal direction show the number of images in which products P are arranged in the corresponding region.
[0056] For example, the example of the operation image 160 shown in Fig. 9 indicates that a relatively large number of learning images are acquired when the product P flows through the center in the width direction, and no learning images are acquired when the product P flows near the front end and near the rear end. In other words, the operator looking at the acquisition status display unit 163 can confirm at which position in the width direction the learning image (X-ray transmission image) is acquired. By displaying such an acquisition status display unit 163 on the display operation unit 108, the assistance control unit 125 urges the operator to place the product P so that it passes through an area in the width direction where few learning images are acquired.
[0057] The support control unit 125 may display a text guide unit 167 on the display operation unit 108 as a guide display in the operation image 160, instead of or in addition to the acquisition status display unit 163. The text guide unit 167 is a part that provides textual guidance to the operator. The support control unit 125 urges the operator to place the product P so that it passes through an area in the width direction (placement area 163A) where not many learning images are acquired, by executing a process of displaying text such as "Please place the product at the rear of the conveyor and let it flow" on the text guide unit 167.
[0058] Here, the following description will be given on the assumption that the operator places the product P on the rear side of the conveying unit 105. When the support control unit 125 detects that the add button B2 has been pressed, it starts conveying by the conveying unit 105, acquires an X-ray transmission image, and stores it in the model creation image storage area 17c of the storage unit 17 as a learning image. That is, as shown in FIG. 10(A), a learning image in which the product P is placed on the rear side in the width direction of the entire area imaged by the image generating unit 119 is stored in the storage unit 117. The support control unit 125 stores at least information regarding the type of product P and the presence or absence of a foreign object together with the learning image in the storage unit 117 as information regarding the learning image.
[0059] Then, the support control unit 125 updates the display contents of the acquisition status display unit 163. That is, the information is updated in accordance with the increase in the number of learning images in which the product P is arranged on the rear side in the width direction of the entire area by one. In addition, the support control unit 125 may execute a process of displaying a text, for example, "Please place the product on the front side of the conveying unit and flush it" on the text guide unit 167. The operator places the product P on the front side of the conveying unit 105 and presses the add button B2. As a result, the support control unit 125 starts conveying by the conveying unit 105 and acquires an X-ray transmission image, and stores it in the model creation image storage area 117c of the storage unit 117 as a learning image. That is, as shown in FIG. 10(B), the learning image in which the product P is arranged on the front side in the width direction captured by the image generation unit 119 is stored in the storage unit 117. The support control unit 125 stores at least information on the type of the product P and the presence or absence of a foreign object together with the learning image in the storage unit 117 as information on the learning image.
[0060] Then, the support control unit 125 updates the display content of the acquisition status display unit 163. That is, the information is updated in accordance with the increase in the number of learning images in which the product P is arranged on the rear side in the width direction of the entire area by one. Thereafter, the learning image generation support function continues until the operator presses the stop button B1 or the learning start button B3. In the X-ray inspection device 101 of this embodiment, such a learning image generation support function makes it possible to prepare learning images in which the product P is arranged at various positions in the width direction.
[0061] When the learning unit 127 detects that the learning start button B3 has been pressed, it performs machine learning using the learning images stored in the model creation image storage area 117c of the storage unit 117 and the type of the product P to generate a trained model. Details of the learning unit 127 are the same as those of the learning unit 27 described in the first embodiment. The generated trained model may be stored in the trained model storage area 117b.
[0062] In the X-ray inspection apparatus 101 of the second embodiment described above, as in the product processing device 1 of the first embodiment described above, the operator can generate a learning image in which the product P is placed in the placement area 163A in the first area 161 by simply moving the placement position of the product P in the conveying section 105 in accordance with the guidance displayed on the display operation section 108.
[0063] Although the first and second embodiments have been described above, one aspect of the present invention is not limited to the first embodiment. Various modifications are possible without departing from the spirit of the invention.
[0064] In the above first embodiment, an example was described in which learning images in which products P are arranged at the left, top, right, bottom, and center of the entire area imaged by the imaging unit 7 are generated and stored in the storage unit 17, but images in which the product P arranged in each area is rotated by 90 degrees, 180 degrees, etc. may be generated, or the product P may be turned upside down for each area and stored. Learning images may also be generated and stored in the same manner in the above second embodiment. Instructions for generating learning images, such as tilting or turning over, may be given by the character guidance units 67, 167.
[0065] In the above-described first embodiment, the product processing device 1 including the learning unit 27 has been described as an example, but the product processing device 1 may not be provided with the learning unit 27. In this case, a trained model generated by another computer or the like may be stored in the trained model storage area 17b. The same may be true for the above-described second embodiment.
[0066] Furthermore, in the above first embodiment, second embodiment, and modified example, an example has been described in which the learning unit 27, 127 is built in, but the learning unit 27, 127 may be provided in a server device or the like that is provided so as to be able to communicate with the product processing device 1 or the X-ray inspection device 101. Similarly, the memory unit 17 may be provided as a separate unit from the product processing device 1 or the X-ray inspection device 101 that is capable of communicating with the product processing device 1 or the X-ray inspection device 101.
[0067] In the above first embodiment, the product processing device 1 including the learning image storage device 3 has been described as an example, but it may be configured as a learning image storage device 3 as shown in FIG. 6. Similarly, the above second embodiment may be configured as a learning image storage device 3A. Also, it may be configured as a learning device by the learning image storage device 3 and a learning unit 27. Similarly, it may be configured as a learning device by the learning image storage device 3A and a learning unit 127.
[0068] When performing image instance segmentation using a convolutional neural network, it is necessary to label what is where as training data (annotation). Since manual annotation is costly, a widely used method is to synthesize a background image and an image of the object to be recognized, generate a pseudo image, and use it as training data. However, if there is a large difference between the pseudo image and the actual image, there is a problem that the recognition accuracy of the trained model for the actual image decreases.
[0069] Therefore, the training data may be generated by the following method. An image of only the background (image 1), an image of the background and the transparent tray (image 2), and an image of the background and the fried food (image 3) are generated pseudo-images by the following procedure and used as the training data. First, an area of only the transparent tray is obtained using image 1 and image 2 (step 1). Next, an image of only the fried food is obtained using image 1 and image 3 (step 2). Next, the image obtained in step 2 is randomly pasted in image 1 so that it is included in the area obtained in step 1 (step 3). Next, the location pasted in step 3 is used as a label (step 4). Next, an area where the shading of the image obtained in step 1 is equal to or greater than a certain threshold (a value at which the pattern or reflection of the transparent tray can be extracted) is obtained (step 5). Next, the area obtained in step 5 is superimposed on the image generated in step 3 (step 6). Next, the combination of the images generated in step 3 and step 6 is used as the training data (step 7). If a trained model is generated using the training data generated in this way, the recognition accuracy of the trained model is improved. [Explanation of symbols]
[0070] 1...product processing device, 3...learning image storage device, 7...imaging unit, 9...display unit, 13...controller, 17,117...memory unit, 17a...product master memory area, 17b,117b...learned model memory area, 17c,117c...model creation image memory area, 25,125...assistance control unit (control unit), 27,127...learning unit, 60,160...operation image, 61,161...first area, 63...frame unit (guidance display), 63A,163A...placement area, 65,165...second area, 67,167...text guide unit (guidance display), 101...X-ray inspection device, 105...transport unit, 106...X-ray irradiation unit, 107...X-ray detection unit, 108...display operation unit, 113...controller, 163...acquisition status display unit, P,G...product (item).
Claims
1. A learning image storage device that generates and stores learning images including an object, a display unit for displaying an operation image having a first area for displaying the entire learning image to be generated; a control unit that causes the display unit to display a guidance display that prompts an operator to perform an operation so as to place the item in a placement area that is a part of the first area in the operation image; A learning image storage device comprising: a storage unit that stores at least a portion of an image of the first area in a state in which the item is placed in the placement area as the learning image.
2. The learning image storage device according to claim 1 , wherein the control unit causes the display unit to display the guide display that enables the placement area to be distinguished from other areas in the first area.
3. The learning image storage device according to claim 2 , wherein said control unit displays said other regions in color.
4. The learning image storage device according to claim 1 , wherein the control unit changes a position of the arrangement area based on information about the learning image stored in the storage unit.
5. The learning image storage device according to claim 1 , wherein the control unit changes a position of the arrangement area based on information about the learning image for each of the arrangement areas stored in the storage unit.
6. The storage unit stores a sample image of the article in advance, The learning image storage device according to claim 1 or 2, wherein the control unit extracts from the memory unit the sample image that matches the item to be obtained as the learning image and displays it in a second area different from the first area.
7. The learning image storage device according to claim 1 , wherein the display unit displays an image including the object captured by an imaging device in the first area.
8. The learning image storage device according to claim 1 , wherein the display unit displays, in the first area, an X-ray transmission image of the object generated based on X-rays transmitted through the object.
9. 3. The learning image storage device according to claim 1 or 2, A learning device comprising: a learning unit that uses the learning images stored in the memory unit to generate a learning model for estimating the type of item contained in an image captured by an item processing device.
10. 3. The learning image storage device according to claim 1 or 2, a learning unit that uses the learning image stored in the memory unit to generate a learning model for estimating whether or not a foreign object is included in an X-ray transmission image generated by an X-ray inspection device.
11. An imaging device for imaging an article; A learning unit according to claim 9 ; an identification unit that identifies a type of an article included in an image captured by the imaging device based on the learning model generated by the learning unit; An item processing device comprising: a printing unit that prints the type of the item acquired by the identification unit.
12. An X-ray irradiation unit that irradiates the object with X-rays; an X-ray detection unit for detecting the X-rays; A learning device according to claim 10; and an inspection unit that determines whether or not a foreign object is included in an X-ray transmission image generated from the X-ray detection result by the X-ray detection unit based on the learning model generated by the learning unit.
Citation Information
Patent Citations
Information processing apparatus, shop system, and program
JP2015035094A
Inspection device, and method of detecting firearm in luggage
JP2018113038A
Learning Data Augmentation Strategies for Object Detection
US20220215682A1
Store device, store system, image acquisition method and program
WO2019167278A1
Control device, computer program, and non-transitory computer-readable medium
WO2022201379A1
