A method, apparatus, electronic device and storage medium for cutting packages

By setting up detectors and X-ray emitters on the conveyor belt of the security inspection machine and controlling the energy data acquisition, the problem of incorrect imaging information during package cutting was solved, and the accuracy of package cutting and information correlation were achieved.

CN114578441BActive Publication Date: 2025-10-31ZHEJIANG HUASHI INTELLIGENT INSPECTION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210148812.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2025-10-31
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

When existing security inspection machines cut packages, the transmissibility of the materials inside the package causes errors in the imaging information, making it impossible to accurately link package information and imaging information, thus making it impossible to query relevant information about the sender and recipient.

Method used

By setting up a first detector, a second detector, an X-ray emitter, and a third detector on the conveyor belt of the security inspection machine, the activation of the X-ray emitter and the acquisition of energy data are controlled. The package is then cut based on the energy data, ensuring that the cutting process is not affected by the contents of the package.

Benefits of technology

It achieves accurate package cutting, ensures accurate correlation between package information and imaging information, and enables the retrieval of relevant information about the sender and recipient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114578441B_ABST
    Figure CN114578441B_ABST
Patent Text Reader

Abstract

This application provides a package cutting method, apparatus, electronic device, and storage medium to improve the accuracy of package cutting. Applied to a security inspection machine, along the movement direction of the machine's conveyor belt, it includes a first detector, a second detector, an X-ray emitter, and a third detector. The distance between the second and third detectors and the X-ray emitter is less than a preset threshold. The method includes: when the first detector detects the presence of a target package, if the X-ray emitter is not activated, then activating the X-ray emitter; when the second detector detects the target package, starting to collect energy data corresponding to the target package; detecting whether the target package has left the X-ray projection area using the third detector; stopping the collection of energy data corresponding to the target package when it is determined that the target package has left the X-ray projection area; and cutting out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of security inspection machine technology, and in particular to a package cutting method, device, electronic device and storage medium. Background Technology

[0002] With the advancement of the times and the development of society, security inspection machines are being used in more and more places, such as train stations, subway stations, airports, bus stations, and the logistics industry. Currently, in the logistics industry, when security inspection machines are used to inspect parcels, the parcels pass through a conveyor belt. First, the six-sided scanning device on the security inspection machine can automatically identify the parcel information based on the parcel's unique logistics information code. Then, the security inspection machine images the parcel and cuts it based on the image information, allowing the parcel information and the image information to be linked together. When suspected dangerous items are detected, the sender and recipient's relevant information can be directly retrieved.

[0003] Among them, such as Figure 1 The package shown appears to be a complete package, but due to the properties of X-rays, some parts inside the package are made of easily penetrable materials. This results in the package's image information appearing as follows after being exposed to X-rays. Figure 2 The information shown indicates that cutting the package based on its imaging information may split it into two packages, leading to errors in the correlation between subsequent package information and the package's imaging information. Consequently, when a suspected dangerous item is detected, it may be impossible to find the sender's and recipient's information. Summary of the Invention

[0004] This application provides a package cutting method, apparatus, electronic device, and storage medium to improve the accuracy of package cutting.

[0005] Firstly, a package cutting method is applied to a security inspection machine along the movement direction of the machine's conveyor belt, including a first detector, a second detector, an X-ray emitter, and a third detector. The distance between the second detector and the third detector and the X-ray emitter is less than a preset threshold. The method includes:

[0006] When the first detector detects the presence of a target package, if the X-ray emitter is not turned on, then the X-ray emitter is turned on.

[0007] When the second detector detects the target package, it begins to collect energy data corresponding to the target package; wherein, the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitter and emits X-rays;

[0008] The third detector detects whether the target package has left the area where the X-rays are projected.

[0009] Once it is determined that the target package has left the area of ​​the X-ray projection, the acquisition of energy data corresponding to the target package is terminated;

[0010] The target area corresponding to the target package is cut out based on the collected energy data using a preset package cutting method.

[0011] Optionally, the distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine conveyor belt and the time required for the X-ray emitter's energy to stabilize.

[0012] Optionally, the method further includes:

[0013] If no other packages are detected within a preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein, the preset time period is longer than the time required for the target package to be transmitted from the first detector to the second detector;

[0014] If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

[0015] Optionally, the step of cutting out the target area corresponding to the target package based on the collected energy data using a preset package cutting method includes:

[0016] The collected energy data is rendered into an image using an image rendering model;

[0017] Obtain the coordinate information of the target region in the image;

[0018] The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

[0019] In this embodiment, when the target package is detected by the first detector, if the X-ray emitter is not turned on, the X-ray emitter is turned on so that the X-rays emitted by the X-ray emitter are in a stable energy state when the target package arrives. Based on the detection of the target package by the second and third detectors, the energy data of the target package from entering the X-ray projection area to leaving the area is collected. The target area corresponding to the target package is determined according to the energy data and the package is cut. Complete package data can be obtained, so that the package cutting process is not affected by the contents of the package, thereby effectively improving the accuracy of package cutting.

[0020] Secondly, a package cutting method is provided, applied to a security inspection machine, along the movement direction of the conveyor belt of the security inspection machine, including a first detector, an X-ray emitter, and a second detector, wherein the distance between the second detector and the X-ray emitter is less than a preset threshold, the method comprising:

[0021] When the first detector detects the presence of a target package, if the X-ray emitter is not turned on, then the X-ray emitter is turned on.

[0022] After waiting for a first preset time, the energy data corresponding to the target package is collected; wherein, the first preset time is the time required for the energy of the X-ray emitter to stabilize, and the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitted by the X-ray emitter;

[0023] The second detector is used to detect whether the target package has left the area where the X-rays are projected.

[0024] Once it is determined that the target package has left the area of ​​the X-ray projection, the acquisition of energy data corresponding to the target package is terminated;

[0025] The target area corresponding to the target package is cut out based on the collected energy data using a preset package cutting method.

[0026] Optionally, the distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine conveyor belt and the time required for the X-ray emitter's energy to stabilize.

[0027] Optionally, the method further includes:

[0028] If no other packages are detected within a second preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein, the second preset time period is longer than the first preset time period;

[0029] If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

[0030] Optionally, the step of cutting out the target area corresponding to the target package based on the collected energy data using a preset package cutting method includes:

[0031] The collected energy data is rendered into an image using an image rendering model;

[0032] Obtain the coordinate information of the target region in the image;

[0033] The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

[0034] In this embodiment, when the target package is detected by the first detector, if the X-ray emitter is not turned on, the X-ray emitter is turned on so that the X-rays emitted by the X-ray emitter are in a stable energy state when the target package arrives. After waiting for a first preset time, energy data of the target package entering the X-ray projection area is collected. When the second detector detects that the target package has left the X-ray projection area, the collection of energy data ends. The target area corresponding to the target package is determined based on the energy data, and the package is cut. Complete package data can be obtained, so that the package cutting process is not affected by the contents of the package, thereby effectively improving the accuracy of package cutting.

[0035] Thirdly, a package cutting device is provided, applied to a security inspection machine, along the movement direction of the security inspection machine's conveyor belt, comprising a first detector, a second detector, an X-ray emitter, and a third detector, wherein the distance between the second detector and the third detector and the X-ray emitter is less than a preset threshold, the device comprising:

[0036] The processing module is used to activate the X-ray emitter if it is determined that the X-ray emitter is not activated when the first detector detects the presence of a target package.

[0037] The processing module is further configured to start collecting energy data corresponding to the target package when the second detector detects the target package; wherein, the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitter emitted by the X-ray emitter;

[0038] The detection module is used to detect whether the target package has left the area where the X-rays are projected, using the third detector;

[0039] The processing module is also used to terminate the acquisition of energy data corresponding to the target package when it is determined that the target package has left the area of ​​the X-ray projection;

[0040] The processing module is also used to cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

[0041] Optionally, the distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine conveyor belt and the time required for the X-ray emitter's energy to stabilize.

[0042] Optionally, the processing module is further configured to:

[0043] If no other package is detected within a preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein the preset time period is longer than the time required for the target package to be transported from the first detector to the second detector;

[0044] If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

[0045] Optionally, the processing module is specifically used for:

[0046] The collected energy data is rendered into an image using an image rendering model;

[0047] Obtain the coordinate information of the target region in the image;

[0048] The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

[0049] Fourthly, a package cutting device is provided for use in a security inspection machine. Along the movement direction of the conveyor belt of the security inspection machine, it includes a first detector, an X-ray emitter, and a second detector. The distance between the second detector and the X-ray emitter is less than a preset threshold. The device includes:

[0050] The processing module is used to activate the X-ray emitter if it is not activated when the first detector detects the presence of a target package.

[0051] The processing module is further configured to start collecting energy data corresponding to the target package after waiting for a first preset time; wherein, the first preset time is the time required for the energy of the X-ray emitter to stabilize, and the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitted by the X-ray emitter;

[0052] The detection module is used to detect whether the target package has left the area where the X-rays are projected, using the second detector;

[0053] The processing module is also used to terminate the acquisition of energy data corresponding to the target package when it is determined that the target package has left the area of ​​the X-ray projection;

[0054] The processing module is also used to cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

[0055] Optionally, the distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine conveyor belt and the time required for the X-ray emitter's energy to stabilize.

[0056] Optionally, the processing module is further configured to:

[0057] If no other package is detected within a second preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein, the second preset time period is longer than the first preset time period;

[0058] If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

[0059] Optionally, the processing module is specifically used for:

[0060] The collected energy data is rendered into an image using an image rendering model;

[0061] Obtain the coordinate information of the target region in the image;

[0062] The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

[0063] Fifthly, an electronic device is provided, the electronic device comprising:

[0064] Memory, used to store program instructions;

[0065] A processor is configured to invoke program instructions stored in the memory and execute the steps included in any of the methods described in the first aspect, according to the obtained program instructions.

[0066] In a sixth aspect, a computationally readable storage medium is provided, the computationally readable storage medium storing computer-executable instructions for causing a computer to perform the steps included in any of the methods in the first aspect.

[0067] In a seventh aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the package cutting method described in the various possible implementations above. Attached Figure Description

[0068] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application.

[0069] Figure 1 A schematic diagram of the appearance of a package provided in an embodiment of this application;

[0070] Figure 2 An image of a package after it has passed through an X-ray inspection surface, provided as an embodiment of this application;

[0071] Figure 3 A structural diagram of a security inspection machine in a related art provided in this application embodiment;

[0072] Figure 4 A structural diagram of a security inspection machine provided in an embodiment of this application;

[0073] Figure 5 A flowchart illustrating a package cutting method provided in this application embodiment;

[0074] Figure 6 This is a structural diagram of another security inspection machine provided in an embodiment of this application;

[0075] Figure 7 A flowchart illustrating another package cutting method provided in this application embodiment;

[0076] Figure 8 A structural block diagram of a package cutting device provided in an embodiment of this application;

[0077] Figure 9 A structural block diagram of another package cutting device provided in an embodiment of this application;

[0078] Figure 10 This is a schematic diagram of the structure of a computer device in an embodiment of the present invention. Detailed Implementation

[0079] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0080] The terms "first" and "second" in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. The term "multiple" in this application can mean at least two, for example, two, three, or more, and the embodiments of this application do not impose limitations.

[0081] To facilitate understanding, the design concept of the embodiments of the present invention will be introduced below.

[0082] As mentioned earlier, current security screening machines cut packages based on imaging information during the security screening process. During this process, the package may be cut into two packages, for reasons such as... Figure 3 As shown, Figure 3 This is a structural diagram of a security inspection machine in a related technology provided in an embodiment of this application. If the conveyor belt of the security inspection machine travels from left to right, the infrared sensor 1 detects the presence of a target package. If the X-ray is not activated when a target package is detected, it is activated, and imaging information of the target package is collected. The target package is then cut based on the imaging information. The X-ray is deactivated if no package passes through within a certain time period detected by the infrared sensor 2. At this time, if there are two objects in the target package, and the material between the two objects is permeable by X-rays, the package cutting based on the imaging information may cut one package into two packages, resulting in a cutting rate greater than 100% (i.e., the actual number of packages is less than the number of packages obtained after cutting). The package information and the package imaging information cannot be accurately correlated within a certain time period.

[0083] In view of this, the embodiments of this application provide the following two solutions:

[0084] The first method involves a security inspection machine along its conveyor belt, comprising a first detector, a second detector, an X-ray emitter, and a third detector. The distances between the second and third detectors and the X-ray emitter are less than a preset threshold. When the first detector detects a target package, if the X-ray emitter is not activated, it is activated, and the package is detected by the second detector. When the second detector detects the target package, it begins collecting energy data from the X-rays emitted by the X-ray emitter as the target package passes through the X-ray receiver. The third detector then checks whether the target package has left the X-ray projection area. Once it is determined that the target package has left the X-ray projection area, the collection of energy data corresponding to the target package ends. Based on the collected energy data, a preset package cutting method is used to cut out the target area corresponding to the target package. In this way, because the package cutting process is not affected by the contents of the package, the package can be accurately cut.

[0085] The second method involves a conveyor belt along the security inspection machine, comprising a first detector, an X-ray emitter, and a second detector. The distance between the second detector and the X-ray emitter is less than a preset threshold. When the first detector detects a target package, if the X-ray emitter is not activated, it is activated. After waiting for a preset time, energy data corresponding to the target package is collected. The second detector detects whether the target package has left the X-ray projection area. Once it is determined that the target package has left the X-ray projection area, the collection of energy data corresponding to the target package ends. A preset package cutting method is used to cut out the target area corresponding to the target package based on the collected energy data. In this way, since the package cutting process is not affected by the contents of the package, the package can be accurately cut.

[0086] After introducing the design concept of the embodiments of this application, the package cutting method provided by the embodiments of this application will be described below with reference to the accompanying drawings.

[0087] Example 1

[0088] Please refer to Figure 4 As shown, Figure 4In a security inspection machine structure provided in this application embodiment, if the conveyor belt of the security inspection machine runs from left to right, infrared sensor 1, infrared sensor 2, and infrared sensor 3 are respectively the first detector, the second detector, and the third detector, and infrared sensor 4 is not working. If the conveyor belt of the security inspection machine runs from right to left, infrared sensor 4, infrared sensor 3, and infrared sensor 2 are respectively the first detector, the second detector, and the third detector, and infrared sensor 1 is not working. Considering that after the X-ray emitter is turned on, it takes a certain amount of time for the X-ray emitter's energy to stabilize (i.e., the X-ray energy to stabilize), the distance between infrared sensor 1 and infrared sensor 4 (i.e., the first detector) and the X-ray emitter can be determined based on the speed of the security inspection machine's conveyor belt and the time required for the X-ray emitter's energy to stabilize. For example, if the conveyor belt of the security inspection machine moves at a speed of 2 m / s and the X-ray requires a settling time of 1 s, then the distance between the first detector and the X-ray emitter needs to be greater than or equal to 2 m. Preferably, considering that the actual speed of the security inspection machine conveyor belt may have an error compared with the set speed, the distance between the first detector and the X-ray emitter is set to be greater than 2 m.

[0089] Furthermore, infrared sensor 2 and infrared sensor 3 are respectively disposed on both sides of the X-ray emitter, and the distance between infrared sensor 2 and infrared sensor 3 and the X-ray emitter is less than a preset threshold. Preferably, the second detector and the third detector are close to the X-ray emitter.

[0090] The following describes a package cutting method applied to the above-described security inspection machine structure according to an embodiment of this application. Please refer to [link / reference]. Figure 5 As shown, Figure 5 The package cutting method in this application embodiment is described in the following process:

[0091] Step 501: When the first detector detects the presence of the target package, if the X-ray emitter is not turned on, then turn on the X-ray emitter;

[0092] In this embodiment of the application, the first detector is used to detect whether there is a target package, and when the first detector detects the presence of a target package, it determines the state of the X-ray emitter. If it is determined that the X-ray emitter is not turned on, the X-ray emitter is turned on. If the X-ray emitter is already turned on, the current state is maintained.

[0093] As one possible implementation, in this embodiment of the application, if the first detector does not detect any other packages within a preset time after detecting the target package, it indicates that there are no packages that need to be inspected temporarily. Therefore, it can also be determined whether the target package has left the X-ray detection surface. If the target package has left the X-ray detection surface, the X-ray emitter is turned off. When the first detector detects the target package again, the X-ray emitter is turned on again to save resources.

[0094] Step 502: When the second detector detects the target package, begin collecting the energy data corresponding to the target package;

[0095] In this embodiment, when the second detector detects the target package, it indicates that the target package is about to enter the X-ray projection area (i.e., the X-ray detection surface). At this time, energy data corresponding to the target package is collected to determine the target area corresponding to the target package. The energy of the X-rays decreases after the object in the target package passes through the X-ray detection surface; that is, the energy received by the X-ray receiver is different from the energy emitted by the X-ray emitter. The degree of energy attenuation varies depending on the object. For objects without objects or objects that X-rays can penetrate, the X-ray energy does not decrease; that is, the energy received by the X-ray receiver is the same as the energy emitted by the X-ray emitter. Therefore, the aforementioned energy data refers to the data received by the X-ray receiver when the target package passes through the X-ray detection surface.

[0096] Step 503: Detect whether the target package has left the area of ​​X-ray projection using the third detector;

[0097] As described in step 502, when the second detector detects the target package, it indicates that the target package has entered the X-ray detection surface. At this time, the third detector can detect whether the target package has left the X-ray detection surface. Specifically, the third detector continuously emits infrared signals to detect whether the target package exists. If the emitted infrared signal can detect the package information, it indicates that the target package has not yet left the X-ray detection surface. If the emitted infrared signal cannot detect the package information, it indicates that the target package has left the X-ray detection surface.

[0098] Step 504: When it is determined that the target package has left the area of ​​X-ray projection, the acquisition of energy data corresponding to the target package is terminated;

[0099] Step 505: Cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

[0100] The energy data collected includes all energy data collected between the second detector detecting the target package and the third detector detecting that the target package has left the X-ray detection surface.

[0101] During the energy data acquisition process, the acquired energy data can be rendered into an image using an image rendering algorithm. Then, the coordinate information of the target area in the image can be obtained. Based on this coordinate information, the target area can be segmented from other areas (i.e., the areas in the image excluding the target area) to obtain the target area.

[0102] As one possible implementation, in this embodiment of the application, after segmenting the target area from other areas based on the coordinate information of the target package in the image, image recognition can be performed on the obtained image of the target area to analyze the attributes of the items corresponding to the target package. If there are suspected dangerous items in the package, the coordinate information of the suspected dangerous items is obtained, and the image of the target area, the coordinate information of the suspected dangerous items, and the attribute information of the suspected dangerous items are displayed on the display for secondary verification by manual verification. The energy data corresponding to the target package is then deleted. If there are no suspected dangerous items in the package, the energy data corresponding to the target package is directly deleted.

[0103] In the specific implementation process, when the first detector detects the presence of a target package, it is determined whether the X-ray emitter is turned on. If it is not turned on, the X-ray emitter is turned on to stabilize the X-ray energy and improve the accuracy of data acquisition. When the second detector detects the presence of a target package, the energy data corresponding to the target package is collected. When the third detector detects the departure of the target package, the collection of energy data corresponding to the target package ends. The energy data collected in a continuous period of time is determined as the data corresponding to one package, thus realizing package cutting. In this way, since the package cutting process is independent of the imaging information of the package, the package cutting is not affected by the material inside the package, which can effectively improve the accuracy of package cutting.

[0104] Example 2

[0105] Please refer to Figure 6 As shown, Figure 6In another security inspection machine structure provided in this application embodiment, if the conveyor belt of the security inspection machine runs from left to right, infrared sensor 1 and infrared sensor 3 are the first detector and the second detector, respectively, and infrared sensor 2 and infrared sensor 4 are not working. If the conveyor belt of the security inspection machine runs from right to left, infrared sensor 4 and infrared sensor 2 are the first detector and the second detector, respectively, and infrared sensor 1 and infrared sensor 3 are not working. Considering that after the X-ray emitter is turned on, it takes a certain amount of time for the X-ray emitter's energy to stabilize (i.e., the X-ray energy to stabilize), the distance between infrared sensor 1 and infrared sensor 4 (i.e., the first detector) and the X-ray emitter can be determined based on the speed of the security inspection machine conveyor belt and the time required for the X-ray emitter's energy to stabilize. For example, if the speed of the security inspection machine conveyor belt is 2 m / s and the stabilization time required for the X-ray is 1 second, then the distance between the first detector and the X-ray emitter needs to be greater than or equal to 2 m. Preferably, the distance between the first detector and the X-ray emitter is set to be close to 2 m.

[0106] Furthermore, the distance between the infrared sensor 2 or the infrared sensor 3 (i.e., the second detector) and the X-ray emitter is less than a preset threshold; preferably, the second detector is close to the X-ray emitter.

[0107] The following describes a package cutting method applied to the above-described security inspection machine structure according to an embodiment of this application. Please refer to [link / reference]. Figure 7 As shown, Figure 7 The package cutting method in this application embodiment is described in the following process:

[0108] Step 701: When the first detector detects the presence of the target package, if the X-ray emitter is not turned on, then turn on the X-ray emitter;

[0109] As one possible implementation, in this embodiment of the application, if no other packages are detected within a second preset time period after the first detector detects the target package, it indicates that there are no packages that need to be inspected temporarily. Therefore, it can also be determined whether the target package has left the X-ray detection surface. If the target package has left the X-ray detection surface, the X-ray emitter is turned off. When the first detector detects the target package again, the X-ray emitter is turned on again to save resources.

[0110] Step 702: After waiting for the first preset time, start collecting the energy data corresponding to the target package;

[0111] The first preset duration is the time required for the X-ray emitter's energy to stabilize, and the energy data refers to the data received by the X-ray receiver when the target package passes through the X-ray detection surface.

[0112] In this embodiment of the application, since there is a certain distance between the first detector and the X-ray emitter, in order to reduce the collection of invalid data, when the first detector detects the presence of a target package, it waits for a first preset time before starting to collect energy data.

[0113] Step 703: Detect whether the target package has left the area of ​​X-ray projection using the second detector;

[0114] Step 704: Once it is determined that the target package has left the area of ​​X-ray projection, the acquisition of energy data corresponding to the target package is terminated;

[0115] Step 705: Cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

[0116] The energy data collected includes all energy data collected during the period from when the first detector detects the target package and waits for a first preset time until the second detector detects that the target package has left the X-ray detection surface.

[0117] During the energy data acquisition process, the acquired energy data can be rendered into an image using an image rendering algorithm. Then, the coordinate information of the target area in the image can be obtained. Based on this coordinate information, the target area can be segmented from other areas (i.e., the areas in the image excluding the target area) to obtain the target area.

[0118] As one possible implementation, in this embodiment of the application, after segmenting the target area from other areas based on the coordinate information of the target package in the image, image recognition can be performed on the obtained image of the target area to analyze the attributes of the items corresponding to the target package. If there are suspected dangerous items in the package, the coordinate information of the suspected dangerous items is obtained, and the image of the target area, the coordinate information of the suspected dangerous items, and the attribute information of the suspected dangerous items are displayed on the display for secondary verification by manual verification. The energy data corresponding to the target package is then deleted. If there are no suspected dangerous items in the package, the energy data corresponding to the target package is directly deleted.

[0119] In the specific implementation process, when the first detector detects the presence of a target package, it is determined whether the X-ray emitter is turned on. If it is not turned on, the X-ray emitter is turned on to stabilize the X-ray energy and improve the accuracy of data acquisition. After waiting for a first preset time, the energy data corresponding to the target package is collected. When the second detector detects that the target package has left, the collection of the energy data corresponding to the target package ends. The energy data collected in a continuous period of time is determined as the data corresponding to one package, thus realizing package cutting. In this way, since the package cutting process is independent of the imaging information of the package, the package cutting is not affected by the material inside the package, which can effectively improve the accuracy of package cutting.

[0120] Based on the same inventive concept, this application provides a package cutting device that can achieve the functions corresponding to the aforementioned package cutting method. The package cutting device can be a hardware structure, a software module, or a hardware structure plus a software module. The package cutting device can be implemented by a chip system, which can consist of chips or include chips and other discrete components. Please refer to... Figure 8 As shown, the package cutting device is applied to a security inspection machine. Along the conveyor belt movement direction of the security inspection machine, it includes a first detector, a second detector, an X-ray emitter, and a third detector. The distance between the second and third detectors and the X-ray emitter is less than a preset threshold. The package cutting device includes a processing module 801 and a detection module 802. Wherein:

[0121] The processing module is used to activate the X-ray emitter if it is determined that the X-ray emitter is not activated when the first detector detects the presence of a target package.

[0122] The processing module 801 is further configured to start collecting energy data corresponding to the target package when the second detector detects the target package; wherein, the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitter emitted by the X-ray emitter;

[0123] Detection module 802 is used to detect whether the target package has left the area of ​​the X-ray projection by the third detector;

[0124] The processing module 801 is further configured to terminate the acquisition of energy data corresponding to the target package when it is determined that the target package has left the area of ​​the X-ray projection;

[0125] The processing module 801 is also used to cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

[0126] Optionally, the distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine conveyor belt and the time required for the X-ray emitter's energy to stabilize.

[0127] Optionally, the processing module 801 is further configured to:

[0128] If no other package is detected within a preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein the preset time period is longer than the time required for the target package to be transported from the first detector to the second detector;

[0129] If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

[0130] Optionally, the processing module 801 is specifically used for:

[0131] The collected energy data is rendered into an image using an image rendering model;

[0132] Obtain the coordinate information of the target region in the image;

[0133] The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

[0134] Based on the same inventive concept, this application provides a package cutting device that can achieve the functions corresponding to the aforementioned package cutting method. The package cutting device can be a hardware structure, a software module, or a hardware structure plus a software module. The package cutting device can be implemented by a chip system, which can consist of chips or include chips and other discrete components. Please refer to... Figure 9 As shown, this package cutting device is applied to a security inspection machine. Along the conveyor belt movement direction of the security inspection machine, it includes a first detector, an X-ray emitter, and a second detector. The distance between the second detector and the X-ray emitter is less than a preset threshold. The package cutting device includes a processing module 901 and a detection module 902. Wherein:

[0135] The processing module 901 is used to turn on the X-ray emitter if the X-ray emitter is not turned on when the first detector detects the presence of a target package.

[0136] The processing module 901 is further configured to start collecting energy data corresponding to the target package after waiting for a first preset time; wherein, the first preset time is the time required for the energy of the X-ray emitter to stabilize, and the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitted by the X-ray emitter;

[0137] Detection module 902 is used to detect whether the target package has left the area of ​​the X-ray projection using the second detector;

[0138] The processing module 901 is further configured to terminate the acquisition of energy data corresponding to the target package when it is determined that the target package has left the area of ​​the X-ray projection;

[0139] The processing module 901 is also used to cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

[0140] Optionally, the distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine conveyor belt and the time required for the X-ray emitter's energy to stabilize.

[0141] Optionally, the processing module 901 is further configured to:

[0142] If no other package is detected within a second preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein, the second preset time period is longer than the first preset time period;

[0143] If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

[0144] Optionally, the processing module 901 is specifically used for:

[0145] The collected energy data is rendered into an image using an image rendering model;

[0146] Obtain the coordinate information of the target region in the image;

[0147] The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

[0148] All relevant content of each step involved in the aforementioned embodiments of the package cutting method can be referenced to the functional description of the corresponding functional module of the package cutting device in the embodiments of this application, and will not be repeated here.

[0149] The module division in this embodiment is illustrative and represents only one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in each embodiment of this application can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0150] Based on the same inventive concept, embodiments of this application provide an electronic device. Please refer to... Figure 10 As shown, the electronic device includes at least one processor 1001 and a memory 1002 connected to the at least one processor. In this embodiment, the specific connection medium between the processor 1001 and the memory 1002 is not limited. Figure 10 Taking the connection between processor 1001 and memory 1002 via bus 1000 as an example, bus 1000 in... Figure 10 The connections between other components are indicated by thick lines and are for illustrative purposes only, not as limiting information. The Bus 1000 can be divided into address bus, data bus, control bus, etc., for ease of representation. Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0151] In this embodiment of the application, the memory 1002 stores instructions that can be executed by at least one processor 1001. By executing the instructions stored in the memory 1002, at least one processor 1001 can perform the steps included in the aforementioned package cutting method.

[0152] The processor 1001 serves as the control center of the electronic device. It connects to various parts of the device via various interfaces and lines, and performs overall monitoring by running or executing instructions stored in the memory 1002 and accessing data stored in the memory 1002, thus controlling the various functions and processing data of the electronic device. Optionally, the processor 1001 may include one or more processing units. The processor 1001 may integrate an application processor and a modem processor. The application processor primarily handles the operating system and applications, while the modem processor primarily handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1001. In some embodiments, the processor 1001 and the memory 1002 may be implemented on the same chip; in other embodiments, they may be implemented on separate chips.

[0153] The processor 1001 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the package cutting method disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules within the processor.

[0154] Memory 1002, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 1002 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory 1002 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 1002 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0155] By designing and programming the processor 1001, the code corresponding to the wrapping and cutting method described in the foregoing embodiments can be embedded into the chip, so that the chip can execute the steps of the aforementioned wrapping and cutting method when running. How to design and program the processor 1001 is a well-known technique to those skilled in the art, and will not be described in detail here.

[0156] Based on the same inventive concept, embodiments of this application also provide a computationally readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the steps of the aforementioned package cutting method.

[0157] In some possible implementations, various aspects of the package cutting method provided in this application can also be implemented in the form of a program product, which includes program code that, when the program product is run on an electronic device, causes the detection device to perform the steps in the package cutting method according to the various exemplary embodiments of this application described above.

[0158] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0159] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0160] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0161] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0162] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for cutting packages, characterized in that, An application to a security inspection machine, along the movement direction of the machine's conveyor belt, includes a first detector, a second detector, an X-ray emitter, and a third detector, wherein the distance between the second detector and the third detector and the X-ray emitter is less than a preset threshold. The method includes: When the first detector detects the presence of a target package, if the X-ray emitter is not turned on, then the X-ray emitter is turned on. When the second detector detects the target package, it begins to collect energy data corresponding to the target package; wherein, the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitter and emits X-rays; The third detector detects whether the target package has left the area where the X-rays are projected. Once it is determined that the target package has left the area of ​​the X-ray projection, the acquisition of energy data corresponding to the target package is terminated; The target area corresponding to the target package is cut out based on the collected energy data using a preset package cutting method.

2. The method as described in claim 1, characterized in that, The distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine's conveyor belt and the time required for the X-ray emitter's energy to stabilize.

3. The method as described in claim 1, characterized in that, The method further includes: If no other packages are detected within a preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein, the preset time period is longer than the time required for the target package to be transmitted from the first detector to the second detector; If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

4. The method as described in claim 1, characterized in that, The step of cutting out the target area corresponding to the target package based on the collected energy data using a preset package cutting method includes: The collected energy data is rendered into an image using an image rendering model; Obtain the coordinate information of the target region in the image; The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

5. A method for cutting a package, characterized in that, An application to a security inspection machine, along the movement direction of the machine's conveyor belt, includes a first detector, an X-ray emitter, and a second detector, wherein the distance between the second detector and the X-ray emitter is less than a preset threshold. The method includes: When the first detector detects the presence of a target package, if the X-ray emitter is not turned on, then the X-ray emitter is turned on. After waiting for a first preset time, the energy data corresponding to the target package is collected; wherein, the first preset time is the time required for the energy of the X-ray emitter to stabilize, and the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitted by the X-ray emitter; The second detector is used to detect whether the target package has left the area where the X-rays are projected. Once it is determined that the target package has left the area of ​​the X-ray projection, the acquisition of energy data corresponding to the target package is terminated; The target area corresponding to the target package is cut out based on the collected energy data using a preset package cutting method.

6. The method as described in claim 5, characterized in that, The distance between the first detector and the X-ray emitter is related to the speed of the security inspection machine's conveyor belt and the time required for the X-ray emitter's energy to stabilize.

7. The method as described in claim 5, characterized in that, The method further includes: If no other packages are detected within a second preset time period after the first detector detects the target package, it is determined whether the target package has left the area of ​​the X-ray projection; wherein, the second preset time period is longer than the first preset time period; If it is determined that the target package has left the area where the X-rays are projected, then the X-ray emitter is turned off.

8. The method as described in claim 5, characterized in that, The step of cutting out the target area corresponding to the target package based on the collected energy data using a preset package cutting method includes: The collected energy data is rendered into an image using an image rendering model; Obtain the coordinate information of the target region in the image; The target region is obtained by segmenting the image with other regions based on the coordinate information; wherein, the other regions are the regions in the image excluding the target region.

9. A package cutting device, characterized in that, An apparatus applied to a security inspection machine, along the movement direction of the machine's conveyor belt, includes a first detector, a second detector, an X-ray emitter, and a third detector. The distance between the second detector and the third detector and the X-ray emitter is less than a preset threshold. The apparatus comprises: The processing module is used to activate the X-ray emitter if it is determined that the X-ray emitter is not activated when the first detector detects the presence of a target package. The processing module is further configured to start collecting energy data corresponding to the target package when the second detector detects the target package; wherein, the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitter emitted by the X-ray emitter; The detection module is used to detect whether the target package has left the area where the X-rays are projected, using the third detector; The processing module is also used to terminate the acquisition of energy data corresponding to the target package when it is determined that the target package has left the area of ​​the X-ray projection; The processing module is also used to cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

10. A package cutting device, characterized in that, An apparatus applied to a security inspection machine, along the movement direction of the machine's conveyor belt, includes a first detector, an X-ray emitter, and a second detector, wherein the distance between the second detector and the X-ray emitter is less than a preset threshold. The apparatus comprises: The processing module is used to activate the X-ray emitter if it is not activated when the first detector detects the presence of a target package. The processing module is further configured to start collecting energy data corresponding to the target package after waiting for a first preset time; wherein, the first preset time is the time required for the energy of the X-ray emitter to stabilize, and the energy data is the data received by the X-ray receiver when the target package passes through the X-ray emitted by the X-ray emitter; The detection module is used to detect whether the target package has left the area where the X-rays are projected, using the second detector; The processing module is also used to terminate the acquisition of energy data corresponding to the target package when it is determined that the target package has left the area of ​​the X-ray projection; The processing module is also used to cut out the target area corresponding to the target package based on the collected energy data using a preset package cutting method.

11. An electronic device, characterized in that, include: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method according to any one of claims 1-4 or 5-8.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a computer, cause the computer to perform the method as described in any one of claims 1-4 or 5-8.

Citation Information

Patent Citations

  • Infrared detection device, security inspection machine, security inspection channel and mechanical apparatus

    CN108873089A

  • Security check centralized image judgment system based on intelligent identification technology

    CN111443100A

  • Security check system, data acquisition rate adjustment method and article information detection method

    CN113759432A