Article inspection device

The article inspection device uses trained models on outline and edge features to differentiate between good and defective articles, addressing erroneous folding determinations by optimizing training data usage, thereby enhancing accuracy and efficiency.

JP2024128312APending Publication Date: 2024-09-24ISHIDA CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023037238
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing article inspection devices may erroneously determine folded articles as good products due to similarities in outline and edge characteristics with non-defective articles.

Method used

The device employs two trained models: one based on the outline and another on the edge of the article in X-ray transmission images, using machine learning to distinguish between good and defective products, and selectively uses training data based on image area thresholds to enhance accuracy.

Benefits of technology

Accurately determines folded articles as defective by leveraging distinct characteristics in outline and edge features, reducing training data requirements and improving determination efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024128312000001
    Figure 2024128312000001
Patent Text Reader

Abstract

To provide an article inspection device capable of accurately determining a broken article as a defective item.SOLUTION: An article inspection device 100 includes: an X-ray irradiation part 6 for irradiating an article B with an X-ray; an X-ray detection part 7 for detecting an X-ray transmitted through the article B; and a determination part 13 for determining whether the article B is a non-defective item or a defective item by using learnt models, on the basis of X-ray transmission images generated from detection results of the X-ray detection part 7. The determination part 13 uses, as learnt models: a first learnt model learnt based on a contour of an article B in the X-ray transmission images; and a second learnt model learnt based on an end of an article B in the X-ray transmission images.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] One aspect of the present invention relates to an article inspection apparatus. [Background technology]

[0002] Conventionally, there is known an object inspection device that includes an irradiation unit that irradiates an object with electromagnetic waves, a detection unit that detects the electromagnetic waves irradiated by the irradiation unit and transmitted through the object, and an inspection unit that uses a trained model to inspect whether the object is good or defective based on an image generated from the detection results of the detection unit (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2021-152489 A Summary of the Invention [Problem to be solved by the invention]

[0004] The above-mentioned article inspection device may erroneously determine that a broken article is a non-defective article.

[0005] Therefore, an object of one aspect of the present invention is to provide an article inspection device that can accurately determine that a broken article is defective. The purpose is to: [Means for solving the problem]

[0006] (1) An object inspection device according to one aspect of the present invention includes an irradiation unit that irradiates an object with electromagnetic waves, a detection unit that detects the electromagnetic waves irradiated by the irradiation unit and transmitted through or reflected by the object, and a judgment unit that uses a trained model to judge whether the object is good or defective based on an image generated from the detection result of the detection unit, and the judgment unit uses as trained models a first trained model trained based on the contour of the object in the image and a second trained model trained based on the edge of the object in the image.

[0007] It is found that a broken object in an image has a first feature that the area it occupies is different from that of a good object, and a second feature that the end portion includes a cross section that is not present in a good object. In one aspect of the present invention, a first trained model trained based on the contour of the object is used to make a judgment, and the broken object can be effectively judged as a defective object from the viewpoint of the first feature. In another aspect of the present invention, a second trained model trained based on the end portion of the object is used to make a judgment, and the broken object can be effectively judged as a defective object from the viewpoint of the second feature. Therefore, it is possible to accurately judge a broken object as a defective object.

[0008] (2) In the article inspection device described in (1) above, the determination unit may output a determination result when at least one of the determination result using the first trained model and the determination result using the second trained model determines that the article is defective. In this case, it is possible to reliably determine that a broken article is defective.

[0009] (3) The article inspection device described in (1) or (2) above may include a display unit that displays an image, a drawing unit that draws a designated portion related to an end of the article on the image displayed on the display unit according to a user's designation, and a learning unit that generates a second trained model by machine learning using a portion of the image including the designated portion as training data. This reduces the amount of work required to create the training data compared to when the entire image is used as training data, and makes it possible to efficiently perform machine learning and generate the second trained model.

[0010] (4) In the article inspection device described in (3) above, when the area of ​​an article in an image is equal to or less than a lower threshold, the learning unit does not need to perform machine learning on a portion including a designated location related to the end of the article as training data. When the area of ​​an article in an image is equal to or less than a lower threshold, the cross section of the article often does not appear at the end. In this regard, in one aspect of the present invention, when generating a second learning model, images in which the area of ​​the article is equal to or less than a lower threshold can be omitted from the machine learning. Thus, it becomes possible to generate a second learned model with high judgment accuracy.

[0011] (5) The article inspection device according to any one of (1) to (4) above includes a learning unit that generates a first trained model by machine learning using contour information on the contour of an article in an image as training data, and the learning unit may not perform machine learning on the contour information of the article as training data when the area of ​​the article in the image is equal to or greater than an upper threshold. When the area of ​​the article in the image is equal to or greater than an upper threshold, it is difficult to distinguish between defective and non-defective products from the contour information. In this regard, in one aspect of the present invention, when generating the first trained model, images in which it is difficult to distinguish between defective and non-defective products can be omitted from the machine learning. Thus, it is possible to generate a first trained model with high judgment accuracy.

[0012] (6) The article inspection device described in any one of (1) to (4) above may include a storage unit that stores multiple types of single item data having an image including only one article and contour information related to the contour of the article, a generation unit that generates multiple types of composite data having an image including multiple articles and contour information of the multiple articles by combining the multiple types of single item data stored in the storage unit, and a learning unit that generates a first trained model by machine learning using the contour information of the multiple types of composite data generated by the generation unit as teacher data. In this case, when generating the first trained model, for example, annotation for drawing the contour of each single item is not required, making it possible to reduce errors and effort. Effect of the Invention

[0013] According to one aspect of the present invention, it is possible to provide an article inspection device that can accurately determine that a broken article is a defective article. [Brief description of the drawings]

[0014] [Figure 1] FIG. 1 is a configuration diagram of an article inspection device according to an embodiment. [Diagram 2] FIG. 2 is a diagram showing the internal configuration of the shielding box shown in FIG. [Diagram 3] FIG. 3 is a functional configuration diagram of the control unit. [Figure 4] Fig. 4(a) is a diagram showing an example of an X-ray radiographic image, and Fig. 4(b) is a diagram showing an example of an end designated portion drawn on the X-ray radiographic image of Fig. 4(a). [Diagram 5] FIG. 5 is a flowchart illustrating a method for inspecting an item using the first and second trained models. [Figure 6] FIG. 6 is a diagram showing an example of a display on the display operation unit when the judgment result using the first trained model is a defective product. [Figure 7] FIG. 7 is a diagram showing an example of a display on the display operation unit when the judgment result using the second trained model is a defective product. [Figure 8] FIG. 13 is a schematic plan view showing an object to be inspected according to a modified example. [Figure 9] Fig. 9(a) is a schematic diagram showing an X-ray image of an item that does not include a sauce, and Fig. 9(b) is a graph showing the brightness of the X-ray image of Fig. 9(a). [Figure 10] Fig. 10(a) is a schematic diagram showing an X-ray image of an item packed with sauce. Fig. 10(b) is a graph showing the brightness of the X-ray image of Fig. 10(a) before correction. Fig. 10(c) is a graph showing the brightness of the X-ray image of Fig. 10(a) after correction. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Hereinafter, the embodiments will be described in detail with reference to the accompanying drawings. In the following description, the same or corresponding elements are designated by the same reference numerals, and duplicated description will be omitted.

[0016] As shown in FIG. 1, the item inspection device 100 is a device that performs inspections (e.g., inspection of the number of items contained, inspection of foreign objects, inspection of missing items, inspection of cracks and chips, etc.) of inspection objects G including items, and is implemented, for example, in a production line or the like. The inspection objects G here are multiple items contained in bags. The items are not particularly limited, and may be sausages, other long items, or various other items. The item inspection device 100 includes an apparatus main body 2, support legs 3, a shielding box 4, a conveying unit 5, an X-ray irradiation unit (irradiation unit) 6, an X-ray detection unit (detection unit) 7, a display operation unit (display unit) 8, and a control unit 10.

[0017] The article inspection apparatus 100 generates an X-ray transmission image of the inspection object G while transporting the inspection object G, and inspects the inspection object G based on the X-ray transmission image. The article inspection apparatus 100 is disposed after the carry-in conveyor 51 and before the carry-out conveyor 52. The inspection object G before inspection is carried into the article inspection apparatus 100 by the carry-in conveyor 51. The inspection object G after inspection is carried out from the article inspection apparatus 100 by the carry-out conveyor 52.

[0018] The device main body 2 houses a control unit 10 and the like. The support legs 3 support the device main body 2. The shielding box 4 is provided on the device main body 2. The shielding box 4 prevents leakage of X-rays (electromagnetic waves) to the outside. An inspection area R is provided inside the shielding box 4, where inspection of items is carried out using X-rays. The shielding box 4 is formed with an entrance 4a and an exit 4b. An inspection object G before inspection is carried into the inspection area R from the carry-in conveyor 51 via the entrance 4a. An inspection object G after inspection is carried out from the inspection area R to the exit conveyor 52 via the exit 4b.

[0019] The transport unit 5 is a member that transports the inspection object G received from an input conveyor 51 outside the article inspection apparatus 100, and is disposed so as to penetrate the center of the shielding box 4. The transport unit 5 transports the inspection object G from the carry-in entrance 4a through the inspection region R to the carry-out exit 4b along the transport direction A. The transport unit 5 may protrude outward beyond the carry-in entrance 4a and the carry-out exit 4b.

[0020] 1 and 2, the X-ray irradiator 6 is an X-ray source that irradiates the inspection object G with X-rays, and is disposed inside the shield box 4. The X-ray irradiator 6 has, for example, an X-ray tube that emits X-rays, and a diaphragm that spreads the X-rays emitted from the X-ray tube in a fan shape in a plane perpendicular to the transport direction A. The X-rays irradiated from the X-ray irradiator 6 may include X-rays in various energy bands ranging from low energy (long wavelength) to high energy (short wavelength).

[0021] The X-ray detection unit 7 is a sensor member that detects X-rays irradiated by the X-ray irradiation unit 6 and transmitted through an object. The X-ray detection unit 7 is disposed in the shield box 4 at a position facing the X-ray irradiation unit 6 in the vertical direction. The X-ray detection unit 7 may be capable of detecting X-rays in a specific energy band, or may be capable of detecting X-rays by a photon counting method. The X-ray detection unit 7 may be a direct conversion type detection unit or an indirect conversion type detection unit. Depending on the type of the X-ray detection unit 7, differences may occur in the generation time of an image of an object, the amount of data, and the like. The X-ray detection unit 7 may include a line sensor, or may include a group of sensors arranged two-dimensionally. The sensor included in the X-ray detection unit 7 is, for example, a photon detection type sensor such as a CdTe semiconductor detector.

[0022] The display operation unit 8 is a member provided in the device body 2. The display operation unit 8 displays various information and accepts input operations of various conditions from the outside. The display operation unit 8 displays an X-ray transmission image. The display operation unit 8 is, for example, a liquid crystal display, and displays an operation screen as a touch panel. In this case, a user such as an operator can input various conditions via the display operation unit 8. In this embodiment, a user can input a designated location related to the end of an object (hereinafter also referred to as a "designated end location") by touching (designating) the end of the object on the X-ray transmission image displayed on the touch panel. As a result, the designated end location is drawn on the touch panel by a drawing unit 14 described later.

[0023] The control unit 10 functions as a part of the control unit of the article inspection apparatus 100, and mainly controls the operation of each part of the article inspection apparatus 100. The control unit 10 is disposed in the apparatus main body 2. The control unit 10 has a computer including a processor computer such as a central processing unit (CPU) and a graphics processing unit (GPU), memories such as a read only memory (ROM) and a random access memory (RAM), and a storage such as a solid state drive (SSD). For example, a program for controlling the article inspection apparatus 100, a program for generating an image, etc. are recorded in the ROM.

[0024] Fig. 3 is a functional configuration diagram of the control unit 10. As shown in Fig. 3, the control unit 10 has an image generating section 11, a storage section 12, a determination section 13, a drawing section 14, a composite data generating section (generating section) 15, and a learning section 16. The image generating section 11 generates an X-ray transmission image based on the detection result of the X-ray detection section 7. The method of generating the X-ray transmission image is not particularly limited, and various known methods can be used.

[0025] The memory unit 12 records various signals and data used or generated by the control unit 10. The memory unit 12 stores the first and second trained models used in the judgment unit 13, and programs and algorithms used to generate the first and second trained models. The first and second trained models are programs that are automatically set by machine learning. The first trained model is a model trained based on the contour of an object in an X-ray image. The second trained model is a model trained based on the edge of an object in an X-ray image. The first and second trained models are models capable of performing semantic segmentation. The first and second trained models may be models capable of performing instance segmentation.

[0026] The type and / or configuration of the algorithm used to generate the first and second trained models is not particularly limited. The type of algorithm is, for example, a random forest decision tree, a multi-layer perceptron (neural network), etc. The configuration of the algorithm is the number of intermediate layers, the number of units in each layer, the number of branches, the objective variable, the explanatory variable, etc. The type and / or configuration of the algorithm may be generated by deep learning.

[0027] The storage unit 12 stores multiple types of single-item data including an X-ray transmission image including only one item and contour information related to the contour of the item. The contour information is not particularly limited, and may be, for example, information on each position corresponding to the contour on the image.

[0028] The judgment unit 13 inspects the X-ray transmission image generated by the image generation unit 11 and outputs the inspection result. The judgment unit 13 judges whether the article (inspection object G) is a good product or not, based on the X-ray transmission image, using the first and second trained models. When at least one of the judgment result using the first trained model and the judgment result using the second trained model is a judgment result that judges the article to be defective, the judgment unit 13 outputs the judgment result that judges the article to be defective via the display operation unit 8.

[0029] The drawing unit 14 draws the end designated portion designated via the display operation unit 8 on the X-ray transmission image displayed on the display operation unit 8. For example, as shown in FIG. 4(a), when an X-ray transmission image P1 of an inspection object G in which a plurality of objects B are put in a bag is displayed on the display operation unit 8, the user designates the ends of the plurality of objects B in the X-ray transmission image P1 by touching. As a result, the drawing unit 14 draws the plurality of end designated portions as dots on the X-ray transmission image P1 on the display operation unit 8, as shown in FIG. 4(b), for example. At this time, the end designated portion may be designated separately for the end of a non-defective product and the end of a defective product, in which case the end designated portion is drawn while distinguishing between the end of a non-defective product and the end of a defective product.

[0030] The drawing unit 14 draws a portion of the X-ray transmission image including the specified end location (a portion within a circle with a radius of several pixels centered on the specified end location) as an article end image in a separate image. The article end image is stored in the memory unit 12 in association with either a good product or a defective product as training data for the second trained model. In this example, the article end image is stored in the memory unit 12 in association with the area of ​​the article that the article end image targets. For example, the area of ​​article B can be obtained from the X-ray transmission image using various known image processing methods.

[0031] The synthetic data generation unit 15 automatically generates multiple types of synthetic data having an X-ray transmission image as a learning synthetic image including multiple objects B and contour information which is annotation information of the multiple objects B by synthesizing multiple types of single object data stored in the storage unit 12. The generated synthetic data is stored in the storage unit 12. The contour information of the synthetic data is stored in the storage unit 12 in association with either a good product or a defective product as teaching data for the first trained model. In this example, the contour information of the synthetic data is stored in the storage unit 12 in association with the area of ​​the object B which the contour information is the target of.

[0032] The learning unit 16 generates a first trained model by machine learning using the contour information of the composite data as training data. When the area of ​​the object B in the X-ray transmission image is equal to or larger than an upper threshold, the learning unit 16 does not perform machine learning on the contour information of the object B as training data. The upper threshold is not particularly limited, and is, for example, three-quarters of the standard length (prescribed length) of the object B. The learning unit 16 stores the generated first trained model in the memory unit 12.

[0033] The learning unit 16 generates a second trained model by machine learning using the article end image as training data. When the area of ​​article B in the X-ray transmission image is equal to or smaller than a lower threshold, the learning unit 16 does not perform machine learning on the article end image of the article B as training data. The lower threshold is not particularly limited, and is, for example, a quarter of the standard length of article B. The learning unit 16 stores the generated second trained model in the memory unit 12.

[0034] Next, an example of a method for generating the first and second learning models will be described.

[0035] First, the article inspection device 100 is operated to perform a process of acquiring an image of the article B alone and its individual data including its contour data, for multiple types of articles B. The composite data generation unit 15 appropriately combines the multiple types of individual data to automatically generate multiple types of composite data having an X-ray transmission image serving as a composite image for learning and contour information of multiple articles B. Then, the learning unit 16 performs machine learning using the contour information of the multiple types of generated composite data as training data to obtain a first trained model.

[0036] The article inspection device 100 is also operated to generate an X-ray transmission image of the inspection object G as a learning image by the image generation unit 11, and the X-ray transmission image is displayed on the display operation unit 8. In response to a user designating an end portion, the drawing unit 14 draws an article end image including the designated portion. The above process is repeated multiple times to obtain multiple article end images. Then, the learning unit 16 performs machine learning using the multiple article end images as training data to obtain a second learned model.

[0037] Next, an example of a method for inspecting an item B using the first and second learning models will be described with reference to FIG.

[0038] As shown in Fig. 5, in the object inspection device 100, an X-ray transmission image of the object G to be inspected, which serves as an inspection image, is generated by the image generation unit 11 (step S1). Based on the generated X-ray transmission image, the judgment unit 13 judges whether the multiple objects included in the object G are pass or fail using a first trained model (step S2). Based on the generated X-ray transmission image, the judgment unit 13 judges whether the multiple objects included in the object G are pass or fail using a second trained model (step S3). Note that the above steps S2 and S3 may be performed in any order.

[0039] Then, the judgment result is output by the judgment unit 13 (step S4). In step S4, if the product is judged to be defective in the judgment in step S2 and / or the judgment in step S3, the judgment result of defective product (missing product) is output to the display operation unit 8. In step S4, if the product is judged to be good in both the judgment in step S2 and the judgment in step S3, the judgment result of good product is output to the display operation unit 8.

[0040] Fig. 6 is a diagram showing an example of a display on the display operation unit 8 when the judgment result using the first trained model is a defective product. When the judgment unit 13 judges that the judgment result using the first trained model is a defective product, as shown in Fig. 5, a "missing item" is displayed on the display operation unit 8, and the sensitivity level of the first trained model is increased. Also, among multiple items B in the X-ray transmission image displayed on the display operation unit 8, an item B1 in which a crease has occurred is highlighted and surrounded.

[0041] Fig. 7 is a diagram showing an example of the display on the display operation unit 8 when the judgment result using the second trained model is a defective product. When the judgment unit 13 judges that the judgment result using the second trained model is a defective product, as shown in Fig. 6, the display operation unit 8 displays "missing" and the sensitivity level of the second trained model is increased. In addition, among the multiple objects B in the X-ray transmission image displayed on the display operation unit 8, the cross section of the object B2 where a fold has occurred is highlighted and surrounded.

[0042] It is found that the broken article B in the X-ray transmission image has a first feature that the area it occupies is different from that of a good article, and a second feature that the end portion includes a cross section that is not present in a good article. In this regard, the article inspection device 100 makes a judgment using a first trained model trained based on the contour of the article B, so that the broken article B can be effectively judged as a defective article from the viewpoint of the first feature. In addition, the article inspection device 100 makes a judgment using a second trained model trained based on the end portion of the article B, so that the broken article B can be effectively judged as a defective article from the viewpoint of the second feature. Therefore, it is possible to accurately judge the broken article B as a defective article.

[0043] In the article inspection device 100, the determination unit 13 outputs a determination result when at least one of the determination result using the first trained model and the determination result using the second trained model is a determination result that determines the article B as defective. In this case, it is possible to reliably determine the broken article B as defective.

[0044] The article inspection device 100 includes a display operation unit 8 that displays an X-ray transmission image, a drawing unit 14 that draws an end designation location on the X-ray transmission image displayed on the display operation unit 8, and a learning unit 16 that generates a second trained model by machine learning using the article end image as training data. This makes it possible to reduce the amount of work required to create training data compared to when the entire image is used as training data, and to efficiently perform machine learning to generate the second trained model.

[0045] In the X-ray transmission image, when the area of ​​the article B is equal to or less than the lower threshold, the cross section of the article B often does not appear at the end. In this regard, in the article inspection device 100, when the area of ​​the article B in the X-ray transmission image is equal to or less than the lower threshold, the learning unit 16 does not perform machine learning on the article end image of the article B as teacher data. Therefore, in generating the second learning model, the article inspection device 100 can omit images of the article B whose area is equal to or less than the lower threshold from the machine learning. Therefore, it is possible to generate a second learned model with high judgment accuracy.

[0046] When the area of ​​the article B in the X-ray transmission image is equal to or greater than the upper threshold, it is difficult to distinguish between a defective product (broken article B) and a non-defective product from the contour information. In this regard, the article inspection device 100 includes a learning unit 16 that generates a first trained model by machine learning using the contour information as training data. When the area of ​​the article B in the X-ray transmission image is equal to or greater than the upper threshold, the learning unit 16 does not perform machine learning on the contour information of the article B as training data. Therefore, when generating the first trained model, the article inspection device 100 can omit images that are difficult to distinguish between defective products and non-defective products from the machine learning. Therefore, it is possible to generate a first trained model with high judgment accuracy.

[0047] The article inspection device 100 includes a storage unit 12 that stores multiple types of single piece data having an X-ray transmission image including only one article B and contour information of the article B, a synthetic data generation unit 15 that generates multiple types of synthetic data having an X-ray transmission image including multiple articles B and contour information of the multiple articles B by synthesizing the multiple types of single piece data stored in the storage unit 12, and a learning unit 16 that generates a first trained model by machine learning using the contour information of the multiple types of synthetic data generated by the synthetic data generation unit 15 as teacher data. In this case, when generating the first trained model, for example, annotation that draws the contour of each single article B (for example, surrounding or filling in the entire folded portion) is not necessary, making it possible to reduce mistakes and efforts when acquiring a large number of images for learning. Work efficiency can be significantly improved.

[0048] Although the embodiment of the present invention has been described above, the present invention is not necessarily limited to the above-described embodiment, and various modifications are possible without departing from the gist of the present invention.

[0049] FIG. 8 is a schematic plan view showing an inspection object G0 according to a modified example. FIG. 9(a) is a schematic diagram showing an X-ray transmission image of an object B0 not packed with a sauce T0. FIG. 9(b) is a graph showing the brightness of the X-ray transmission image of FIG. 9(a). FIG. 10(a) is a schematic diagram showing an X-ray transmission image of an object B0 packed with a sauce T0. FIG. 10(b) is a graph showing the brightness of the X-ray transmission image of FIG. 10(a) before correction. FIG. 10(c) is a graph showing the brightness of the X-ray transmission image of FIG. 10(a) after correction. In FIG. 9(b), FIG. 10(b) and FIG. 10(c), the vertical axis represents brightness and the horizontal axis represents the left-right position in the X-ray transmission image.

[0050] The inspection object G0 shown in FIG. 8 includes a plurality of items B0, such as meatballs, packed with sauce T0 (packaged item). When counting the number of items B0 for such an inspection object G0, the brightness differs between the area with sauce T0 and the area without sauce T0. Therefore, the sauce T0 may be identified from the shading of the X-ray transmission image of the inspection object G0, and the brightness of the sauce T0 may be corrected so that it becomes the same as the brightness of the background area of ​​the X-ray transmission image. This causes the brightness of the object B0 overlapping with the sauce T0 to be approximately the same as that of the other objects B0, making it possible to count the number of objects B0 using the threshold value of the object B0.

[0051] Specifically, as shown in FIG. 9(a) and FIG. 9(b), for an item B0 that is not packed with a drip T0, the number of items B0 is counted based on the change in brightness of the X-ray image and the threshold value α. As shown in FIG. 10(a) and FIG. 10(b), for an item B0 that is packed with a drip T0, the number of items may not be counted based on the change in brightness of the X-ray image and the threshold value α due to the influence of the drip T0. Therefore, as shown in FIG. 10(b), first, a drip portion R0 where the drip T0 exists is identified on a brightness graph from the shading of the X-ray image. As shown in FIG. 10(c), the brightness is corrected so that the drip portion R0 matches the brightness of the background portion. This correction makes it possible to count the number of items correctly.

[0052] In the above embodiment, the article inspection apparatus 100 inspects the article B using X-rays, but the article may be inspected using electromagnetic waves other than X-rays. In other words, the article inspection apparatus may inspect the article using a method other than X-rays. For example, the article inspection apparatus may inspect the article using ultraviolet light, infrared light, and / or visible light. In the above embodiment, the electromagnetic waves that have passed through the article B are detected by the detection unit, but the electromagnetic waves reflected by the article B may also be detected by the detection unit. In the above embodiment, the trained model may be generated by a calculation device separate from the control unit 10 of the article inspection apparatus 100.

[0053] In the above embodiment, even if the area of ​​article B in the X-ray transmission image is equal to or smaller than the lower threshold, the learning unit 16 may perform machine learning on the article end image of article B as training data. In the above embodiment, even if the area of ​​article B in the X-ray transmission image is equal to or larger than the upper threshold, the learning unit 16 may perform machine learning on the contour information of article B as training data.

[0054] In the above embodiment, the image of the end of the article is used as the teacher data, but this is not limited thereto, and the entire X-ray transmission image may be used as the teacher data. In the above embodiment, the contour information of the composite data obtained by combining the single item data of the article B alone is used as the teacher data, but this is not limited thereto. An X-ray transmission image may be generated by the image generating unit 11 from X-rays transmitted through an inspection object G including multiple articles B, and contour information of the multiple articles B in the X-ray transmission image may be used as the teacher data. [Explanation of symbols]

[0055] 6...X-ray irradiation unit (irradiation unit), 7...X-ray detection unit (detection unit), 8...display operation unit (display unit), 12...memory unit, 13...judgment unit, 14...drawing unit, 15...synthetic data generation unit (generation unit), 16...learning unit, 100...article inspection device, B, B1, B2...article, P1...X-ray transmission image.

Claims

1. An irradiation unit that irradiates an article with electromagnetic waves; a detection unit that detects the electromagnetic waves irradiated by the irradiation unit and transmitted through or reflected by the article; A determination unit that determines whether the article is a good or defective product using a trained model based on an image generated from the detection result of the detection unit, The determination unit is An object inspection device that uses as the trained models a first trained model trained based on the contour of the object in the image and a second trained model trained based on the edge of the object in the image.

2. The object inspection device of claim 1, wherein the judgment unit outputs a judgment result when at least one of the judgment result using the first trained model and the judgment result using the second trained model is a judgment result that judges the object to be defective.

3. A display unit for displaying the image; a drawing unit that draws a designated portion related to an end portion of the article on the image displayed on the display unit in response to a user's designation; The object inspection device according to claim 1 or 2, further comprising a learning unit that generates the second trained model by machine learning using a portion of the image including the specified location as training data.

4. The object inspection device according to claim 3 , wherein the learning unit does not perform machine learning on a portion including the specified location on an edge of the object as training data when the area of ​​the object in the image is equal to or smaller than a lower threshold value.

5. A learning unit that generates the first trained model by machine learning using contour information on the contour of the object in the image as training data, The object inspection device according to claim 1 or 2, wherein the learning unit does not perform machine learning on the contour information of the object as training data when an area of ​​the object in the image is equal to or larger than an upper threshold value.

6. a storage unit that stores a plurality of types of single item data having the image including only one of the items and contour information relating to a contour of the item; a generating unit that generates a plurality of types of composite data having the image including a plurality of the objects and the contour information of the plurality of the objects by synthesizing the plurality of types of the single object data stored in the storage unit; The object inspection device of claim 1 or 2, further comprising a learning unit that generates the first trained model by machine learning using the contour information of the multiple types of the synthetic data generated by the generation unit as training data.

Citation Information

Patent Citations

  • Teacher data generation device, inspection device, and program

    JP2021152489A