METHOD AND APPARATUS FOR DETECTING CARGO IN CONTAINER IMAGE USING CONTAINER WALL BACKGROUND REMOVAL
20230394779 · 2023-12-07
Inventors
Cpc classification
G06V10/751
PHYSICS
G06V10/273
PHYSICS
G06V2201/05
PHYSICS
G06V10/7715
PHYSICS
International classification
G06V10/26
PHYSICS
G06V10/77
PHYSICS
G06V10/75
PHYSICS
Abstract
Provided are a method and apparatus for detecting cargo in a container image using container wall background removal. The method of detecting cargo in a container image according to an aspect of the present invention includes: receiving a backscatter X-ray target container image captured on a target container; acquiring a backscatter X-ray empty target container wall image of an empty container that corresponds to the target container and a capturing condition of the backscatter X-ray target container image; generating a difference image in which a wall background of the target container is removed based on the backscatter X-ray target container image and the backscatter X-ray empty target container wall image; and detecting cargo included in the target container based on the difference image.
Claims
1. A method of detecting cargo in a container image, the method comprising: receiving a backscatter X-ray target container image captured on a target container; acquiring a backscatter X-ray empty target container wall image of an empty container that corresponds to the target container and a capturing condition of the backscatter X-ray target container image; generating a difference image in which a wall background of the target container is removed based on the backscatter X-ray target container image and the backscatter X-ray empty target container wall image; and detecting cargo included in the target container based on the difference image.
2. The method of claim 1, wherein: the receiving includes additionally receiving the photographing condition including a geometric condition between the target container and an X-ray source and a geometric condition between the target container and an X-ray detector; and the acquiring of the backscatter X-ray empty target container wall image includes acquiring, as the backscatter X-ray empty target container wall image, an empty container wall image corresponding to information about the target container and the received capturing condition among empty container wall images that are pre-constructed for container information and each capturing condition.
3. The method of claim 2, wherein the acquiring of the backscatter X-ray empty target container wall image includes: extracting a feature point for the target container through the backscatter X-ray target container image; searching for empty container wall images corresponding to the information about the target container using the extracted feature point; and acquiring an empty container wall image corresponding to the capturing condition among the retrieved empty container wall images as the backscatter X-ray empty target container wall image.
4. The method of claim 1, wherein the acquiring of the backscatter X-ray empty target container wall image includes: acquiring information about the target container and the capturing condition using artificial intelligence of a pre-trained model that uses the backscatter X-ray target container image as an input; and acquiring the backscatter X-ray empty target container wall image corresponding to the information about the target container and the capturing condition.
5. The method of claim 1, wherein: the receiving includes receiving the backscatter X-ray target container image including the target container and a phantom installed in advance; the generating of the difference image includes correcting the backscatter X-ray target container image using image information of the phantom included in the backscatter X-ray target container image and image information of the phantom constructed in advance, and generating the difference image using the corrected backscatter X-ray target container image and the backscatter X-ray empty target container wall image.
6. The method of claim 5, wherein the generating of the difference image includes correcting the backscatter X-ray target container image such that a brightness distribution of the phantom included in the backscatter X-ray target container image is the same as a brightness distribution of the phantom constructed in advance.
7. The method of claim 5, wherein the phantom is installed in a preset location of the target container or installed to be spaced apart from the target container.
8. The method of claim 1, wherein the acquiring of the backscatter X-ray empty target container wall image includes, when the backscatter X-ray empty target container wall image corresponding to the target container and the capturing condition is not present, searching for at least two empty container wall images that are most similar to the target container and the capturing condition among empty container wall images that are pre-constructed for container information and each capturing condition, and generating and acquiring the backscatter X-ray empty target container wall image corresponding to the target container and the capturing condition using the at least two empty container wall images.
9. The method of claim 1, wherein the receiving includes receiving a first backscatter X-ray target container image and a second backscatter X-ray target container image captured on the target container at a first wavelength and a second wavelength, respectively, the acquiring of the backscatter X-ray empty target container wall image includes acquiring a first backscatter X-ray empty target container wall image corresponding to the target container and a capturing condition of the first backscatter X-ray target container image, and a second backscatter X-ray empty target container wall image corresponding to the target container and a capturing condition of the second backscatter X-ray target container image, the generating of the difference image includes generating a first difference image of the first backscatter X-ray target container image and the first backscatter X-ray empty target container wall image and a second difference image of the second backscatter X-ray target container image and the second backscatter X-ray empty target container wall image, and the detecting of the cargo includes detecting the cargo based on the first difference image and the second difference image.
10. The method of claim 1, wherein the receiving includes receiving a first backscatter X-ray target container image and a second backscatter X-ray target container image captured on the target container at a first wavelength and a second wavelength, respectively, the acquiring of the backscatter X-ray empty target container wall image includes generating a third backscatter X-ray target container image of a third wavelength that is closest to the first wavelength and the second wavelength based on the first backscatter X-ray target container image and the second backscatter X-ray target container image, and acquiring a third backscatter X-ray empty target container wall image corresponding to the target container and a capturing condition including the third wavelength among pre-constructed empty container wall images, the generating of the difference image includes generating a third difference image of the third backscatter X-ray target container image and the third backscatter X-ray empty target container wall image, and the detecting of the cargo includes detecting the cargo based on the third difference image.
11. A method of detecting cargo in a container image, the method comprising: receiving a backscatter X-ray target container image captured on a target container and a phantom installed at a preset location; acquiring a backscatter X-ray empty target container wall image of an empty container that corresponds to the target container, the phantom, and a capturing condition of the backscatter X-ray target container image; correcting the backscatter X-ray empty target container wall image using image information of the phantom included in the backscatter X-ray target container image and image information of the phantom included in the backscatter X-ray empty target container wall image; generating a difference image, in which a wall background of the target container is removed, using the backscatter X-ray target container image and the corrected backscatter X-ray empty target container wall image; and detecting cargo included in the target container based on the difference image.
12. An apparatus for detecting cargo in a container image, the apparatus comprising: a receiving unit configured to receive a backscatter X-ray target container image captured on a target container; an acquisition unit configured to acquire a backscatter X-ray empty target container wall image of an empty container that corresponds to the target container and a capturing condition of the backscatter X-ray target container image; a generation unit configured to generate a difference image in which a wall background of the target container is removed based on the backscatter X-ray target container image and the backscatter X-ray empty target container wall image; and a detection unit configured to detect cargo included in the target container based on the difference image.
13. The apparatus of claim 12, wherein the receiving unit additionally receives the capturing condition including a geometric condition between the target container and an X-ray source and a geometric condition between the target container and an X-ray detector, and the acquisition unit acquires, as the backscatter X-ray empty target container wall image, an empty container wall image corresponding to information about the target container and the received capturing condition among empty container wall images pre-constructed for container information and each capturing condition.
14. The apparatus of claim 13, wherein the acquisition unit: extracts a feature point for the target container through the backscatter X-ray target container image; searches for empty container wall images corresponding to the information about the target container using the extracted feature point; and acquires an empty container wall image corresponding to the capturing condition among the retrieved empty container wall images as the backscatter X-ray empty target container wall image.
15. The apparatus of claim 12, wherein the acquisition unit acquires information about the target container and the capturing condition using artificial intelligence of a pre-trained model that uses the backscatter X-ray target container image as an input, and acquires the backscatter X-ray empty target container wall image corresponding to the information about the target container and the capturing condition.
16. The apparatus of claim 12, wherein the receiving unit receives the backscatter X-ray target container image including the target container and a phantom installed in advance, and the generation unit corrects the backscatter X-ray target container image using image information of the phantom included in the backscatter X-ray target container image and image information of the phantom constructed in advance, and generates the difference image using the corrected backscatter X-ray target container image and the backscatter X-ray empty target container wall image.
17. The apparatus of claim 16, wherein the generation unit corrects the backscatter X-ray target container image such that a brightness distribution of the phantom included in the backscatter X-ray target container image is the same as a brightness distribution of the phantom constructed in advance.
18. The apparatus of claim 12, wherein the acquisition unit, when the backscatter X-ray empty target container wall image corresponding to the target container and the capturing condition is not present, searches for at least two empty container wall images that are most similar to the target container and the capturing condition among empty container wall images pre-constructed for container information and each capturing condition, and generates and acquires the backscatter X-ray empty target container wall image corresponding to the target container and the capturing condition using the at least two empty container wall images.
19. The apparatus of claim 12, wherein the receiving unit receives a first backscatter X-ray target container image and a second backscatter X-ray target container image captured on the target container at a first wavelength and a second wavelength, respectively, the acquisition unit acquires a first backscatter X-ray empty target container wall image corresponding to the target container and a capturing condition of the first backscatter X-ray target container image, and a second backscatter X-ray empty target container wall image corresponding to the target container and a capturing condition of the second backscatter X-ray target container image, the generation unit generates a first difference image of the first backscatter X-ray target container image and the first backscatter X-ray empty target container wall image and a second difference image of the second backscatter X-ray target container image and the second backscatter X-ray empty target container wall image, and the detection unit detects the cargo based on the first difference image and the second difference image.
20. The apparatus of claim 12, wherein the receiving unit receives a first backscatter X-ray target container image and a second backscatter X-ray target container image captured on the target container at a first wavelength and a second wavelength, respectively, the acquisition unit generates a third backscatter X-ray target container image of a third wavelength that is closest to the first wavelength and the second wavelength based on the first backscatter X-ray target container image and the second backscatter X-ray target container image, and acquires a third backscatter X-ray empty target container wall image corresponding to the target container and a capturing condition including the third wavelength among pre-constructed empty container wall images, the generation unit generates a third difference image of the third backscatter X-ray target container image and the third backscatter X-ray empty target container wall image, and the detection unit detects the cargo based on the third difference image.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other objects, features and advantages of the present invention will become more apparent to those of ordinary skill in the art by describing exemplary embodiments thereof in detail with reference to the accompanying drawings, in which:
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS
[0030] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art may easily implement the present disclosure. As those skilled in the art would realize, the described embodiments may be modified in various different ways, without departing from the spirit or scope of the present invention.
[0031] In the following description of embodiments of the present disclosure, when it is determined that a detailed description of a known structure or function may obscure the subject matter of the present disclosure, the detailed description will be omitted. In the drawings, parts irrelevant to the description of the present disclosure are omitted, and like reference numerals designate like parts.
[0032] In the present disclosure, when a component is “connected,” “coupled” or “connected” with another component, it may be not only a direct connection, but also an indirect connection in which another component exists in the middle of the connection. In addition, when a component “includes” or “has” another component, it means that it may further include another component, without excluding other components, unless specifically stated otherwise.
[0033] In the present disclosure, terms such as “first” and “second” are used only for the purpose of distinguishing one component from other components, and do not limit the order or the importance between the components unless specifically mentioned. Accordingly, within the scope of the present disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and likewise, a second component in one embodiment may be referred to as a first component in another embodiment.
[0034] In the present disclosure, the components are distinguished from each other in order to clearly describe each feature, and this does not necessarily mean that the components are separated. That is, a plurality of components may be integrated into one hardware or software unit, or one component may be distributed and formed into a plurality of hardware or software units. Therefore, if not mentioned otherwise, such integrated or distributed embodiments are included in the scope of the present disclosure.
[0035] In the present disclosure, components described in various embodiments are not necessarily required components, and some may be optional components. Therefore, an embodiment composed of a subset of components described in an embodiment is also included in the scope of the present disclosure. In addition, embodiments including other components in addition to the components described in the various embodiments are included in the scope of the present disclosure.
[0036] In the present disclosure, expressions of positional relationships “upper,” “lower,” “left,” “right,” etc. are described for convenience of description, and when viewing the drawings shown in the specification in reverse, the positional relations described in the specification may also be interpreted in reverse.
[0037] In the field of customs security inspection at border crossings, which involves handling a variety of target cargo, from detecting dangerous cargo such as smuggled weapons to detecting organic cargo such as hidden agricultural products and drug seizures, the efficiency and accuracy of reading hidden cargo and dangerous cargo should be increased, so there is a need for a method of effectively removing signals coming from a container wall background area other than an object at a border customs site and generating an image that ensures relatively easy detection.
[0038] In addition, in the case of generating a difference image between X-ray transmission images according to the related art, background pixel values are removed by performing correction in consideration of all attenuation coefficients of materials that an optical axis passes through, whereas in the case of a backscatter X-ray image, both X-rays backscattered from cargo and X-rays backscattered from a container wall reach an X-ray sensor, and thus a backscatter X-ray image with a shadow of the container wall removed may be easily obtained by removing backscatter signals collected in advance under the specifications of the container wall and the incident conditions that are recognized in advance.
[0039] Embodiments of the present disclosure aim to easily detect cargo in a container, for example, hidden cargo, by removing a background including a shadow of a container wall from a backscatter X-ray image of a container containing cargo.
[0040] Embodiments of the present disclosure may, from backscatter X-ray empty container wall images that are pre-constructed according to specifications or information of containers and capturing conditions of backscatter X-ray images, acquire a backscatter X-ray empty container wall image corresponding to information of a target container and a capturing condition, and remove a wall background of the target container from a corresponding backscatter X-ray target container image using the corresponding backscatter X-ray empty container wall image, thereby detecting cargo included in the target container.
[0041] Furthermore, embodiments of the present disclosure may correct a backscatter X-ray target container image using image information about at least one phantom pre-installed when constructing a backscatter X-ray empty container wall image and image information about at least one phantom included in a backscatter X-ray target container image, thereby clearly removing a wall background of a target container from the backscatter X-ray target container image.
[0042] In this case, embodiments of the present disclosure may store image information (hereinafter referred to as “phantom reference image information”) standardized or normalized for at least one phantom, and may normalize pre-constructed empty container wall images or a difference image using the phantom reference image information.
[0043] Hereinafter, in the detailed description of the present disclosure, a backscatter X-ray target container image is referred to as a target container image, and a backscatter X-ray empty target container wall image is referred to as an empty target container wall image.
[0044]
[0045] In the embodiments of the present disclosure, a target container image of a target container for which cargo is to be detected is captured by a backscatter X-ray apparatus, the captured target container image is received, and a difference image between the captured target container image and a pre-constructed empty target container wall image is generated, so that the cargo loaded in the target container may be easily detected through the difference image.
[0046] A method and apparatus according to an embodiment of the present disclosure will be described with reference to
[0047]
[0048] Referring to
[0049] In this case, in operation S210, the target container image may be received from the backscatter X-ray apparatus by capturing a backscatter X-ray image on the entire wall surface of the target container based on pre-input specifications under an orthogonal incident condition.
[0050] Here, the capturing condition may include geometric conditions between the X-ray source and the target container and geometric conditions between the target container and the X-ray detector (a backscattering X-ray detector), and may further include target container information including a size of the target container, a material of the target container, X-ray energy, an X-ray wavelength, and the like.
[0051] The capturing conditions may be set in advance when capturing the target container image, and the capturing conditions may be received together at the same time as receiving of the target container image. Although the capturing conditions may be received together at the same time as the receiving of the target container image, they are not limited or restricted thereto, and the capturing conditions may be acquired using artificial intelligence of a pre-trained learning model that takes the received target container image as an input to detect the capturing conditions including information of the target container, a geometric condition between the X-ray source and the target container, and a geometric condition between the target container and the backscattering X-ray detector from the target container image.
[0052] According to an embodiment, as shown in
[0053] According to another embodiment, in operation S210, a capturing condition including a relative geometric condition between the target container wall and the X-ray source and a relative geometric condition between the target container wall and the backscattering X-ray detector may be received, and in operation S220, the target container image may be analyzed to extract feature points of the wall of the target container to search for empty container wall images corresponding to a wall specification of the target container using the extracted feature points, and then an empty container wall image corresponding to the capturing condition among the retrieved empty container wall images may be acquired as an empty target container wall image.
[0054] In the embodiments of the present disclosure, a method of acquiring an empty target container wall image is not limited or restricted to the above method, and the empty target container wall image may be acquired using any method applicable to the method of the present disclosure.
[0055] When the empty target container wall image is acquired in operation S220, a difference image in which a wall background of the target container is removed is generated using the target container image and the empty target container wall image (S230).
[0056] In this case, in operation S230, the empty target container wall image may be removed from the target container image through a pixel value difference between the target container image and the empty target container wall image, thereby generating the difference image in which the wall background of the target container is removed.
[0057] For example, in operation S230, through a difference in pixel values between a target container image 310 (see
[0058] In this case, the difference image may be generated with a difference in pixel values between the target container image and the empty target container wall image, which is achieved using X-ray characteristics of backscattering X-rays on multiple paths that are reflected from a material in paths and accumulated in an X-ray detector. That is, in operation S230, the difference image may be generated by acquiring a difference in pixel values between the two images.
[0059] When the difference image in which the wall background of the target container is removed is generated in operation S230, cargo included in the target container, for example, hidden cargo, is detected based on the difference image (S240), and detection information of the cargo, for example, the location and type of the cargo, are displayed on the target container image or the difference image (S250).
[0060] In this case, in operation S240, the type of the cargo, for example, metal, an inorganic material, an organic material, and the like, and the location of the cargo may be detected from the difference image using a pre-trained learning model for detecting the type and location of cargo, and in operation S250, the detection information detected as described above may be transmitted to a display screen, so that the detection information may be displayed on the target container image or the difference image. In operations S240 and S250, not only hidden cargo but also all types and forms of cargo specifiable from images may be detected and displayed.
[0061] The learning model used in the embodiments of the present disclosure may be provided using all types of applicable artificial intelligence, such as a deep neural network (DNN), a convolutional neural network (CNN), a recursive neural network (RNN), and the like, and since methods of training the artificial intelligence are obvious to those skilled in the art, description thereof is omitted.
[0062] Furthermore, in the method according to an embodiment of the present disclosure, a geometric condition, a wavelength, a spatial resolution, and the like may not exactly match between the target container image and the empty container wall image. In this case, an empty container wall image corresponding to the target container image may be generated using the pre-constructed empty container wall images. For example, as shown in
[0063] In addition, in a method according to the embodiment of the present disclosure, when the X-ray source can emit X-rays of at least two different wavelengths to the target container rather than emitting X-rays of only one wavelength, target container images of the at least two different wavelengths, for example, a first target container image and a second target container image, may be received. In this case, the method according to the embodiment of the present disclosure may include, upon receiving a first target container image and a second target container image captured at the first wavelength and the second wavelength, respectively, acquiring a first empty target container wall image corresponding to information about the target container, such as a specification of the target container, and a capturing condition of the first target container image, and a second empty target container wall image corresponding to information about the target container, such as a specification of the target container, and a capturing condition of the second target container image, and generate a difference image (e.g., a first difference image) between the first target container image and the first empty target container wall image and a difference image (e.g., a second difference image) between the second target container image and the second empty target container wall image, so that cargo in the target container may be detected using the first difference image and the second difference image. According to an embodiment, the method of the present disclosure may include comparing and analyzing detection information of cargo detected by the first difference image and detection information of cargo detected by the second difference image, to acquire final detection information of the cargo in the target container. Alternatively, the present disclosure may acquire an average image of the first difference image and the secondary difference image and acquire detection information of the cargo in the target container using the average image. Such methods correspond to a case in which the first empty target container wall image and the second empty target container wall image are present in the pre-constructed database. However, the corresponding empty target container wall images may not be present in the database, and in this case, according to a method (1), empty target container wall images each corresponding to a respective one of the first target container image and the second target container image may be generated, and according to a method (2), a target container image corresponding to a pre-constructed empty target container wall image may be generated using the first target container image and the second target container image. Here, the method (1) may include generating the empty target container wall image through the method described in
[0064]
[0065] Referring to
[0066] As described above, the method according to the embodiment of the present disclosure may be used not only when there is a pre-constructed empty target container wall image corresponding to information about the target container, such as a specification of the target container, and the like, and a capturing condition, such as a relative geometric condition between the target container wall and the X-ray source, a relative geometric condition between the target container wall and the X-ray detector, a wavelength of the X-ray source, and the like, but also when there is no pre-constructed empty target container wall image corresponding to information about the target container and the capturing condition. The various techniques described above may be used to clearly remove the wall background of the target container from the target container image, and may resolve various issues that may be caused by the wall background through the removal of the wall background, and thus cargo inside the target container may be clearly detected.
[0067] On the other hand, even when the same target container is captured under the same capturing condition, there may be a difference in pixel values between empty container wall images pre-constructed according to container information and capturing conditions and a target container image captured in an actual field due to the surrounding environment and the like. Therefore, in order to remove this factor, a method according to an embodiment of the present disclosure may include performing correction, for example, calibration, on a target container image captured in practice and a pre-constructed empty container wall image using a phantom, to resolve issues caused by an environmental difference, such as an issue of a difference in pixel values of the same object in the target container image and the empty container wall image.
[0068] Depending on the embodiment, the phantom for calibration may take a form in which a plurality of material samples having the same thickness are perpendicular to the axis of the source and the detector, which do not overlap, and arranged on a plane parallel to the axis. In this case, when the phantom is formed of a plurality of materials, the phantom may include various materials that represent various reflection characteristics, such as various steels or non-ferrous metals used as materials for the container. The phantom may be installed at a location that does not overlap a container area, and when the phantom needs to be installed at a location that overlaps the container area, the phantom may be installed at a location in which cargo is not placed, for example, between a container wall and an X-ray source. The phantom may be captured while installed at a predefined geometric position. Further, the phantom for calibration may be installed at a specific location of the container, but it is not limited thereto, and the phantom may be installed at a preset location spaced a predetermined interval from the container.
[0069]
[0070] Referring to
[0071] Although each image may be corrected through the above-described process, it is not limited or restricted thereto, and phantom image areas included in each of the target container image and the empty target container wall image may be compared, and correction may be performed on one of the target container image and the empty target container wall image, for example, the target container image, such that the brightness distributions of the two phantom image areas become the same, so that a difference image between the corrected target container image and the empty target container wall image may be clearly generated, and cargo inside the target container may be detected using the difference image. For example, in the process of correction, a color conversion formula may be determined through linear or nonlinear regression such that the two phantom image areas have statistically the same distribution of brightness, and the formula may be applied to the target container image, thereby correcting the target container image.
[0072] In this case, when the difference image is input to artificial intelligence of a pre-trained learning model, the difference image may be normalized through pre-processing before being input to the learning model so that the cargo in the target container may be detected by the learning model through the normalized difference image.
[0073] According to an embodiment, when the database is built in a state in which each of the empty container wall images is corrected by the standard empty container wall image as shown in
[0074] In an embodiment of the present disclosure, a technique for correcting a target container image using a phantom image area is not limited or restricted to the above, and various techniques capable of correcting using a phantom image area may be applicable.
[0075] In an embodiment of the present disclosure, the empty container wall images may be captured by a combination of a non-moving X-ray source and a moving X-ray detector or may be captured by a combination of a moving X-ray source and a moving X-ray detector when constructing an empty container wall image database. In this case, when constructing empty container wall images, the empty container wall images may be constructed by considering the statistics of capturing conditions collected in the field, to cover the distance from the container, the height from the ground, and the slope of the container in various ways, or may be constructed using X-rays of different wavelengths by reflecting various capturing conditions in the field, or may be constructed using X-ray detectors of various spatial resolutions. Furthermore, when capturing empty container wall images, a pre-designed phantom may be installed at a specific location of an empty container to acquire an empty container wall image including a phantom image, by which an empty container wall image including phantom image information for calibration may be added to a database. Here, the phantom image included in the empty container wall image may be an image of a phantom having the same reflective material and shape as a phantom installed in an actual target container, and the shape and material of the phantom may be designed and determined by the business or individuals providing the technology according to the present disclosure.
[0076] Furthermore, a method according to an embodiment of the present disclosure may include removing noise included in an image using a noise removal algorithm for removing various types of noise that may occur during X-ray imaging, such as grid noise between an X-ray source and an X-ray detector.
[0077] In addition, in a method according to an embodiment of the present disclosure, a method of comparing a geometric condition of a target container image and a geometric condition of an empty container wall image may include comparing a geometric condition corresponding to a key-point inferred from a target container image in a one-to-one manner against a specific geometric condition of an empty container wall image, directly comparing a combination of key-points inferred from an empty container wall image and a combination of key-points inferred from a target container image, comparing a geometric condition corresponding to a key-point inferred from an empty container wall image in a one-to-one manner against a specific geometric condition of a target container image, and directly comparing a geometric condition of an empty container wall image and a geometric condition of a target container image, and at least one of the above methods may be selected according to conditions of border search sites and database construction conditions.
[0078] According to an embodiment, in the method according to the embodiment of the present disclosure, when a plurality of container images are captured by a plurality of X-ray source-detector pairs installed at a plurality of angles, empty container wall images for the plurality of angles may also be constructed in a database. In this case, a plurality of phantoms need to be installed so as not to overlap a container area under each capturing condition both in the target container capturing and the empty container capturing.
[0079] As described above, the method according to the embodiment of the present disclosure may include removing a background including the shadow of a container wall from a backscatter X-ray image of a container containing cargo, thereby easily detecting the cargo in the container, for example, hidden cargo. At the actual border surveillance site, it is impossible to remove all the loaded cargo in a container and capture an image of the empty container wall. On the other hand, a backscatter X-ray image acquired by reflection from a steel container box having a non-simple pattern is added to the existing cargo image, increasing the detection difficulty. The method according to an embodiment of the present disclosure may include removing patterns of only the container as much as possible from the inspection image, which allows focusing on a cargo loading situation, facilitating detection of not only metal-containing dangerous cargo, such as firearms and knives, but also hidden cargo including smuggled agricultural products, drugs, and the like and also facilitating prevention of illegal entry, contributing to the health and safety of the public.
[0080]
[0081] Referring to
[0082] The receiving unit 810 receives a target container image captured for a target container.
[0083] In this case, the receiving unit 810 may additionally receive a capturing condition including a geometric condition between the target container and an X-ray source and a geometric condition between the target container and an X-ray detector.
[0084] Here, the target container image may be a backscatter X-ray image including the target container and a phantom installed in advance.
[0085] Furthermore, the receiving unit 810 may receive a first target container image and a second target container image captured at a first wavelength and a second wavelength, respectively, on the target container. This is for a case in which a backscattering X-ray apparatus emits different X-ray wavelengths, and target container images of different wavelengths according to the different X-ray wavelengths may be received from the backscattering X-ray apparatus.
[0086] The acquisition unit 820 acquires an empty target container wall image corresponding to the target container and the capturing condition of the target container image.
[0087] In this case, the acquisition unit 820 may acquire, as the backscatter X-ray empty target container wall image, an empty container wall image corresponding to information about the target container and the capturing condition among empty container wall images that are pre-constructed for container information and each capturing condition.
[0088] In this case, the acquisition unit 820 may extract a feature point for the target container through the target container image, search for empty container wall images corresponding to the information about the target container using the extracted feature point, and acquire an empty container wall image corresponding to the capturing condition among the retrieved empty container wall images as the empty target container wall image.
[0089] In this case, the acquisition unit 820 may acquire information about the target container and the capturing condition using artificial intelligence of a pre-trained model that uses the target container image as an input, and acquire the empty target container wall image corresponding to the information about the target container and the capturing condition.
[0090] In this case, the acquisition unit 820 may, when the empty target container wall image corresponding to the target container and the capturing condition is not present, search for at least two empty container wall images that are most similar to the target container and the capturing condition among empty container wall images that are pre-constructed for container information and each capturing condition, and generate and acquire an empty target container wall image corresponding to the target container and the capturing condition using the at least two empty container wall images.
[0091] The generation unit 830 generates a difference image in which a wall background of the target container is removed based on the target container image and the empty target container wall image.
[0092] In this case, the generation unit 830 may correct the target container image using image information (e.g., a phantom image area) of the phantom included in the target container image and image information of a phantom constructed in advance, and generate the difference image using the corrected target container image and the empty target container wall image.
[0093] In this case, the generation unit 830 may correct the target container image such that the phantom image area included in the target container image has the same brightness distribution as a brightness distribution of a phantom image area constructed in advance.
[0094] The detection unit 840 may detect cargo in the target container based on the difference image.
[0095] In this case, the detection unit 840 may detect the type of cargo, for example, metal, an inorganic material, an organic material, and the like, and the location of cargo, from the difference image using a pre-trained learning model for detecting the type and location of cargo.
[0096] The display unit 850 displays cargo detection information, for example, the location and type of the cargo on the target container image or the difference image.
[0097] Although some parts are omitted in the description of the apparatus in
[0098]
[0099] For example, an apparatus for detecting cargo in a backscatter X-ray container image according to another embodiment of the present disclosure of
[0100] More specifically, the device 1600 shown in
[0101] In addition, as an example, the device 1600 described above may include a communication circuit, such as the transceiver 1604, and based on the communication circuit, communication with an external device may be performed.
[0102] In addition, as an example, the processor 1603 may include at least one among a general purpose processor, a digital signal processor (DSP), a DSP core, a controller, a microcontroller, application specific integrated circuits (ASICs), field programmable gate array (FPGA) circuits, other types of integrated circuits (ICs), and one or more microprocessors associated with a state machine. That is, the processor 1603 may be a hardware/software configuration that performs a control role for controlling the device 1600 described above. In addition, the processor 1603 may modularize and perform the functions of the acquisition unit 820, the generation unit 830, and the detection unit 840 described above with reference to
[0103] In this case, the processor 1603 may execute computer executable instructions that are stored in the memory 1602 to perform various required functions of the apparatus for detecting cargo in a backscatter X-ray container image. For example, the processor 1603 may control at least one of signal coding, data processing, power control, input/output processing, or communication operations. In addition, the processor 1603 may control a physical layer, a medium access control (MAC) layer, and application layers. In addition, as an example, the processor 1603 may perform authentication and security procedures in an access layer and/or an application layer, and is not limited to the above-described embodiment.
[0104] As an example, the processor 1603 may communicate with other devices through the transceiver 1604. For example, the processor 1603 may control an apparatus for detecting cargo in a backscatter X-ray container image to communicate with other devices via a network through execution of computer executable instructions. That is, the communication performed in the present disclosure may be controlled. For example, the transceiver 1604 may transmit radio frequency (RF) signals through an antenna and may transmit signals based on various communication networks.
[0105] In addition, as an example, a multi input multi output (MIMO) technology, beamforming, and the like may be employed as an antenna technology, which is not limited to the above-described embodiment. In addition, the signal transmitted and received through the transceiver 1604 may be modulated and demodulated and controlled by the processor 1603, and it is not limited to the above-described embodiment.
[0106] Exemplary methods of the disclosure are represented as a series of operations for clarity of description, but are not intended to limit the order in which operations are performed, and each operation may be performed simultaneously or in a different order as needed. In order to implement the method according to the present disclosure, the illustrative operations may additionally include other operations, include the remaining operations except for some operations, or include additional operations other than some operations.
[0107] The various embodiments of the disclosure are intended to describe representative aspects of the present disclosure rather than listing all possible combinations, and the matters described in the various embodiments may be applied independently or in combinations of two or more.
[0108] In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. In the hardware implementation, the technology may be implemented in one or more of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors (general processors), controllers, microcontrollers, microprocessors, etc.
[0109] The scope of the present disclosure includes software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause operations according to methods of various embodiments to be executed on a device or computer, and a non-transitory computer-readable medium in which such software, instructions or the like are stored and executable on a device or computer.
[0110] According to the present disclosure, a method and apparatus for detecting cargo in a container image for detecting cargo in an X-ray container image using a container wall background removal technique can be provided.
[0111] The effects of the present disclosure are not limited to the effects described above, and other effects that are not described will be clearly understood by those skilled in the art from the above detailed description.