Energy fluctuation control method, device and computer equipment for security inspection machine
By obtaining the energy data of the detection plate of the security inspection machine, determining the offset ratio and adjusting the detection plate, the macular problem caused by the energy fluctuation of the detection plate is solved, and the accuracy of the imaging results of the security inspection machine is improved.
Patent Information
- Application Number
- CN202410852846.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The data collected by the detection board of the security inspection machine has excessive energy fluctuations, which causes yellow spots in the imaging results and affects the accuracy of image interpretation. The existing technology lacks effective solutions.
By obtaining the energy data received by each detection board of the security inspection machine in the test mode, the energy offset ratio of the detection board is determined, and the detection board is adjusted according to the offset direction to reduce energy fluctuations and achieve the preset state of the energy curve.
It effectively reduces the fluctuation of energy data received by the detection board, avoids yellow spots in the imaging results, and improves the accuracy of image interpretation.
Smart Images

Figure CN118393590B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of security inspection equipment, and in particular to a method, device and computer equipment for controlling energy fluctuations of a security inspection machine. Background Art
[0002] With the development of electronic technology, the use of security inspection machine imaging for security inspection has gradually attracted attention. The imaging of the security inspection machine is that the radiation source of the security inspection machine hits the detection plate crystal in the form of a fan to complete the imaging. Among them, the radiation source of the security inspection machine includes two parts: a high-voltage power supply and a filament power supply. Among them, the filament power supply is used to heat the filament of the X-ray tube. The high-voltage output end of the high-voltage power supply is respectively added to the cathode filament and the anode target, providing a high-voltage electric field to accelerate the active electrons on the filament to flow to the anode target, forming a high-speed electron flow. When the high-speed electron flow hits atoms and electrons in the outer orbit, an X-ray beam is generated.
[0003] During the imaging process of the security inspection machine, the X-ray beam is emitted from the anode target, passes through the collimation slit of the security inspection machine collimator, and hits the detection plate to complete the imaging. Among them, the width of the collimation slit is generally not more than 1mm. Due to the processing tolerance of the security inspection machine body, and the fact that the radiation source, collimator and detection plate are all adjustable structures, it is difficult to make the radiation source anode target and the collimation slit detection plate crystal on the same fan plane, and there is a certain deviation. If the detection plate crystal and the collimation slit are biased to either the left or right direction of the radiation source anode target, the radiation source energy received by the detection plate crystal will cause a fluctuation in the initial stage of the radiation source beam. The fluctuation of the radiation source energy will cause the energy fluctuation of the data collected by the detection plate crystal. The fluctuating energy will make the data collected by the detection plate crystal have a larger background noise, which will cause abnormal imaging grayscale threshold. When the energy fluctuation of the data collected by the detection plate crystal is too large, it will cause yellow spots to appear in the imaging results of the security inspection machine, affecting the accuracy of the image judgment of the imaging results.
[0004] However, no effective solution has been proposed so far for the problem that the imaging result of the security inspection machine has yellow spots due to excessive energy fluctuations of the data collected by the crystal of the detection plate of the security inspection machine. Summary of the invention
[0005] Based on this, it is necessary to provide a method and device for controlling energy fluctuations of a security inspection machine in response to the above technical problems.
[0006] In a first aspect, the present application provides a method for controlling energy fluctuations in a security inspection machine. The method comprises the following steps:
[0007] Obtain the energy data received by each detection board within a preset time length in the test mode of the security inspection machine;
[0008] Based on the acquired energy data, determining the energy offset ratio of each crystal in each detection board of the security inspection machine within the preset time length;
[0009] Determine the detection plate to be adjusted and the offset direction of the detection plate to be adjusted according to the energy offset ratio of each crystal in each detection plate of the security inspection machine within the preset time length;
[0010] The detection plate to be adjusted is adjusted based on the offset direction of the detection plate to be adjusted.
[0011] In one embodiment, the following steps are also included:
[0012] Adjust the relative positions of the radiation source, the collimation slit and the detection plate of the security inspection machine until the energy curve of the energy data received by each detection plate of the security inspection machine reaches a preset state, and enter the test mode;
[0013] In the test mode, energy data received by each detection board within the preset time length is collected.
[0014] In one embodiment, determining the energy offset ratio of each crystal in each detection board of the security inspection machine within the preset time length based on the acquired energy data includes:
[0015] Determine each energy data value of each of the crystals based on the acquired energy data and the minimum integration time of the energy data;
[0016] Based on each energy data value of each of the crystals, an energy shift ratio of each of the crystals within the preset time length is determined.
[0017] In one embodiment, determining the energy shift ratio of each of the crystals within the preset time length based on each of the energy data values of each of the crystals includes:
[0018] Determining a reference energy value and a group average energy value of each of the crystals based on each of the energy data values of each of the crystals;
[0019] The energy shift ratio of each of the crystals within the preset time length is determined based on the reference energy value of each of the crystals and the group average energy value.
[0020] In one embodiment, determining the detection plate to be adjusted and the offset direction of the detection plate to be adjusted according to the energy offset ratio of each crystal in each detection plate of the security inspection machine within the preset time length includes:
[0021] Determine the maximum and minimum values of the energy shift ratios of each of the crystals within the preset time length;
[0022] The detection plate to be adjusted and the offset direction of the detection plate to be adjusted are determined based on the maximum value and the minimum value of the energy offset ratio of each crystal within the preset time length and a preset energy offset threshold.
[0023] In one embodiment, determining the detection plate to be adjusted and the offset direction of the detection plate to be adjusted based on the maximum and minimum values of the energy offset ratios of each crystal within the preset time length and a preset energy offset threshold comprises:
[0024] With the maximum and minimum values of each energy shift ratio in each of the crystals as the ordinate and the serial number of each of the crystals as the abscissa, a coordinate line graph of each of the crystals of each of the detection plates of the security inspection machine is established;
[0025] Based on the coordinate line graph of each of the crystals of each of the detection plates of the security inspection machine and the preset energy offset threshold, the detection plate to be adjusted and the offset direction of the detection plate to be adjusted are determined.
[0026] In one of the embodiments, after adjusting the detection plate to be adjusted based on the offset direction of the detection plate to be adjusted, the method further includes:
[0027] Based on the adjusted detection plate, energy data of the preset time length is collected, and the adjustment process of the detection plate is repeated until the energy offset ratio of each crystal of the security inspection machine meets the preset first condition; the preset first condition is that the absolute values of the energy offset ratios of all the crystals of the security inspection machine are less than or equal to the preset energy offset threshold.
[0028] In a second aspect, the present application also provides an energy fluctuation control device for a security inspection machine. The device comprises:
[0029] An acquisition module is used to acquire energy data received by each detection board within a preset time length in the test mode of the security inspection machine;
[0030] An offset ratio determination module, used to determine the energy offset ratio of each crystal in each detection board of the security inspection machine within the preset time length based on the acquired energy data;
[0031] A detection plate determination module, used to determine the detection plate to be adjusted and the offset direction of the detection plate to be adjusted according to the energy offset ratio of each crystal in each detection plate of the security inspection machine within the preset time length;
[0032] and an adjusting module, which is used to adjust the detection plate to be adjusted based on the offset direction of the detection plate to be adjusted.
[0033] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the energy fluctuation control method of the security inspection machine described in the first aspect is implemented.
[0034] In a fourth aspect, the present application further provides a security inspection machine, which includes a radiation source, a collimation slit, a detection plate, and the computer device described in the third aspect above.
[0035] The energy fluctuation control method, device and computer equipment of the security inspection machine described above obtain the energy data received by each detection board within a preset time length when the security inspection machine is in a test mode, and then determine the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length based on the acquired energy data. Then, according to the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length, determine the detection board to be adjusted and the offset direction of the detection board to be adjusted. Finally, based on the offset direction of the detection board to be adjusted, adjust the detection board in the direction opposite to the offset direction of the detection board to reduce the energy fluctuation of the energy data received by the detection board of the security inspection machine, thereby solving the problem in the prior art that yellow spots appear in the imaging results of the security inspection machine due to excessive energy fluctuation of the data collected by the detection board crystals of the security inspection machine.
[0036] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0038] Figure 1 A hardware structure block diagram of a terminal of an energy fluctuation control method for a security inspection machine provided in an embodiment of the present application;
[0039] Figure 2 A flow chart of a method for controlling energy fluctuations in a security inspection machine provided in one embodiment of the present application;
[0040] Figure 3 A coordinate line graph of each crystal of each detection plate of a security inspection machine provided in an embodiment of the present application;
[0041] Figure 4A flow chart of a method for controlling energy fluctuations in a security inspection machine provided in a preferred embodiment of the present application;
[0042] Figure 5 This is a structural block diagram of an energy fluctuation control device for a security inspection machine provided in one embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0044] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0045] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the energy fluctuation control method of the security inspection machine of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0046] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the energy fluctuation control method of the security inspection machine in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0047] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0048] In this embodiment, a method for controlling energy fluctuation of a security inspection machine is provided. Figure 2 Flow chart of the energy fluctuation control method of the security inspection machine of this embodiment. Figure 2 As shown, the process includes the following steps:
[0049] Step S210, obtaining energy data received by each detection board within a preset time length in the test mode of the security inspection machine.
[0050] The test mode can be that, under the premise that each module of the security inspection machine operates normally, the relative positions of the radiation source, the collimation slit and the detection plate of the security inspection machine are debugged until the energy curve of the energy data received by the detection plate of the security inspection machine reaches a preset state, at which time the security inspection machine enters the test mode. Each module of the security inspection machine can include a control module, an optical machine module and a receiving module. Among them, the control module is mainly used to control the normal operation of the equipment, for example, to control the radiation source of the security inspection machine to emit an X-ray beam. The optical machine module can include a radiation source for controlling the radiation source of the security inspection machine to generate and emit X-rays. The receiving module can include a detection plate for receiving X-rays and imaging based on the received X-rays. The collimation slit can constrain the X-rays emitted by the radiation source into a fan shape. The preset state can be the relative optimal state of the energy curve, that is, the energy curve can reach a preset position. Specifically, it can be that the intensity curve of the energy of the X-rays received by the detection plate reaches a preset position. For example, it can be that the intensity curve of the energy of the X-rays received by the detection plate reaches a preset highest position.
[0051] The above-mentioned debugging of the relative positions of the radiation source, collimation slit and detection plate of the security inspection machine until the energy curve of the energy data received by the detection plate of the security inspection machine reaches a preset state can be performed by first aligning the beam-out surface of the radiation source, the collimation slit and the crystal of the detection plate, and simultaneously obtaining the energy curve of the energy data received by the detection plate, and then debugging the relative positions of the radiation source, collimation slit and detection plate of the security inspection machine until the energy curve reaches the preset position.
[0052] Among them, the energy data received by each detection board within the preset time length can be obtained by using a serial port tool to read the energy data received by each detection board within the preset time length. For example, Xshel or secure CRT can be used to read the energy data received by each detection board within the preset time length. The preset time length can be set according to specific needs. In general, because the radiation source of the security inspection machine generally has a fluctuation in the first 1-3 seconds of the initial stage of beam emission, the preset time length can be set to about 3 seconds.
[0053] Step S220: Based on the acquired energy data, determine the energy offset ratio of each crystal in each detection board of the security inspection machine within a preset time length.
[0054] In this step, based on the energy data obtained, the energy data obtained by each crystal in each detection board of the security inspection machine within the preset time length can be determined. The energy data obtained by each crystal within the preset time length can be displayed on the display in the form of multiple frames of images. Therefore, the energy data collected on each crystal can be divided into multiple energy data values according to the number of frames. That is, the energy data of each crystal can be divided according to the time taken to collect a frame of image, and each energy data value of each crystal can be obtained. Furthermore, based on the energy data values of each crystal, the energy offset ratio of each crystal within the preset time length is determined. The above energy offset ratio can be used to characterize the fluctuation of the energy data collected by the current crystal. The larger the energy offset ratio, the greater the fluctuation of the energy data value collected by the current crystal, and the smaller the energy offset ratio, the smaller the fluctuation of the energy data value collected by the current crystal.
[0055] It should be noted that a single security inspection device has N detection boards in one imaging viewing angle, and each detection board has M crystals. Therefore, one imaging viewing angle has M×N imaging crystals, where N and M are both positive integers.
[0056] Step S230, determining the detection plate to be adjusted and the offset direction of the detection plate to be adjusted according to the energy offset ratio of each crystal in each detection plate of the security inspection machine within a preset time length.
[0057] Among them, the above-mentioned detection plate to be adjusted can be a detection plate where a crystal having an absolute value of an energy offset ratio greater than or equal to a preset energy offset threshold is located. The offset direction of the above-mentioned detection plate to be adjusted can be divided into positive offset and negative offset. When the absolute value of the energy offset ratio is greater than the preset energy offset threshold, and the energy offset ratio is a positive value, the detection plate where the crystal corresponding to the energy offset ratio is located is biased toward the anode, which is a positive offset. When the absolute value of the energy offset ratio is greater than or equal to the preset energy offset threshold, and the energy offset ratio is a negative value, the detection plate where the crystal corresponding to the energy offset ratio is located is biased toward the cathode, which is a negative offset.
[0058] Step S240: adjusting the detection plate to be adjusted based on the offset direction of the detection plate to be adjusted.
[0059] In this step, when the detection plate to be adjusted is biased toward the anode, the detection plate to be adjusted needs to be adjusted toward the cathode; when the detection plate to be adjusted is biased toward the cathode, the detection plate to be adjusted needs to be adjusted toward the anode.
[0060] In the above steps S210 to S240, energy data received by each detection board within a preset time length is obtained when the security inspection machine is in the test mode, and then the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length is determined based on the obtained energy data. Then, the detection board to be adjusted and the offset direction of the detection board to be adjusted are determined according to the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length. Finally, based on the offset direction of the detection board to be adjusted, the detection board is adjusted in the direction opposite to the offset direction of the detection board to reduce the energy fluctuation of the energy data received by the detection board of the security inspection machine, which solves the problem of yellow spots in the imaging results of the security inspection machine due to excessive energy fluctuation of the data collected by the detection board crystals of the security inspection machine in the prior art.
[0061] In one embodiment, the energy fluctuation control method of the security inspection machine further includes the following steps:
[0062] Step S201, adjust the relative positions of the radiation source, collimation slit and detection plate of the security inspection machine until the energy curve of the energy data received by each detection plate of the security inspection machine reaches a preset state, and enter the test mode.
[0063] Step S202: In the test mode, energy data received by each detection board within a preset time length is collected.
[0064] In the above steps S201 to S202, by adjusting the relative positions of the radiation source, collimation slit and detection plate of the security inspection machine, until the energy curve of the energy data received by each detection plate of the security inspection machine reaches a preset state, the test mode is entered, and then in the test mode, the energy data received by each detection plate within a preset time length is collected. By adjusting the relative positions of the radiation source, collimation slit and detection plate of the security inspection machine, the detection plate can normally collect the energy data, which is convenient for subsequent analysis of energy fluctuations based on the collected energy data, and then the detection plate with excessive energy fluctuations in the received energy data is adjusted.
[0065] In one embodiment, step S220, based on the acquired energy data, determines the energy offset ratio of each crystal in each detection board of the security inspection machine within a preset time length, including the following steps:
[0066] Step S222: determining each energy data value of each crystal based on the acquired energy data and the minimum integration time of the energy data.
[0067] Because the imaging of the security inspection equipment is presented in the form of animation on the computer monitor, the minimum integration time of the energy data can be the time corresponding to the frequency of the image frames of the animation displayed on the monitor, and specifically can be the inverse of the frequency of the image frames of the animation displayed on the monitor, that is, the time used to collect one frame of image. Because the energy data collected is energy data of a preset time length, the energy data of each crystal can be divided into various energy data values according to the minimum integration time of the energy data. Among them, any energy data value of each crystal is the energy data collected by each crystal at the minimum integration time of the energy data.
[0068] The number of energy data values that each crystal can obtain, n1, can be expressed as:
[0069] n1=t÷t1
[0070] Wherein, t is the preset time length, and t1 is the minimum integration time of energy data.
[0071] Step S224, based on each energy data value of each crystal, determining the energy shift ratio of each crystal within a preset time length.
[0072] The energy shift ratio of each crystal within the preset time length is determined by first determining the reference energy value of each crystal, and grouping the other energy data values in the crystal except the reference energy value according to a rule group with a preset number of adjacent energy data values as one group, and then determining the energy shift ratio of each crystal within the preset time length according to the relationship between the reference energy data value and the energy data values of each group after the division. The preset number can be set according to the specific situation. For example, the preset number can be 10, that is, every 10 adjacent energy data values are a group.
[0073] In the above steps S222 to S224, the energy data values of each crystal are determined by the acquired energy data and the minimum integration time of the energy data, and the energy offset ratio of each crystal within a preset time length is determined based on the energy data values of each crystal. This facilitates determining the detection plate to be adjusted according to the energy offset ratio of each crystal within the preset time length, and then adjusting the detection plate to be adjusted to reduce the energy fluctuation of the energy data received by the detection plate of the security inspection machine.
[0074] Further, in one embodiment, step S224, based on each energy data value of each crystal, determines the energy shift ratio of each crystal within a preset time length, including the following steps:
[0075] Step S2242, based on the energy data values of each crystal, determine the reference energy value of each crystal and the group average energy value.
[0076] In this step, because each energy data value of each crystal also has a small fluctuation, in order to eliminate the deviation caused by the fluctuation of each energy data value itself, the energy data value of each crystal can be grouped, and the group average energy value of each group is calculated, and the energy offset ratio of each crystal within a preset time length is calculated by the group average energy value to improve the accuracy of the energy offset ratio. The above determination of the reference energy value and the group average energy value of each crystal can be to use the first energy data value obtained by each crystal as the reference energy data value of the current crystal, divide the energy data values obtained after the first energy data value into a group for each preset number of energy data values, obtain each group, calculate the average energy data value of the energy data values of each group, and use the average energy data value of each group as the group average energy value.
[0077] For example, if the first energy data value of the current crystal is J0, then J0 is used as the reference energy data value of the current crystal. The energy data values collected after the first energy data value of the current crystal are represented as J1, J2, and so on. If the preset number is 10, then every 10 energy data values after the first energy data value in the current crystal are a group, and the calculation formula for the group average energy value j1 of the first group is:
[0078]
[0079] The calculation formula for the group average energy value j2 of the second group is:
[0080]
[0081] By analogy, the group average energy values of all groups of the current crystal are obtained. It should be noted that the number of energy data values of the last group may be less than 10.
[0082] Step S2244, based on the reference energy value of each crystal and the group average energy value, determine the energy shift ratio of each crystal within a preset time length.
[0083] The energy shift ratio of each crystal within a preset time length is determined based on the reference energy value of each crystal and the group average energy value as follows:
[0084]
[0085] Among them, x i Indicates the energy shift ratio corresponding to the i-th group of the current crystal, ji Represents the group average energy value of the i-th group of the current crystal.
[0086] In the above steps S2242 to S2244, the energy offset ratio of each crystal within a preset time length is calculated by determining the baseline energy value of each crystal and the average energy value of the group. The energy offset ratio is determined to further determine the crystal that has shifted, and further determine the detection board where the crystal that has shifted is located, that is, determine the test board to be adjusted.
[0087] In one embodiment, step S230, according to the energy offset ratio of each crystal in each detection board of the security inspection machine within a preset time length, determines the detection board to be adjusted and the offset direction of the detection board to be adjusted, including the following steps:
[0088] Step S232, determining the maximum and minimum values of the energy shift ratios of each crystal within a preset time length.
[0089] The above-mentioned determination of the maximum and minimum values of the energy shift ratio of each crystal within the preset time length can be based on all the energy shift ratios of each crystal within the preset time length, and the maximum and minimum values of the energy shift ratio of each crystal within the preset time length are determined. For example, the energy shift ratios of crystal No. 1 within the preset time length are 1.1, 0.2, -0.8, 0.9, and 1.5, then the maximum value of the energy shift ratio of crystal No. 1 within the preset time length is 1.5, and the minimum value of the energy shift ratio of crystal No. 1 within the preset time length is -0.8.
[0090] Step S234 , determining the detection plate to be adjusted and the offset direction of the detection plate to be adjusted based on the maximum and minimum values of the energy offset ratios of each crystal within a preset time length and a preset energy offset threshold.
[0091] The above-mentioned preset energy offset threshold may be an energy offset value corresponding to the minimum energy fluctuation required to produce a yellow spot. That is, when the energy offset ratio is greater than or equal to the preset energy offset threshold, it means that the energy fluctuation of the data collected by the detection plate crystal will cause a yellow spot to appear in the imaging result of the security inspection machine, and when the energy offset ratio is less than the preset energy offset threshold, it means that the energy fluctuation of the data collected by the detection plate crystal will not cause a yellow spot to appear in the imaging result of the security inspection machine.
[0092] Because the maximum and minimum values of the energy offset ratio of each crystal within the preset time length may be positive or negative, therefore, the absolute values of the maximum and minimum values of the energy offset ratio of each crystal within the preset time length may be determined first, and then the detection plate to be adjusted may be determined based on the size relationship between the absolute values of the maximum and minimum values of the energy offset ratio of each crystal within the preset time length and the preset energy offset threshold. Wherein, the above-mentioned determination of the detection plate to be adjusted based on the size relationship between the absolute values of the maximum and minimum values of the energy offset ratio of each crystal within the preset time length and the preset energy offset threshold may specifically be based on the size relationship between the absolute values of the maximum and minimum values of the energy offset ratio of each crystal within the preset time length and the preset energy offset threshold, determining that all crystals corresponding to the maximum and / or minimum values of the preset energy offset threshold whose absolute values are greater than or equal to the preset energy offset threshold, and the detection plate where all crystals corresponding to the maximum and / or minimum values of the preset energy offset threshold whose absolute values are greater than or equal to the preset energy offset threshold are located are the detection plates to be adjusted.
[0093] Further, the offset direction of the detection plate to be adjusted can be determined according to whether the maximum value and / or the minimum value whose absolute value is greater than or equal to the preset energy offset threshold is positive or negative. Specifically, if the maximum value and / or the minimum value whose absolute value is greater than or equal to the preset energy offset threshold is positive, then the detection plate to be adjusted where the crystal corresponding to the maximum value and / or the minimum value of the preset energy offset threshold is located is positively offset, and if the maximum value and / or the minimum value whose absolute value is greater than or equal to the preset energy offset threshold is negative, then the detection plate to be adjusted where the crystal corresponding to the maximum value and / or the minimum value of the preset energy offset threshold is located is negatively offset. For example, the preset energy offset threshold is 1.5, the maximum value of the energy offset ratio of crystal No. 1 is 1.5, and the minimum value is -0.1, the maximum value of the energy offset ratio of crystal No. 100 is 0.8, and the minimum value is -1.6, and the absolute values of the maximum and minimum values of the energy offset ratios of other crystals are all less than the preset energy offset threshold. If the absolute value of the maximum value of the energy offset ratio of crystal No. 1 is greater than or equal to the preset energy offset threshold, and the energy offset ratio of crystal No. 1 is a positive number, then the detection board where crystal No. 1 is located has a positive offset. If the absolute value of the minimum value of the energy offset ratio of crystal No. 100 is greater than or equal to the preset energy offset threshold, and the energy offset ratio of crystal No. 100 is a negative number, then the detection board where crystal No. 100 is located has a negative offset. Based on this, the detection board where crystal No. 1 is located and the detection board where crystal No. 100 is located are the detection boards to be adjusted.
[0094] In the above steps S232 to S234, by determining the maximum and minimum values of the energy offset ratio of each crystal within the preset time length, and then based on the maximum and minimum values of the energy offset ratio of each crystal within the preset time length and the preset energy offset threshold, it is determined that the absolute values of the maximum and minimum values of the energy offset ratio of each crystal within the preset time length are greater than or equal to the preset energy offset ratio, and then the detection plate to be adjusted and the offset direction of the detection plate to be adjusted are determined.
[0095] In addition, in one embodiment, step S234, based on the maximum and minimum values of the energy offset ratios of each crystal within a preset time length and a preset energy offset threshold, determines the detection plate to be adjusted and the offset direction of the detection plate to be adjusted, including the following steps:
[0096] Step S2342, using the maximum and minimum values of each energy offset ratio in each crystal as the ordinate and the serial number of each crystal as the abscissa, a coordinate line graph of each crystal of each detection plate of the security inspection machine is established.
[0097] Because a single security inspection machine has N detection boards in one imaging angle, and each detection board has M crystals, the crystals on each detection board of the current security inspection machine can be numbered so that each crystal has a serial number. In this way, when determining the detection board to be adjusted, the detection board corresponding to the crystal can be determined according to the serial number of the crystal corresponding to the maximum value / or minimum value whose absolute value is greater than or equal to the preset energy offset threshold.
[0098] Figure 3 : is a coordinate line diagram of each crystal of each detection board of the security inspection machine of this embodiment. Figure 3 As shown, based on the maximum value of each energy offset ratio of each crystal of each detection board of the security inspection machine and the serial number corresponding to the crystal, a coordinate line graph determined by the maximum value of each energy offset ratio in each crystal can be obtained. Based on the minimum value of each energy offset ratio of each crystal of each detection board of the security inspection machine and the serial number corresponding to the crystal, a coordinate line graph determined by the minimum value of each energy offset ratio in each crystal can be obtained.
[0099] Step S2344, based on the coordinate line graph of each crystal of each detection plate of the security inspection machine and the preset energy offset threshold, determine the detection plate to be adjusted and the offset direction of the detection plate to be adjusted.
[0100] In this step, based on the coordinate line graph of each crystal and the preset energy offset threshold, it can be determined whether the absolute value of the vertical coordinate in the coordinate discount graph is greater than or equal to the preset energy offset threshold, and then, based on the absolute value of the vertical coordinate in the coordinate discount graph is greater than or equal to the preset energy offset threshold, the serial number of the crystal whose absolute value of the vertical coordinate in the coordinate discount graph is greater than or equal to the preset energy offset threshold can be determined, and then, based on the serial number of the crystal, the detection plate to be adjusted is determined.
[0101] Continue to see Figure 3 , where the security inspection machine has 10 detection boards, each detection board has 64 crystals, then the crystals numbered 1-64 correspond to the first detection board A1, the crystals numbered 65-128 correspond to the second detection board A2, and so on, all the crystals of all detection boards are numbered. Figure 3 It can be seen that the first detection board A1, the second detection board A2, the eighth detection board A8, the ninth detection board A9 and the tenth detection board A10 are all negatively offset, and the crystals of the detection boards with negative offset are biased toward the cathode. The sixth detection board A6 is positively offset, and the crystals of the detection boards with positive offset are biased toward the anode. Therefore, the first detection board A1, the second detection board A2, the sixth detection board A6, the eighth detection board A8, the ninth detection board A9 and the tenth detection board A10 are all detection boards to be adjusted.
[0102] In the above steps S2342 to S2344, by establishing a coordinate line graph of each crystal of each detection plate of the security inspection machine, and then based on the coordinate line graph of each crystal of each detection plate of the security inspection machine and a preset energy offset threshold, the detection plate to be adjusted and the offset direction of the detection plate to be adjusted are determined, and then according to the offset direction of the detection plate to be adjusted and the large detection plate to be adjusted, the detection plate can be adjusted in the direction opposite to the offset direction of the detection plate, so as to reduce the energy fluctuation of the energy data received by the detection plate of the security inspection machine, which solves the problem of yellow spots in the imaging results of the security inspection machine due to excessive energy fluctuations of the data collected by the detection plate crystals of the security inspection machine in the prior art.
[0103] In one embodiment, after step S240, the following steps are included:
[0104] Step S250, based on the adjusted detection board, collect energy data of a preset time length, and repeat the adjustment process of the detection board until the energy offset ratio of each crystal of the security inspection machine meets the preset first condition; the preset first condition is that the absolute values of the energy offset ratios of all crystals of the security inspection machine are less than or equal to the preset energy offset threshold.
[0105] The above-mentioned adjustment process of the detection plate can be the detection plate adjustment process from step S220 to step S240. In this step, the detection plate can be adjusted continuously, and based on the adjusted detection plate, energy data of a preset time length is collected, and based on the collected energy data, the detection plate is adjusted until the energy offset ratio of each crystal of the security inspection machine meets the preset first condition. By adjusting the detection plate multiple times, it is ensured that the energy fluctuation of the energy data received by the detection plate will not cause yellow spots, which solves the problem of yellow spots in the imaging results of the security inspection machine due to excessive energy fluctuations of the data collected by the detection plate crystal of the security inspection machine in the prior art.
[0106] The present embodiment is described and illustrated below through preferred embodiments.
[0107] Figure 4 Flow chart of the energy fluctuation control method of the security inspection machine provided by a preferred embodiment of the present application. Figure 4 As shown, the energy fluctuation control method of the security inspection machine includes the following steps:
[0108] Step S410, adjusting the relative positions of the radiation source, the collimation slit and the detection plate of the security inspection machine until the energy curve of the energy data received by each detection plate of the security inspection machine reaches a preset state, and entering the test mode;
[0109] Step S420, in the test mode, collecting energy data received by each detection board within a preset time length;
[0110] Step S430, determining each energy data value of each crystal based on the acquired energy data and the minimum integration time of the energy data;
[0111] Step S440, determining the energy shift ratio of each crystal within a preset time length based on each energy data value of each crystal;
[0112] Step S450, determining the maximum value and the minimum value of the energy shift ratio of each crystal within the preset time length based on the energy shift ratio of each crystal within the preset time length;
[0113] Step S460, determining the detection plate to be adjusted and the offset direction of the detection plate to be adjusted based on the maximum and minimum values of the energy offset ratios of each crystal within a preset time length and a preset energy offset threshold;
[0114] Step S470, based on the adjusted detection board, collect energy data of a preset time length, and repeat the adjustment process of the detection board until the energy offset ratio of each crystal of the security inspection machine meets the preset first condition.
[0115] In the above steps S410 to S470, energy data received by each detection board within a preset time length is obtained when the security inspection machine is in the test mode, and then the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length is determined based on the obtained energy data. Then, the detection board to be adjusted and the offset direction of the detection board to be adjusted are determined according to the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length. Finally, based on the offset direction of the detection board to be adjusted, the detection board is adjusted in the direction opposite to the offset direction of the detection board. Then, energy data of a preset time length is collected according to the adjusted detection board, and the adjustment process of the detection board is repeated until the energy offset ratio of each crystal of the security inspection machine meets the preset first condition. By adjusting the detection board multiple times, it is ensured that the energy fluctuation of the energy data received by the detection board will not cause yellow spots, which solves the problem of yellow spots in the imaging results of the security inspection machine due to excessive energy fluctuations of the data collected by the detection board crystals of the security inspection machine in the prior art.
[0116] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0117] Based on the same inventive concept, an energy fluctuation control device for a security inspection machine is also provided in this embodiment, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below may be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.
[0118] In one embodiment, Figure 5 : is a structural block diagram of an energy fluctuation control device for a security inspection machine provided in an embodiment of the present application, such as Figure 5 As shown, the energy fluctuation control device of the security inspection machine includes:
[0119] An acquisition module 52 is used to acquire energy data received by each detection board within a preset time length in the test mode of the security inspection machine;
[0120] The offset ratio determination module 54 is used to determine the energy offset ratio of each crystal in each detection board of the security inspection machine within a preset time length based on the acquired energy data;
[0121] The detection board determination module 56 is used to determine the detection board to be adjusted and the offset direction of the detection board to be adjusted according to the energy offset ratio of each crystal in each detection board of the security inspection machine within a preset time length;
[0122] and an adjusting module 58, which is used to adjust the detection plate to be adjusted based on the offset direction of the detection plate to be adjusted.
[0123] The energy fluctuation control device of the security inspection machine obtains the energy data received by each detection board within a preset time length when the security inspection machine is in a test mode, and then determines the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length based on the acquired energy data. Then, according to the energy offset ratio of each crystal of each detection board of the security inspection machine within the preset time length, the detection board to be adjusted and the offset direction of the detection board to be adjusted are determined. Finally, based on the offset direction of the detection board to be adjusted, the detection board is adjusted in the direction opposite to the offset direction of the detection board to reduce the energy fluctuation of the energy data received by the detection board of the security inspection machine, which solves the problem of yellow spots in the imaging results of the security inspection machine caused by excessive energy fluctuation of the data collected by the detection board crystals of the security inspection machine in the prior art.
[0124] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0125] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, any one of the energy fluctuation control methods for security inspection machines in the above embodiments is implemented.
[0126] In one embodiment, a security inspection machine is provided. The security inspection machine includes a radiation source, a collimation slit, a detection plate, and a computer device for implementing any one of the energy fluctuation control methods for the security inspection machine in the above embodiments.
[0127] The above-mentioned ray source is used to generate and emit X-rays. The above-mentioned collimation slit, as a collimator of the security inspection machine, is used to constrain the X-rays emitted by the ray source into a fan shape. The above-mentioned detection plate is used to receive the X-rays constrained by the collimation slit. During the operation of the security inspection machine, the ray source generates and emits X-rays, and the X-rays pass through the collimation slit, and the X-rays are constrained into a fan shape through the collimation slit, and the fan-shaped X-rays are hit on the detection plate crystal, and the detection plate forms an image based on the energy data of the X-rays received by each crystal.
[0128] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0130] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for controlling energy fluctuations of a security inspection machine, characterized in that: The method comprises: Obtain the energy data received by each detection board within a preset time length in the test mode of the security inspection machine; Based on the energy data obtained, determine the reference energy value and the group average energy value of each crystal in each detection board of the security inspection machine; according to the reference energy value and the group average energy value, determine the energy offset ratio of each crystal in each detection board of the security inspection machine within the preset time length; Determine the detection plate to be adjusted and the offset direction of the detection plate to be adjusted according to the energy offset ratio of each crystal in each detection plate of the security inspection machine within the preset time length; The detection plate to be adjusted is adjusted based on the offset direction of the detection plate to be adjusted.
2. The energy fluctuation control method of the security inspection machine according to claim 1 is characterized in that: Also includes: Adjust the relative positions of the radiation source, the collimation slit and the detection plate of the security inspection machine until the energy curve of the energy data received by each detection plate of the security inspection machine reaches a preset state, and enter the test mode; In the test mode, energy data received by each detection board within the preset time length is collected.
3. The energy fluctuation control method of the security inspection machine according to claim 1, characterized in that: Determining the reference energy value and the group average energy value of each crystal in each detection plate of the security inspection machine based on the acquired energy data includes: Determine each energy data value of each of the crystals based on the acquired energy data and the minimum integration time of the energy data; Based on the energy data values of the crystals, the reference energy value and the group average energy value of the crystals in the detection plates of the security inspection machine are determined.
4. The energy fluctuation control method of a security inspection machine according to any one of claims 1 to 3, characterized in that: The step of determining the detection plate to be adjusted and the offset direction of the detection plate to be adjusted according to the energy offset ratio of each crystal in each detection plate of the security inspection machine within the preset time length includes: Determine the maximum and minimum values of the energy shift ratios of each of the crystals within the preset time length; The detection plate to be adjusted and the offset direction of the detection plate to be adjusted are determined based on the maximum value and the minimum value of the energy offset ratio of each crystal within the preset time length and a preset energy offset threshold.
5. The energy fluctuation control method of the security inspection machine according to claim 4 is characterized in that: The step of determining the detection plate to be adjusted and the offset direction of the detection plate to be adjusted based on the maximum value and the minimum value of the energy offset ratio of each crystal within the preset time length and a preset energy offset threshold comprises: With the maximum and minimum values of each energy shift ratio in each of the crystals as the ordinate and the serial number of each of the crystals as the abscissa, a coordinate line graph of each of the crystals of each of the detection plates of the security inspection machine is established; Based on the coordinate line graph of each of the crystals of each of the detection plates of the security inspection machine and the preset energy offset threshold, the detection plate to be adjusted and the offset direction of the detection plate to be adjusted are determined.
6. The energy fluctuation control method of a security inspection machine according to any one of claims 1 to 3, characterized in that: After adjusting the detection plate to be adjusted based on the offset direction of the detection plate to be adjusted, the method further includes: Based on the adjusted detection plate, energy data of the preset time length is collected, and the adjustment process of the detection plate is repeated until the energy offset ratio of each crystal of the security inspection machine meets the preset first condition; the preset first condition is that the absolute values of the energy offset ratios of all the crystals of the security inspection machine are less than or equal to the preset energy offset threshold.
7. An energy fluctuation control device for a security inspection machine, characterized in that: The device comprises: An acquisition module is used to acquire energy data received by each detection board within a preset time length in the test mode of the security inspection machine; An offset ratio determination module is used to determine the reference energy value and the group average energy value of each crystal in each detection board of the security inspection machine based on the acquired energy data; and determine the energy offset ratio of each crystal in each detection board of the security inspection machine within the preset time length according to the reference energy value and the group average energy value; A detection plate determination module, used to determine the detection plate to be adjusted and the offset direction of the detection plate to be adjusted according to the energy offset ratio of each crystal in each detection plate of the security inspection machine within the preset time length; and an adjusting module, which is used to adjust the detection plate to be adjusted based on the offset direction of the detection plate to be adjusted.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the energy fluctuation control method for a security inspection machine according to any one of claims 1 to 6 are implemented.
9. A security inspection machine, characterized in that: The security inspection machine comprises a radiation source, a collimating slit, a detection plate, and the computer device described in claim 8.
