X-ray inspection device, x-ray inspection system and x-ray inspection method

JP2023082280A5Inactive Publication Date: 2024-11-29ISHIDA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021195926
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-11-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The challenge is to maintain inspection accuracy in X-ray inspection systems when the transportation speed of articles is increased, leading to shorter X-ray irradiation times and reduced accuracy.

Method used

The system employs dual-energy X-ray inspection using electromagnetic waves in different energy bands, with image processing that includes subtraction processing based on background luminance distribution to generate accurate difference images, utilizing a lookup table (LUT) correction to align brightness levels between images.

Benefits of technology

This approach ensures high inspection accuracy even at increased article conveyance speeds by effectively distinguishing between the article and background, reducing errors in foreign matter detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide an X-ray inspection device, X-ray inspection system and X-ray inspection method which can prevent reduction in inspection accuracy of an article even if a conveyance speed of the article is increased.SOLUTION: An X-ray inspection device comprises: a conveyance unit which conveys an article; an electromagnetic wave irradiation unit which irradiates the article with a first electromagnetic wave in a first energy band and a second electromagnetic wave in a second energy band; an electromagnetic wave sensor which detects the first electromagnetic wave and the second electromagnetic wave applied to the article; and a control unit which receives an input of a detection result of the electromagnetic wave sensor. The control unit generates a first transmission image based on the detection result of the first electromagnetic wave and a second transmission image based on the detection result of the second electromagnetic wave, executes image processing including subtraction processing to the first transmission image and the second transmission image by using the luminance distribution about a background other than the article captured in the first transmission image and the second transmission image, and determines the presence / absence of a foreign matter included in the article on the basis of a difference image obtained in the subtraction processing.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to an X-ray inspection apparatus, an X-ray inspection system, and an X-ray inspection method. [Background technology]

[0002] Known conventional X-ray inspection devices include, for example, the device described in Patent Document 1. The X-ray inspection device described in Patent Document 1 includes an X-ray source that irradiates an object to be inspected with X-rays, a sensor unit having a first sensor that detects X-rays in a first energy band irradiated from the X-ray source and a second sensor that detects X-rays in a second energy band, an image generation unit that generates a first transmission image of the object to be inspected based on X-ray data detected by the first sensor and generates a second transmission image of the object to be inspected based on X-ray data detected by the second sensor, and an inspection unit that performs inspection based on the image generated by the image generation unit. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2012-73056 Summary of the Invention [Problem to be solved by the invention]

[0004] In the X-ray inspection apparatus described above, for example, the faster the transport speed of an object is, the shorter the time for which the object is irradiated with X-rays becomes, which results in a decrease in the inspection accuracy of the object.

[0005] An object of one aspect of the present invention is to provide an X-ray inspection device, an X-ray inspection system, and an X-ray inspection method that can prevent a decrease in the inspection accuracy of an object even if the transport speed of the object is increased. [Means for solving the problem]

[0006] An X-ray inspection apparatus according to one aspect of the present invention includes a transport unit for transporting an object, an electromagnetic wave irradiating unit for irradiating the object with a first electromagnetic wave in a first energy band and a second electromagnetic wave in a second energy band higher than the first energy band, an electromagnetic wave sensor for detecting the first electromagnetic wave and the second electromagnetic wave irradiated to the object, and a control unit to which detection results of the electromagnetic wave sensor are input. The control unit generates a first transmission image based on the detection result of the first electromagnetic wave and a second transmission image based on the detection result of the second electromagnetic wave, performs image processing including subtraction processing on the first transmission image and the second transmission image using a luminance distribution of background other than the object that is displayed in the first transmission image and the second transmission image, and determines the presence or absence of a foreign object contained in the object based on a difference image obtained by the subtraction processing.

[0007] According to this X-ray inspection apparatus, the control unit performs image processing including subtraction processing on the first and second transmission images by utilizing the brightness distribution of the background other than the object displayed in the first and second transmission images. By using the difference image obtained by performing image processing utilizing the brightness distribution in this manner, highly accurate energy analysis processing can be performed. This makes it possible to prevent a decrease in the inspection accuracy of the object even if, for example, the transport speed of the transport unit is increased.

[0008] The image processing may further include an LUT generation process for generating an LUT (lookup table) used to match the brightness of the first transmission image to that of the second transmission image based on first data indicating the number of pixels for each gradation of the first transmission image and second data indicating the number of pixels for each gradation of the second transmission image, an LUT correction process for correcting at least a portion of the LUT by directly or indirectly utilizing the luminance distribution, and an image correction process for correcting the brightness of the first transmission image by utilizing the corrected LUT. The subtraction process may be performed on the first transmission image after the image correction process and the second transmission image. In this case, the first transmission image is corrected using the LUT corrected by utilizing the luminance distribution. This makes it easier to generate an appropriate difference image.

[0009] The control unit may identify a first gradation having the largest number of pixels from the luminance distribution and a second gradation that is lower than the first gradation and closest to the first gradation among the gradations having the smallest number of pixels from the luminance distribution, and correct at least a portion of the LUT from the first gradation to the second gradation, which makes it easier to generate a more appropriate difference image.

[0010] The control unit may correct the LUT so that the first gradation increases proportionally from the second gradation, thereby enabling the LUT to be corrected simply and effectively.

[0011] In the LUT correction process, at least a part of the LUT may be corrected using a correction LUT that is generated based on the luminance distribution.

[0012] The electromagnetic wave sensor may have a sensor member that detects X-rays in a plurality of different energy bands.

[0013] An X-ray inspection system according to another aspect of the present invention includes an X-ray inspection device having a transport unit for transporting an article, an electromagnetic wave irradiation unit for irradiating the article with a first electromagnetic wave in a first energy band and a second electromagnetic wave in a second energy band higher than the first energy band, and an electromagnetic wave sensor for detecting the first electromagnetic wave and the second electromagnetic wave irradiated to the article, and a control device to which detection results from the X-ray inspection device are input. The control device generates a first transmission image based on the detection result of the first electromagnetic wave and a second transmission image based on the detection result of the second electromagnetic wave, and performs image processing including subtraction processing on the first transmission image and the second transmission image using luminance distribution of background parts other than the article that are displayed in the first transmission image and the second transmission image.

[0014] According to this X-ray inspection system, the control device performs image processing, including subtraction processing, on the first and second transmission images using the brightness distribution of the background other than the object, displayed in the first and second transmission images. By performing image processing using the brightness distribution in this manner, a difference image is obtained. Then, by using this difference image, highly accurate energy analysis processing can be performed. This makes it possible to prevent a decrease in the inspection accuracy of the object, even if the transport speed of the object by the transport unit is increased.

[0015] An X-ray inspection method according to yet another aspect of the present invention includes an electromagnetic wave irradiation step of irradiating an object being transported with a first electromagnetic wave in a first energy band and a second electromagnetic wave in a second energy band higher than the first energy band; an image generation step of generating a first transmission image based on the detection result of the first electromagnetic wave and generating a second transmission image based on the detection result of the second electromagnetic wave; an image processing step of performing image processing including subtraction processing on the first transmission image and the second transmission image by utilizing a luminance distribution of background other than the object that is displayed in the first transmission image and the second transmission image; and a foreign matter determination step of determining whether or not a foreign matter is contained in the object based on a difference image obtained after the image processing step.

[0016] According to this X-ray inspection method, image processing including subtraction processing is performed on the first and second transmission images using the brightness distribution of the background other than the object that is displayed in the first and second transmission images. By using the difference image obtained by performing image processing using the brightness distribution in this way, it is possible to perform highly accurate energy analysis processing. This makes it possible to prevent a decrease in the inspection accuracy of the object even if, for example, the transport speed of the object by the transport unit is increased. [Effects of the Invention]

[0017] According to one aspect of the present invention, it is possible to provide an X-ray inspection device, an X-ray inspection system, and an X-ray inspection method that are capable of preventing a decrease in the inspection accuracy of an object even when the transport speed of the object is increased. [Brief explanation of the drawings]

[0018] [Figure 1] FIG. 1 is a configuration diagram of an X-ray inspection apparatus according to an embodiment. [Figure 2] FIG. 2 is a diagram showing the internal configuration of the shielding box shown in FIG. [Figure 3] FIG. 3(a) is a diagram showing the first transmission image, and FIG. 3(b) is a diagram showing the second transmission image. [Figure 4] FIG. 4 is a histogram showing the number of pixels for each tone in the background image. [Figure 5] FIG. 5(a) is a histogram showing the number of pixels for each gradation in the first transmission image, and FIG. 5(b) is a histogram showing the accumulated number of pixels for each gradation in the first transmission image. [Figure 6] FIG. 6(a) is a histogram showing the number of pixels for each gradation in the second transmission image, and FIG. 6(b) is a histogram showing the accumulated number of pixels for each gradation in the second transmission image. [Figure 7] FIG. 7 is a graph showing an LUT generated based on the first data and the second data. [Figure 8] FIG. 8(a) is an enlarged view of a main part for explaining the correction process of the LUT, and FIG. 8(b) is a graph showing the LUT after correction. [Figure 9] FIG. 9 is a diagram showing the first transmission image after correction. [Figure 10] FIG. 10 is a diagram showing a difference image. [Figure 11] FIG. 11 is a diagram showing a difference image according to a comparative example. [Figure 12] Figure 12(a) is a diagram including a histogram showing the number of pixels for each gradation of a background image obtained by irradiating with X-rays in the first energy band and the histogram shown in Figure 5(a), and Figure 12(b) is a diagram including a histogram showing the number of pixels for each gradation of a background image obtained by irradiating with X-rays in the second energy band and the histogram shown in Figure 6(a). DETAILED DESCRIPTION OF THE INVENTION

[0019] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the description of the drawings, the same or corresponding elements are designated by the same reference numerals, and redundant description will be omitted.

[0020] As shown in FIG. 1, the X-ray inspection apparatus 1 includes an apparatus main body 2, support legs 3, a shielding box 4, a conveying unit 5, an X-ray irradiation unit 6, an X-ray detection unit 7, a display / operation unit 8, and a control unit 10. The X-ray inspection apparatus 1 generates an X-ray transmission image of the object G while conveying the object G, and performs inspection of the object G (e.g., inspection of the number of items stored, inspection of foreign matter, inspection of missing items, inspection of cracks and chips, etc.) based on the X-ray transmission image. The object G before inspection is carried into the X-ray inspection apparatus 1 by a carry-in conveyor 51. The object G after inspection is carried out from the X-ray inspection apparatus 1 by an unloading conveyor 52. The object G determined to be defective by the X-ray inspection apparatus 1 is sorted out of the production line by a sorting device (not shown) arranged downstream of the unloading conveyor 52. The object G determined to be non-defective by the X-ray inspection apparatus 1 passes through the sorting device as is. In this embodiment, the object G is cereal flakes.

[0021] The device main body 2 houses the 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 G is carried out using X-rays. The shielding box 4 is formed with an inlet 4a and an outlet 4b. Items G before inspection are carried into the inspection area R from the inlet 4a of the carry-in conveyor 51. Items G after inspection are carried out from the inspection area R to the outlet 4b of the carry-out conveyor 52. An X-ray shielding curtain (not shown) is provided at each of the inlet 4a and the outlet 4b to prevent leakage of X-rays.

[0022] The transport unit 5 is a member that transports the article G and is arranged to pass through the center of the shielding box 4. The transport unit 5 transports the article G in the transport direction A from the entrance 4a through the inspection area R to the exit 4b. The transport unit 5 is, for example, a belt conveyor that is stretched between the entrance 4a and the exit 4b. Note that the transport unit 5, which is a belt conveyor, may protrude outward beyond the entrance 4a and the exit 4b.

[0023] As shown in FIGS. 1 and 2, the X-ray irradiator 6 is an electromagnetic wave irradiator disposed within the shield box 4. The X-ray irradiator 6 irradiates X-rays onto the object G transported by the transport unit 5. The X-ray irradiator 6 includes, 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 include X-rays in various energy bands ranging from low energy (long wavelength) to high energy (short wavelength). Note that the terms "low" and "high" in the low energy band and high energy band described above indicate relatively "low" and "high" among the multiple energy bands irradiated from the X-ray irradiator 6, and do not indicate a specific range. In this embodiment, the X-ray irradiator 6 irradiates at least X-rays (first electromagnetic waves) in a first energy band corresponding to the low energy band and X-rays (second electromagnetic waves) in a second energy band higher than the first energy band and corresponding to the high energy band.

[0024] The X-ray detection unit 7 is a sensor member (electromagnetic wave sensor) that detects electromagnetic waves, and is disposed inside the shield box 4. The X-ray detection unit 7 detects X-rays in each of a plurality of energy bands that have passed through the article G. In this embodiment, the X-ray detection unit 7 is configured to detect X-rays in a low energy band (first energy band) and X-rays in a high energy band (second energy band). That is, the X-ray detection unit 7 has a first line sensor 11 and a second line sensor 12. The sensor member may be a member that detects X-rays in one energy band, or a member that detects X-rays in a plurality of energy bands (multi-energy sensor member).

[0025] Each of the first line sensor 11 and the second line sensor 12 is composed of a plurality of X-ray detection elements arranged one-dimensionally along a horizontal direction perpendicular to the conveying direction A. The first line sensor 11 detects X-rays in the low energy band that have passed through the article G and the conveying belt of the conveying unit 5. The second line sensor 12 detects X-rays in the high energy band that have passed through the article G, the conveying belt of the conveying unit 5, and the first line sensor 11.

[0026] As shown in Fig. 1, the display operation unit 8 is provided on the device main body 2. The display operation unit 8 displays various information and accepts input of various conditions. The display operation unit 8 is, for example, a liquid crystal display, and displays an operation screen as a touch panel. In this case, the operator can input various conditions via the display operation unit 8.

[0027] The control unit 10 is disposed within the apparatus main body 2. The control unit 10 controls the operation of each unit of the X-ray inspection apparatus 1 (in this embodiment, the transport unit 5, the X-ray irradiation unit 6, the X-ray detection unit 7, and the display operation unit 8, as well as a sorting device (not shown) disposed downstream of the X-ray inspection apparatus 1). The sorting device is a device that removes from the transport path an object to be inspected (item) that has been determined to be a defective product by image inspection by the X-ray inspection apparatus 1. The control unit 10 includes a processor such as a CPU (Central Processing Unit), memories such as a ROM (Read Only Memory) and a RAM (Random Access Memory), and storage such as an SSD (Solid State Drive). A program for controlling the X-ray inspection apparatus 1 is recorded in the ROM.

[0028] The control unit 10 receives the detection results of the X-ray detection unit 7. In this embodiment, the control unit 10 receives the detection results of low-energy band X-rays from the first line sensor 11 of the X-ray detection unit 7 and the detection results of high-energy band X-rays from the second line sensor 12 of the X-ray detection unit 7. The control unit 10 generates transmission images based on the detection results of the first line sensor 11 and the second line sensor 12. As shown in FIG. 3(a), the control unit 10 generates a first transmission image P1 based on the detection results of the low-energy band X-rays from the first line sensor 11. Furthermore, as shown in FIG. 3(b), the control unit 10 generates a second transmission image P2 based on the detection results of the high-energy band X-rays from the second line sensor 12. The first transmission image P1 and the second transmission image P2 each show an object G and a background other than the object G. As shown in the example of FIG. 3(a), the first transmission image P1 is darker overall than the second transmission image P2. 3(b), the second transmission image P2 is brighter overall than the first transmission image P1. In this embodiment, the comparison of the brightness between the first transmission image P1 and the second transmission image P2 corresponds to the comparison of the brightness of the article G displayed in the first transmission image P1 with the brightness of the article G displayed in the second transmission image P2.

[0029] The control unit 10 performs image processing, including subtraction processing, on the first transmission image P1 and the second transmission image P2 using the luminance distribution of the background other than the article G displayed in the first transmission image P1 and the second transmission image P2. In this embodiment, the luminance distribution of the background other than the article G displayed in the first transmission image P1 and the second transmission image P2 can also be considered as the luminance distribution in a background image, which will be described later. In this embodiment, the control unit 10 performs image processing on at least one of the first transmission image P1 and the second transmission image P2 using an image processing algorithm. The image processing algorithm is a template that indicates the processing procedure for image processing to be performed on the first transmission image P1 and the second transmission image P2. The image processing algorithm is composed of one image processing filter or a combination of multiple image processing filters. The multiple image processing algorithms can be obtained externally via a network such as the Internet. The multiple image processing algorithms can also be obtained from an external storage medium such as a USB memory or a removable hard disk. At least one of the multiple image processing algorithms can be automatically generated from multiple image processing filters based on the specifications or inspection conditions of the X-ray inspection device 1 by employing a genetic algorithm (GA), which is a method that applies the mechanisms of heredity and evolution in the biological world. At least some of the multiple image processing algorithms can also be set appropriately by the operator via the display operation unit 8.

[0030] An example of image processing by the control unit 10 will be described below. The control unit 10 performs processing to analyze the luminance distribution in a background image. The background image is a transmission image generated during idle operation of the X-ray inspection apparatus 1, and can be generated, for example, during pre-inspection processing of the X-ray inspection apparatus 1. During idle operation of the X-ray inspection apparatus 1, no objects are placed inside the shield box 4. Therefore, the surface of the conveying unit 5, which corresponds to the background in the first transmission image P1 and the second transmission image P2, is displayed across the entire background image. In this embodiment, the background image is generated based on the detection results of the first line sensor 11 and the second line sensor 12 during idle operation of the X-ray inspection apparatus 1. To analyze the luminance distribution of the background image, the control unit 10 determines the gradation (luminance value) of each pixel in the background image. Furthermore, the control unit 10 calculates the number of pixels for each gradation. In this embodiment, the gradation of each pixel in an image generated by the X-ray inspection apparatus 1 is set to be between 0 and α (α is a natural number). As a result, the control unit 10 obtains information regarding the brightness distribution in the background image, i.e., the number of pixels for each gradation in the background image. The control unit 10 generates, for example, the histogram shown in FIG. 4. FIG. 4 is a histogram showing the number of pixels for each gradation in the background image. In FIG. 4, the horizontal axis represents gradation, and the vertical axis represents the number of pixels. In FIG. 4, the gradation increases toward the right side of the page, and the number of pixels increases toward the top of the page (this also applies to FIGS. 5, 6, and 12, which will be described later). FIG. 4 shows a histogram H1 generated based on the detection results of the first line sensor 11, and a histogram H2 generated based on the detection results of the second line sensor 12. It can be seen that the peaks in each of the histograms H1 and H2 are due to the background (the conveying unit 5).

[0031] Next, the control unit 10 acquires noise information from the luminance distribution. The noise information is information for specifying a range for correcting a lookup table (LUT) to be generated later. The noise information includes a gradation (first gradation T1) with the largest number of pixels from the luminance distribution and a gradation (second gradation T2) that is lower than the first gradation T1 and closest to the first gradation T1 among the gradations with the smallest number of pixels. The second gradation T2 may be a gradation that is lower than the first gradation T1 and the largest among the gradations with the smallest number of pixels. The first gradation T1 and the second gradation T2 are identified using at least one of histograms H1 and H2. The identified first gradation T1 and second gradation T2 are associated with, for example, the conveying speed of the conveying unit 5, the detection level of the X-ray detection unit 7, etc., and stored in the storage unit. Therefore, at least one of the first gradation T1 and the second gradation T2 may vary depending on, for example, the conveying speed of the conveying unit 5. This makes it possible to perform image correction processing suited to the transport speed, etc. At least one of the first gradation T1 and the second gradation T2 may be updated when X-ray inspection apparatus 1 is restarted, etc.

[0032] The control unit 10 analyzes the shading information in the first transmission image P1. For example, the control unit 10 determines the gradation of each pixel in the first transmission image P1 and calculates the number of pixels with the same gradation. As a result, the control unit 10 generates data (first data) indicating the number of pixels for each gradation in the first transmission image P1. Based on the first data, the control unit 10 generates two types of histograms shown in FIGS. 5(a) and 5(b). FIG. 5(a) is a histogram showing the number of pixels for each gradation in the first transmission image P1, and FIG. 5(b) is a histogram showing the accumulated number of pixels for each gradation in the first transmission image P1. In FIGS. 5(a) and 5(b), the horizontal axis represents gradation and the vertical axis represents the number of pixels. The histogram H3 shown in FIG. 5(a) includes a peak 21 and a peak 22 located on the gradation side greater than peak 21. Considering the histograms H1 and H2 shown in FIG. 4, it can be seen that the peak 21 is due to the item G, and the peak 22 is due to the background.

[0033] The control unit 10 analyzes the shading information in the second transmission image P2. For example, the control unit 10 determines the gradation of each pixel in the second transmission image P2 and calculates the number of pixels with the same gradation. This allows the control unit 10 to generate data (second data) indicating the number of pixels for each gradation in the second transmission image P2. Based on the second data, the control unit 10 generates two types of histograms shown in FIGS. 6(a) and 6(b). FIG. 6(a) is a histogram showing the number of pixels for each gradation in the second transmission image P2, and FIG. 6(b) is a histogram showing the cumulative number of pixels for each gradation in the second transmission image P2. In FIGS. 6(a) and 6(b), the horizontal axis indicates gradation, and the vertical axis indicates the number of pixels. The histogram H4 shown in FIG. 6(a) includes a peak 23 and a peak 24 located on the gradation side greater than peak 23. 4, it can be seen that peak 23 is due to item G, and peak 24 is due to the background. The positions of peaks 21 and 23 are shifted from each other. This shift occurs because the brightness of the first transmission image P1 and the brightness of the second transmission image P2 are different from each other.

[0034] The control unit 10 performs a process (LUT generation process) of generating an LUT used to adjust the brightness of the first transmission image P1 to that of the second transmission image P2 based on the first data and the second data. In the first embodiment, an LUT is generated that indicates the gradation of the first transmission image P1 and the gradation of the second transmission image P2 corresponding to a predetermined number of stacked pixels. FIG. 7 is a graph showing the LUT generated based on the first data and the second data. In FIG. 7, the horizontal axis indicates the gradation of the first transmission image P1, and the vertical axis indicates the gradation of the second transmission image P2. In FIG. 7, the gradation of the first transmission image P1 increases toward the right side of the page, and the gradation of the second transmission image P2 increases toward the top of the page (the same applies to FIG. 8, which will be described later).

[0035] The control unit 10 performs a process (LUT correction process) to correct at least a portion of the LUT by directly or indirectly using the luminance distribution of the background image. In this embodiment, the control unit 10 corrects the first gradation T1 and the second gradation T2 obtained from the luminance distribution of the background image in the LUT. For example, the control unit 10 performs a correction by adding a predetermined value to the integrated pixel number of the first data for at least a portion of the first gradation T1 to the second gradation T2. ​​The predetermined value may be a constant or a variable. In the latter case, the predetermined value may increase proportionally (linearly), polynomially, logarithmically, exponentially, or stepwise with increasing gradation. In this embodiment, the control unit 10 corrects the first gradation T1 to the second gradation T2 in the LUT so that the first gradation T1 to the second gradation T2 increase proportionally. In this case, the LUT from the first gradation T1 to the second gradation T2 is corrected as shown in FIG. 8(a). Specifically, as shown in FIG. 8(a), the LUT is corrected so that the change in the histogram from the first gradation T1 to the second gradation T2 follows the line segment connecting the first gradation T1 and the second gradation T2 (i.e., a linear function change). As a result, the control unit 10 generates an R_LUT corresponding to the corrected LUT, as shown in FIG. 8(b). The R_LUT, like the first gradation T1 and the second gradation T2, is associated with, for example, the conveying speed of the conveying unit 5 and the detection level of the X-ray detection unit 7, and is stored in the storage unit. Therefore, the R_LUT may differ for each conveying speed of the conveying unit 5, for example. Note that directly using the luminance distribution means using information obtained from the luminance distribution (e.g., the first gradation T1 and the second gradation T2) as is. Indirectly using the luminance distribution means using data obtained by processing information obtained from the luminance distribution.

[0036] The control unit 10 uses the R_LUT to perform a process (image correction process) for correcting the brightness of the first transmission image P1. In the image correction process, not only the brightness correction of the first transmission image P1 but also resizing and the like may be performed. By performing the image correction process, a corrected first transmission image P1R (first transmission image after image correction process) is generated in which the brightness, size, etc. of the first transmission image P1R is matched with those of the second transmission image P2, as shown in Fig. 9.

[0037] The control unit 10 performs subtraction processing on the corrected first transmission image P1R and second transmission image P2. The subtraction processing divides the luminance values ​​of the corrected first transmission image P1R and second transmission image P2 by each pixel. As a result, the control unit 10 generates a difference image P3 that extracts the difference between the corrected first transmission image P1R and second transmission image P2.

[0038] The control unit 10 determines whether or not a foreign substance is present in the article G based on the difference image P3 obtained by the subtraction process. For example, the control unit 10 performs a process (energy analysis process) to determine whether or not the gradation exceeds a predetermined threshold in the difference image P3 shown in FIG. 10. If a gradation exceeding the predetermined threshold is determined in the difference image P3, the control unit 10 determines that a foreign substance is present in the article G. In this embodiment, the control unit 10 determines that the article G does not contain a foreign substance. The control unit 10 stores the determination result in the memory unit. The threshold is set appropriately by testing or the like depending on the properties of the article G. As a specific example, the threshold can be set using a sample containing a foreign substance.

[0039] Among the processes included in the example of image processing described above, some processes are performed at different times than others. In this embodiment, the process of analyzing the luminance distribution of the background image and the process of acquiring the noise information are performed, for example, during pre-inspection processing by the X-ray inspection apparatus 1. The process of analyzing the shading information of each image, the LUT generation process, and the LUT correction process are performed while setting inspection conditions for the item G in the X-ray inspection apparatus 1. In addition, the image correction process and the subtraction process are performed during the inspection of the item G by the X-ray inspection apparatus 1. In this case, when the X-ray inspection apparatus 1 inspects the item G, an R_LUT stored in advance in a storage unit before the inspection is used. This reduces the computational load on the X-ray inspection apparatus 1 during the inspection of the item G.

[0040] Next, an example of an LUT generation method performed by X-ray inspection apparatus 1 according to this embodiment and an example of an X-ray inspection method using the LUT will be described below.

[0041] First, before X-ray inspection of an item G is performed by the X-ray inspection device 1 (for example, during pre-inspection processing of the X-ray inspection device 1), the luminance distribution in a background image is analyzed (step S0). In step S0, a background image is generated based on the detection results of the first line sensor 11 and the second line sensor 12 while the X-ray inspection device 1 is idle. Next, the gradation (luminance value) of each pixel in the background image is determined, and the number of pixels for each gradation is calculated. This analyzes the luminance distribution in the background image. Then, from the analyzed luminance distribution, a first gradation T1 and a second gradation T2 are identified.

[0042] Next, X-rays of the first energy band and X-rays of the second energy band are irradiated onto the article G being transported (step S1: electromagnetic wave irradiation step). In step S1, while the inspection conditions for the article G are being set in the X-ray inspection device 1, the article G transported into the shielding box 4 by the transport unit 5 is irradiated with the X-rays. Then, the X-rays are detected by the X-ray detection unit 7.

[0043] Next, a first transmission image P1 is generated based on the detection result of the X-rays in the first energy band, and a second transmission image P2 is generated based on the detection result of the X-rays in the second energy band (step S2: image generation step). In step S2, the detection result of the X-ray detection unit 7 is input to the control unit 10, whereby the first transmission image P1 and the second transmission image P2 are generated.

[0044] Next, image processing including subtraction processing is performed on the first transmission image P1 and the second transmission image P2 using the luminance distribution of the background other than the article G displayed in the first transmission image P1 and the second transmission image P2 (step S3: image processing step). In step S3, first, the shading information in each of the first transmission image P1 and the second transmission image P2 is analyzed. This generates first data indicating the number of pixels for each gradation in the first transmission image P1 and second data indicating the number of pixels for each gradation in the second transmission image P2. Next, based on the first data and the second data, an LUT is generated that is used to match the brightness of the first transmission image P1 to that of the second transmission image P2. Next, at least a portion of the LUT is corrected using the luminance distribution of the background image. In this embodiment, the LUT is corrected so that the first gradation T1 to the second gradation T2 increase proportionally (linearly). This generates the corrected LUT, R_LUT. During step S3 described above, the R_LUT is generated.

[0045] Next, the R_LUT is used to correct the brightness of the first transmission image P1 obtained by X-ray inspection of the article G using the X-ray inspection device 1. As a result, a corrected first transmission image P1R (first transmission image after image correction processing) is generated in which the brightness, size, etc. of the first transmission image P1R matches that of the second transmission image P2 obtained by the X-ray inspection. Then, subtraction processing is performed on the corrected first transmission image P1R and the second transmission image P2. As a result, a difference image P3 is generated in which the difference between the corrected first transmission image P1R and the second transmission image P2 is extracted.

[0046] Next, based on the differential image P3 obtained after step S3, it is determined whether or not there is a foreign matter contained in the item G (step S4: foreign matter determination step). Then, the determination result in step S4 is stored in a memory unit. Note that if it is determined in step S4 that the item G contains a foreign matter, the item G is determined to be a defective product and is sorted out of the production line by a sorting device (not shown).

[0047] The effects achieved by the X-ray inspection apparatus 1 according to the present embodiment and the X-ray inspection method using the same will be described below with reference to a comparative example. The configuration of the X-ray inspection apparatus in the comparative example is the same as that of the X-ray inspection apparatus 1 according to the present embodiment, and a first transmission image P1 and a second transmission image P2 of an article G are generated. Similarly to the present embodiment, histograms H1 to H4 and an LUT are also generated. Meanwhile, in the comparative example, an uncorrected LUT is used to correct the brightness of the first transmission image P1 generated during X-ray inspection. Then, subtraction processing is performed on the corrected first transmission image and the second transmission image P2 to obtain a difference image. FIG. 11 is a diagram showing a difference image according to the comparative example. As shown in FIG. 11, in the difference image P103 according to the comparative example, the contour and its vicinity of the article G have a higher gradation (i.e., are brighter) than other portions. Here, if at least a portion of the contour and its vicinity of the article G exhibits a gradation exceeding a predetermined threshold, the X-ray inspection apparatus according to the comparative example will erroneously determine that the article contains a foreign object. The above-mentioned erroneous determination tends to occur more frequently as the speed at which the article is conveyed by the conveying unit 5 increases. Specific examples of the causes of the above-mentioned erroneous determination include a shortened X-ray irradiation time for the article G and a large amount of noise in the data output from the X-ray detection unit 7.

[0048] When we investigated why the difference image P103 described above is generated in the comparative example, we found differences between the positions of the two peaks in the histogram obtained from the first transmission image and the positions of the two peaks in the histogram obtained from the second transmission image, as shown in Figures 12(a) and 12(b). Figure 12(a) is a diagram including a histogram showing the number of pixels relative to the gradation of a background image obtained by irradiating with X-rays in the first energy band and the histogram shown in Figure 5(a). Figure 12(b) is a diagram including a histogram showing the number of pixels relative to the gradation of a background image obtained by irradiating with X-rays in the second energy band and the histogram shown in Figure 6(a).

[0049] Comparing histogram H3 shown in FIG. 12(a) with histogram H4 shown in FIG. 12(b), the distance L2 (tone difference) between peaks 23 and 24 is shorter than the distance L1 (tone difference) between peaks 21 and 22. Therefore, in the second transmission image P2, it is difficult to distinguish the boundary between the object G (the inspection object) and the surface of the conveying unit 5 (the background). Additionally, due to the shift in peak position, a pixel that is determined to represent the edge of the object in the first transmission image P1 may be determined to represent the background in the second transmission image P2. For these reasons, the reliability of the LUT is low in the boundary between the object and the background and in areas brighter than the boundary (boundary area). Therefore, if the brightness of the first transmission image P1 is corrected using an LUT that does not undergo any correction, as in the comparative example, the correction in the boundary area will be insufficient. In this case, pixels with inappropriate gradations may occur in the boundary area after subtraction processing.

[0050] In contrast, in the X-ray inspection apparatus 1 according to this embodiment, the control unit 10 performs image processing, including subtraction processing, on the first transmission image P1 and the second transmission image P2, using the luminance distribution of the background other than the article G displayed in the first transmission image P1 and the second transmission image P2. In this way, the difference image P3 obtained by performing image processing using the luminance distribution is less likely to contain pixels with inappropriate gradations, such as at the boundary between the article G and the background. By performing energy analysis processing using such a difference image P3, it is possible to perform highly accurate energy analysis processing. This makes it possible to prevent a decrease in the inspection accuracy of the article G, even if the transport speed of the article G by the transport unit 5 is increased, for example.

[0051] In this embodiment, the image processing includes an LUT generation process for generating an LUT used to adjust the brightness of the first transmission image P1 to that of the second transmission image P2 based on first data indicating the number of pixels for each gradation in the first transmission image P1 and second data indicating the number of pixels for each gradation in the second transmission image P2, an LUT correction process for correcting at least a portion of the LUT using a luminance distribution, and an image correction process for correcting the brightness of the first transmission image P1 using the corrected LUT, and the subtraction process is performed on the corrected first transmission image P1R and the second transmission image P2. Therefore, the first transmission image P1 is corrected using the LUT corrected using the luminance distribution. This generates a good difference image P3.

[0052] In this embodiment, the control unit 10 identifies the first gradation T1 with the largest number of pixels from the luminance distribution of the background, and the second gradation T2, which is lower than the first gradation T1 and closest to the first gradation T1 among the gradations with the smallest number of pixels from the luminance distribution, and corrects at least a portion of the LUT from the first gradation T1 to the second gradation T2, which makes it easier to generate an appropriate difference image P3.

[0053] In this embodiment, the control unit 10 may correct the LUT so that the first gradation T1 to the second gradation T2 increase proportionally, which allows the LUT to be corrected simply and effectively.

[0054] Although the embodiments of the present invention have been described above, the present invention is not necessarily limited to the above-described embodiments, and various modifications are possible without departing from the spirit of the present invention.

[0055] In the above embodiment, a control unit separate from the X-ray detection unit generates the first transmission image, the second transmission image, etc. based on the detection result of the X-ray detection unit, but this is not limited to this. For example, the X-ray detection unit may generate the first transmission image, the second transmission image, etc. based on the detection result and output the images to the control unit. In this case, the X-ray detection unit may include, for example, an FPGA (Field-Programmable Gate Array). Note that when the X-ray detection unit includes an FPGA, the FPGA may be considered as part of the control unit.

[0056] In the above embodiment, the X-ray detection unit is configured to detect X-rays in two bands, but this is not limiting. In other words, the X-ray inspection apparatus uses X-rays in two bands, but this is not limiting. For example, the X-ray detection unit may be configured to detect X-rays in three or more bands. In this way, the X-ray inspection apparatus may determine the presence or absence of foreign matter contained in an item using X-rays in three or more bands.

[0057] In the above embodiment, the image processing using the luminance distribution involves obtaining the first gradation and the second gradation from the luminance distribution in the background image, and correcting the LUT using the first and second gradations. That is, in the above embodiment, the luminance distribution in the background image is directly used to correct the LUT. However, the present invention is not limited to this. The control unit may directly use the luminance distribution in the background image to correct the LUT. For example, the control unit may generate a correction LUT based on the luminance distribution of a background image obtained by irradiating the background with X-rays in a first energy band and a background image obtained by irradiating the background with X-rays in a second energy band. That is, the control unit may generate a correction LUT processed from information obtained from the luminance distribution. In this case, the control unit may use the correction LUT generated based on the luminance distribution to correct at least a portion of an LUT generated based on first data indicating the number of pixels for each gradation in the first transmission image and second data indicating the number of pixels for each gradation in the second transmission image. In other words, the control unit may correct at least a part of the LUT generated based on the first data and the second data by indirectly using the luminance distribution (using the correction LUT).

[0058] In the above embodiment, the X-ray inspection apparatus includes a control unit that performs image processing. However, this is not limited to this. For example, the X-ray inspection apparatus does not necessarily include functions such as image processing in the control unit, determining the presence or absence of a foreign object in an object based on a differential image, and displaying the X-ray inspection results. Instead, these functions may be implemented in a control device that can communicate with the X-ray inspection apparatus via wire or wired communication. In this case, an X-ray inspection system can be realized that includes the X-ray inspection apparatus and the control device to which the inspection results of the X-ray inspection apparatus are input. This X-ray inspection system also achieves the same effects as those of the above embodiment. In addition, the configuration of the control unit included in the X-ray inspection apparatus can be simplified. Furthermore, a user can view differential images and the like even when located away from the X-ray inspection apparatus. The control device is not particularly limited, and may be, for example, a laptop PC or a tablet. Furthermore, the control device does not necessarily have to include the function of determining the presence or absence of a foreign object. For example, the control device may have at least the function of generating an LUT and an R_LUT. [Explanation of symbols]

[0059] 1...X-ray inspection device, 3...support leg, 4...shielding box, 4a...feed-in entrance, 4b...feed-out exit, 5...transport unit, 6...X-ray irradiation unit, 7...X-ray detection unit, 8...display operation unit, 11...first line sensor, 12...second line sensor, A...transport direction, G...item, P1...first transmission image, P1R...corrected first transmission image (first transmission image after image correction processing), P2...second transmission image, P3, P103...difference image.

Claims

1. a conveying unit that conveys the article; an electromagnetic wave irradiation unit that irradiates the article with a first electromagnetic wave in a first energy band and a second electromagnetic wave in a second energy band higher than the first energy band; an electromagnetic wave sensor that detects the first electromagnetic wave and the second electromagnetic wave irradiated to the article; a control unit to which the detection result of the electromagnetic wave sensor is input; Equipped with The control unit generating a first transmission image based on a detection result of the first electromagnetic wave and a second transmission image based on a detection result of the second electromagnetic wave; performing image processing including subtraction processing on the first transmission image and the second transmission image by directly or indirectly utilizing a luminance distribution of a background other than the article among the first transmission image and the second transmission image; determining whether or not a foreign substance is present in the article based on the difference image obtained by the subtraction processing; X-ray inspection equipment.

2. The image processing an LUT generation process for generating an LUT (look-up table) used to adjust the brightness of the first transmission image to that of the second transmission image, based on first data indicating the number of pixels for each gradation of the first transmission image and second data indicating the number of pixels for each gradation of the second transmission image; an LUT correction process for correcting at least a part of the LUT by directly or indirectly utilizing the luminance distribution; and an image correction process of correcting the brightness of the first transmission image by using the corrected LUT. The X-ray inspection apparatus according to claim 1 , wherein the subtraction processing is performed on the first radiographic image and the second radiographic image after the image correction processing.

3. The control unit Identifying a first gradation having the largest number of pixels from the luminance distribution and a second gradation that is lower than the first gradation and closest to the first gradation from among the gradations having the smallest number of pixels from the luminance distribution; The X-ray inspection apparatus according to claim 2 , wherein at least a part of the LUT from the first gradation to the second gradation is corrected.

4. The X-ray inspection apparatus according to claim 3 , wherein the control unit corrects the first gradation to the second gradation in the LUT so that the gradations increase proportionally.

5. The X-ray inspection apparatus according to claim 2 , wherein in the LUT correction process, at least a part of the LUT is corrected using a correction LUT generated based on the luminance distribution.

6. 6. The X-ray inspection apparatus according to claim 1, wherein the electromagnetic wave sensor has a sensor member that detects X-rays in a plurality of different energy bands.

7. an X-ray inspection device including: a transport unit that transports an article; an electromagnetic wave irradiating unit that irradiates the article with a first electromagnetic wave in a first energy band and a second electromagnetic wave in a second energy band higher than the first energy band; and an electromagnetic wave sensor that detects the first electromagnetic wave and the second electromagnetic wave irradiated to the article; a control device to which the detection results of the X-ray inspection device are input; Equipped with The control device generating a first transmission image based on a detection result of the first electromagnetic wave and a second transmission image based on a detection result of the second electromagnetic wave; performing image processing including subtraction processing on the first transmission image and the second transmission image by utilizing a luminance distribution of a background other than the article that is displayed in the first transmission image and the second transmission image; X-ray inspection system.

8. an electromagnetic wave irradiation step of irradiating a first electromagnetic wave in a first energy band and a second electromagnetic wave in a second energy band higher than the first energy band onto an article being transported; an image generating step of generating a first transmission image based on a detection result of the first electromagnetic wave and generating a second transmission image based on a detection result of the second electromagnetic wave; an image processing step of performing image processing including subtraction processing on the first transmission image and the second transmission image by utilizing a luminance distribution of a background other than the article among the first transmission image and the second transmission image; a foreign matter determination step of determining whether or not a foreign matter is present in the article based on the difference image obtained after the image processing step; An X-ray inspection method comprising: