Data processing method, image correction method, electronic equipment and medium

By acquiring and analyzing the scale data of the security inspection machine in different states, determining the correspondence between the detection units, and dynamically updating the air data, the problem of "dirty images" in the X-ray security inspection system caused by target drift is solved, and image quality and security inspection efficiency are improved.

CN120107124AActive Publication Date: 2025-06-06HANGZHOU RAYIN TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202510594493.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-06-06
Estimated Expiration
2045-05-09

AI Technical Summary

Technical Problem

In the X-ray security inspection system, due to the drift of the target of the ray source, the X-ray intensity received by the detector changes, affecting the image correction effect and generating abnormal stripes, which are called the image "dirty map".

Method used

By acquiring the scale data of the security checker in different states when the ray source is in the radius source, the correspondence between the reference detection unit and other detection units is determined, and the air data is dynamically updated for image correction.

Benefits of technology

It effectively improves the image effect of the security check machine output image, eliminates the image "dirty pictures", and improves the difficulty and efficiency of security checks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120107124A_ABST
    Figure CN120107124A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, an image correction method, electronic equipment and a medium, and relates to the technical field of image processing.The data processing method comprises the steps that scale data of a security inspection machine when a ray source is in different states are obtained, the scale data comprises air data collected by each detection unit of a detector in the security inspection machine when a radiation source is in different states; a reference detection unit is determined from the detection units of the detector, and the reference detection unit is a detection unit which is not shielded by the to-be-detected object in the process that the security inspection machine scans and detects the to-be-detected object; and based on the scale data, generating a corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the radiation source is in different states, the other detection units being the detection units except the reference detection unit. The corresponding relation generated by the method facilitates subsequent dynamic updating of the air data of each detection unit, provides accurate correction data, and improves the output image effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a data processing method, an image correction method, an electronic device and a medium. Background Art

[0002] In the X-ray security inspection system, the responses of each detector to the same intensity of X-rays will be different; at the same time, in the security inspection system, the X-ray intensity received by each detector is also different due to the different distances between the detector and the radiation source, the different widths of the collimation slits, etc. Generally, this phenomenon can be corrected by linear normalization. The correction process requires the grayscale value of the detector when the radiation source does not emit X-rays, and the grayscale value of the detector when the radiation source directly irradiates the X-rays to the detector (also called air data).

[0003] However, during the operation of the security inspection machine, the radiation source may experience target drift, causing the direction of the X-rays it emits to shift, which in turn causes the X-ray intensity received by the detector to change. Therefore, there is a deviation between the X-ray intensity received by the detector when the security inspection machine is running and the air data received by the detector during calibration. This deviation will significantly affect the above-mentioned normalized correction effect, thereby reducing the image effect of the image output by the security inspection machine and producing abnormal stripes, which are called "dirty images".

[0004] Therefore, how to improve the image effect of the images output by the security inspection machine is a technical problem that needs to be solved urgently.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a data processing method, an image correction method, an electronic device and a medium, aiming to solve the technical problem of how to improve the image effect of the image output by the security inspection machine.

[0007] To achieve the above objectives, the present application proposes a data processing method, which includes: Acquire calibration data of the security inspection machine when the radiation source is in different states; wherein the calibration data includes air data collected by each detection unit of the detector in the security inspection machine when the radiation source is in different states, and the air data is the intensity of X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; Determine a reference detection unit from the detection units of the detector, wherein the reference detection unit refers to a detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; Based on the calibration data, a corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the radiation source is in different states is generated; wherein the other detection units are detection units other than the reference detection unit.

[0008] In an optional implementation, the step of obtaining the calibration data of the security inspection machine when the radiation source is in different states includes: Acquire first air data collected by each detection unit of the detector in the security inspection machine within a first time period after the radiation source is turned on; Acquire second air data collected by each detection unit of the detector in the security inspection machine in a second time period after the radiation source is turned on; the temperature of the radiation source in the first time period is lower than the temperature of the radiation source in the second time period, and the first time period is earlier than the second time period; The first air data and the second air data are used as the scale data.

[0009] In an optional implementation, the reference detection unit includes at least one detection unit whose probability of being blocked by the object to be inspected is less than a first value during the scanning and detection of the object to be inspected by the security inspection machine.

[0010] In an optional implementation, the reference detection unit includes at least one detection unit located close to a transmission edge of the security inspection channel.

[0011] In addition, to achieve the above purpose, the present application also proposes an image correction method, the method comprising: Obtain the corresponding relationship between the air data of the reference detection unit in the security inspection machine and the air data of other detection units when the radiation source is in different states; wherein the detector of the security inspection machine includes the reference detection unit and the other detection units, the other detection units are detection units other than the reference detection unit, and the air data is the intensity of the X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; the reference detection unit refers to the detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; Based on the air data currently corresponding to the reference detection unit and the corresponding relationship, determining the air data currently corresponding to the other detection units; The scanned image of the object to be inspected is corrected by using the air data currently corresponding to the reference detection unit and the air data currently corresponding to the other detection units, wherein the scanned image is obtained by the security inspection machine scanning and detecting the object to be inspected.

[0012] In an optional implementation, the method further includes: In the case where it is detected that the reference detection unit is not blocked by the object to be detected, the intensity of the X-rays received by the reference detection unit is determined as the air data currently corresponding to the reference detection unit.

[0013] In an optional implementation, the corresponding relationship is represented in the form of a change relationship curve; Before determining the air data currently corresponding to the other detection units based on the air data currently corresponding to the reference detection unit and the corresponding relationship, the method further includes: Acquire actual air data collected by each detection unit before the security inspection machine scans and detects the object to be inspected; Based on the actual air data, determining a measurement state deviation of the change relationship curve; Using the measured state deviation, updating the change relationship curve; Accordingly, the determining the air data currently corresponding to the other detection units based on the air data currently corresponding to the reference detection unit and the corresponding relationship includes: Based on the air data currently corresponding to the reference detection unit and the updated change relationship curve, the air data currently corresponding to the other detection units are determined.

[0014] In an optional implementation manner, determining the measurement state deviation of the change relationship curve based on the actual air data includes: For For each other detection unit, perform the following steps: Determine the Actual air data for other detector units Actual air data with the reference probe unit The target correspondence between the two is measured through the measurement point Characterization; In the change relationship curve Determine the measurement point with The closest target point ; Calculate the target point With the measuring point The deviation between the measured state and the change relationship curve is obtained. ;in, , ; The updating of the change relationship curve by using the measured state deviation comprises: Using the measured state deviation , use the following formula to get the updated change relationship curve : .

[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a data processing device, the device comprising: A first acquisition module is used to acquire the calibration data of the security inspection machine when the radiation source is in different states; wherein the calibration data includes air data collected by each detection unit of the detector in the security inspection machine when the radiation source is in different states, and the air data is the intensity of X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; A first determination module is used to determine a reference detection unit from the detection units of the detector, wherein the reference detection unit refers to a detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; A generation module is used to generate a corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the radiation source is in different states based on the calibration data; wherein the other detection units are detection units other than the reference detection unit.

[0016] In addition, to achieve the above-mentioned purpose, the present application also proposes an image correction device, the device comprising: The second acquisition module is used to obtain the corresponding relationship between the air data of the reference detection unit in the security inspection machine and the air data of other detection units when the radiation source is in different states; wherein the detector of the security inspection machine includes the reference detection unit and the other detection units, the other detection units are detection units other than the reference detection unit, and the air data is the intensity of the X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; the reference detection unit refers to the detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; A second determination module, configured to determine the air data currently corresponding to the other detection units based on the air data currently corresponding to the reference detection unit and the corresponding relationship; The correction module is used to correct the scanned image of the object to be inspected by using the air data currently corresponding to the reference detection unit and the air data currently corresponding to the other detection units, wherein the scanned image is obtained by the security inspection machine scanning and detecting the object to be inspected.

[0017] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data processing method described above, or to implement the steps of the image correction method described above.

[0018] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data processing method described above are implemented, or the steps of the image correction method described above are implemented.

[0019] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the data processing method described above, or implements the steps of the image correction method described above.

[0020] One or more technical solutions proposed in this application have at least the following technical effects: In order to solve the "dirty image" problem, the present application proposes to dynamically and real-time update the air data required for the calibration process in response to the target drift phenomenon of the radiation source. However, in the related art, the air data can usually be measured only when there is no object to be inspected in the security inspection channel. For situations such as continuous passage of packages, it is difficult to obtain complete air data that can be used for updating, which is not conducive to the dynamic and real-time update of the air data. To this end, the present application can obtain the calibration data of the security inspection machine when the radiation source is in different states in advance through experimental calibration, and divide the detector into a reference detection unit that is not blocked by the object to be inspected during the scanning detection process and other reference detection units. The detection unit is then fitted according to the scale data to generate the corresponding relationship between the reference detection unit and other detection units when the radiation source is in different states. Since the determined reference detection unit is usually not easily blocked by the object to be inspected, the intensity of the X-rays it receives most of the time can be used as a reference for air data to indicate the current state of the radiation source of the security inspection machine. Furthermore, according to the corresponding relationship generated by fitting, it can be determined that the other detection units that are being blocked by the object to be inspected are equivalent to the air data when they are not blocked by the object to be inspected, which is convenient for dynamic and real-time updating of the air data, and then using the dynamically updated air data for image correction, which can effectively improve the output image effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] Figure 1 is a schematic diagram of a dirty map in the related art; Figure 2 It is one of the flow charts of the data processing method provided by this application; Figure 3 It is a structural schematic diagram of a security inspection machine in the related art; Figure 4 This is the second flow chart of the data processing method provided by this application; Figure 5 It is one of the flowcharts of the image correction method provided by this application; Figure 6 This is the second flow chart of the image correction method provided by this application; Figure 7 This is the third flow chart of the image correction method provided by this application; Figure 8 This is the fourth flowchart of the image correction method provided by this application; Fig. 9 is a schematic diagram of a change relationship curve in the image correction method provided by the present application; Fig.10 It is a comparative schematic diagram of the X-ray intensity calculated in the related art and the method provided in this application; Fig.11 is a schematic diagram of air data after correction by the image correction method provided by the present application; Fig.12 It is a structural schematic diagram of a data processing device provided by the present application; Fig.13 It is a structural schematic diagram of the image correction device provided by the present application; Fig.14 It is a structural schematic diagram of the electronic device provided by this application.

[0024] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0025] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0026] Unless otherwise defined, all technical and scientific terms used in this application have the same meanings as those commonly understood by technicians in the technical field to which this application belongs; the terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0027] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0028] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0029] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0030] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0031] In the related art, in an X-ray security inspection system, a linear normalization method is generally used to correct the intensity of X-rays received by each detector (represented by the output grayscale value).

[0032] The specific method is: record the gray value when the X-ray is not open source , that is, when the ray source is turned off, the gray value output by the detector is recorded as ; and record the air data in the case of X-ray open source , that is, when the ray source is in the starting state and the X-rays are directed to the detector, the gray value output by the detector is recorded as . and May also be referred to as background value and full load value.

[0033] For the measured gray value , can be corrected by the following linear normalization formula, and the corrected grayscale value after normalization to the range of [0,1] is obtained : .

[0034] However, in the actual use of the security inspection system, it was found that the temperature of the radiation source would continue to rise, causing the target drift, resulting in the direction of the X-rays it emitted being offset, which in turn caused the X-ray intensity received by the detector to change. At this time, when the security inspection machine is running, the X-ray intensity in the security inspection channel is different from the air data used during calibration. There is a deviation between In the actual use of the security inspection machine, the air data is not fixed but changes dynamically. If the air data is not updated dynamically, then using such inaccurate correction data to correct the image output by the security inspection machine will seriously affect the image effect and produce abnormal stripes, which is called a "dirty image". Figure 1 is a schematic diagram of a dirty graph in the related art, such as Figure 1 As shown, if fixed air data is used for image correction, it can be seen that the left side is an image without abnormal stripes when the security inspection machine just starts running, and it can display the packages in the security inspection channel normally, while the right side is an abnormal dirty image output by the security inspection machine after running for a period of time. The abnormal stripes in the dirty image may interfere with the security personnel's normal inspection of the packages in the security inspection channel, resulting in problems such as high security inspection difficulty and low efficiency.

[0035] In response to the above problems, the present application provides a data processing method, an image correction method, an electronic device and a medium, which aim to dynamically and in real time update the air data required in the correction process, so as to improve the image effect of the image output by the security inspection machine, solve the "dirty image" problem, avoid interference to security inspection personnel, reduce the difficulty of security inspection, and improve the efficiency of security inspection.

[0036] In addition, there is also a method for dynamically updating the correction table in the related art, which is to update the gray value output by the detector to the new air data after the sensor determines that there is no object to be inspected in the security inspection channel of the security inspection machine. However, in the case of continuous passing of packages in the security inspection channel, it is difficult to obtain complete air data for updating in the above method, which is not conducive to dynamic and real-time updating of air data.

[0037] To this end, the present application also provides a new method for dynamically updating air data, which enables the security inspection machine to dynamically and in real time update the accurate air data required for its image processing during long-term continuous operation, thereby ensuring its image quality.

[0038] It should be noted that the execution subject of the embodiment of the present application may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes an electronic device as an example to illustrate the embodiment of the present application and the following embodiments.

[0039] The present application and the following embodiments are described in detail below.

[0040] According to one aspect, an embodiment of the present application provides a data processing method, referring to Figure 2 , Figure 2 It is one of the flow charts of the data processing method provided by the present application, and the method comprises steps S201 to S203: Step S201, obtaining calibration data of the security inspection machine when the radiation source is in different states; Among them, the calibration data includes air data collected by each detection unit of the detector in the security inspection machine when the radiation source is in different states. The air data is the intensity of X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel.

[0041] It should be noted that Figure 3 It is a structural diagram of a security inspection machine in the related technology, such as Figure 3 As shown, the radiation source 1 emits X-rays, which pass through the security inspection channel 2 and are finally received by the detector 3 in the detection box. The detector 3 outputs grayscale values ​​to form an image, wherein the security inspection channel 2 may be placed with an object to be inspected, and the X-rays may pass through the object to be inspected and irradiate the detector 3, and the detector 3 outputs grayscale values ​​to form an image corresponding to the object to be inspected.

[0042] It should also be noted that the detector 3 usually includes many detection pixels, each of which is used to receive the X-rays emitted by the ray source 1 and output a corresponding grayscale value to characterize the intensity of the X-rays received by each detection pixel.

[0043] In some optional implementations, one or more detection pixels may be divided into a detection unit according to the required correction accuracy, so that the detection pixels in the same detection unit can subsequently correct the air data using the same corresponding relationship.

[0044] For example, the higher the required correction accuracy, the fewer detection pixels can be divided into one detection unit. For example, each detection pixel can be used as a detection unit, and a corresponding correspondence can be fitted to generate a correction. Conversely, if the required correction accuracy is lower, the more detection pixels can be divided into one detection unit, so that these detection pixels can be corrected using the same correspondence.

[0045] In other optional embodiments, the scale data of the radiation source in different states can be understood as the scale data corresponding to the different temperatures of the radiation source in the process from cold to hot after the radiation source starts running. That is, the radiation source in different states can mean that the radiation source is at different temperatures, which is not limited here.

[0046] It should also be noted that in the process of obtaining the calibration data, there should be no object to be inspected on the security inspection channel, that is, each detection unit collects air data when the radiation source is in different states.

[0047] Step S202, determining a reference detection unit from the detection units of the detector; The reference detection unit refers to a detection unit that is not blocked by the object to be inspected during the scanning and detection of the object by the security inspection machine.

[0048] In some optional implementations, the reference detection unit may include at least one detection unit whose probability of being blocked by the object to be inspected is less than a first value during the scanning and detection of the object to be inspected by the security inspection machine.

[0049] It should be noted that the above-mentioned first value can be set according to actual conditions. The smaller the first value is set, the higher the accuracy of the subsequently corrected image will be. However, it may be difficult to find a reference detection unit that meets the requirements. Therefore, a suitable first value can be determined through experiments to ensure that there is a reference detection unit that meets the requirements and that a certain correction accuracy can be guaranteed.

[0050] It should also be noted that the above-mentioned reference detection units can be determined through a large number of experiments, and detection units that are not easily blocked by the object to be inspected are selected. The X-rays emitted by the radiation source can be directly irradiated onto these reference detection units, and the grayscale value they output, that is, the air data, can be used as a reliable reference for the subsequent determination of the air data of other detection units.

[0051] In some other optional embodiments, the reference detection unit includes at least one detection unit located close to a transmission edge of the security inspection channel.

[0052] It should be noted that the reference detection unit can be selected as a detection unit close to the edge of the security inspection channel, because when the object to be inspected is placed, it is usually placed in the middle area of ​​the security inspection channel, and the edge of the security inspection channel is less likely to be blocked by the object to be inspected; in addition, the reference detection unit can also be manually selected or automatically determined through occlusion recognition, and the present application does not impose any restrictions on this.

[0053] Step S203, based on the calibration data, generating a corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the ray source is in different states; The other detection units are detection units other than the reference detection unit.

[0054] Specifically, after obtaining the calibration data, a suitable mathematical function, such as a linear function or a quadratic function, can be constructed to fit and generate a reference detection unit. With other detection units The corresponding relationship between them is, for example: .

[0055] The embodiment of the present application provides a data processing method. In order to solve the "dirty image" problem, the present application proposes a target drift phenomenon corresponding to the radiation source, and dynamically and real-time updates the air data required for the calibration process. However, in the related art, the air data can usually be measured only when there is no object to be inspected in the security inspection channel. In the case of continuous passage of packages, it is difficult to obtain complete air data for updating, which is not conducive to the dynamic and real-time update of the air data. In this regard, the present application can obtain the calibration data of the security inspection machine when the radiation source is in different states in advance through experimental calibration, and divide the detector into the areas that are not blocked by the object to be inspected during the scanning detection process. The reference detection unit and other detection units are then fitted according to the scale data to generate the corresponding relationship between the reference detection unit and other detection units when the radiation source is in different states. Since the determined reference detection unit is usually not easily blocked by the object to be inspected, the intensity of the X-rays it receives most of the time can be used as a reference for air data to indicate the current state of the security inspection machine's radiation source. Furthermore, based on the corresponding relationship generated by fitting, it can be determined that the other detection units that are being blocked by the object to be inspected are equivalent to the air data when they are not blocked by the object to be inspected. This facilitates dynamic and real-time updating of the air data, and then uses the dynamically updated air data for image correction, which can effectively improve the output image effect.

[0056] In some optional implementations, a specific implementation method for obtaining scale data is provided. Figure 2 On the basis of Figure 4 This is the second flow chart of the data processing method provided by this application, such as Figure 4 As shown, the above step S201 includes sub-steps S2011 to S2013: Sub-step S2011, obtaining first air data collected by each detection unit of the detector in the security inspection machine within a first time period after the radiation source is turned on.

[0057] It should be noted that the above-mentioned first time period can be set according to actual conditions. For example, after the optical path system structural components of the security inspection machine are stable and cooled long enough to reach a completely cooled state, the radiation source is turned on and the first air data collected by each detection unit is obtained within a shorter first time period.

[0058] Sub-step S2012, acquiring second air data collected by each detection unit of the detector in the security inspection machine within a second time period after the radiation source is turned on; The temperature of the ray source in the first time period is lower than the temperature of the ray source in the second time period, and the first time period is earlier than the second time period.

[0059] It should be noted that the second time period can be set according to actual conditions, and the second time period is later than the first time period, that is, after the first air data is obtained, the second air data is collected after a period of time. During the period from the first time period to the second time period after the ray source is turned on, the ray source is always turned on, so the temperature of the ray source in the second time period will be higher than the temperature of the ray source in the first time period. The air data collected by each detection unit at different temperatures is obtained, which is convenient for subsequent fitting to generate the corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the ray source is in different states.

[0060] In some optional embodiments, a shorter sampling interval can be set within the above-mentioned first time period and second time period, so that more scale data is collected, which facilitates the subsequent fitting of a more accurate corresponding relationship; if the sampling interval is set to be longer, the processing amount required for collection and subsequent fitting of the corresponding relationship can be effectively reduced.

[0061] Sub-step S2013: using the first air data and the second air data as the calibration data.

[0062] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data processing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0063] According to another aspect, the present application also provides an image correction method, referring to Figure 5 , Figure 5 This is one of the flowcharts of the image correction method provided by the present application, the method comprising steps S501 to S503: Step S501, obtaining the corresponding relationship between the air data of the reference detection unit in the security inspection machine and the air data of other detection units when the radiation source is in different states; Among them, the detector of the security inspection machine includes the reference detection unit and the other detection units, the other detection units are detection units other than the reference detection unit, and the air data is the intensity of X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; the reference detection unit refers to the detection unit that is not blocked by the object to be inspected during the scanning and detection process of the object to be inspected by the security inspection machine.

[0064] Step S502: Based on the air data currently corresponding to the reference detection unit and the corresponding relationship, determine the air data currently corresponding to the other detection units.

[0065] Step S503, using the air data currently corresponding to the reference detection unit and the air data currently corresponding to the other detection units, correcting the scanned image of the object to be inspected; The scanned image is obtained by the security inspection machine scanning and detecting the object to be inspected.

[0066] Specifically, before the actual operation of the security inspection machine, the correspondence between the reference detection unit and other detection units in the security inspection machine can be obtained through experimental calibration. Then, during the actual operation of the security inspection machine, the current air data corresponding to the reference detection unit and the corresponding relationship are used to determine the current air data corresponding to other detection units, and the air data is dynamically and real-time updated for image correction. When the scanned image of the object to be inspected is subsequently corrected, the latest air data corresponding to each detection unit is used for normalized correction calculation, which can effectively correct the scanned image. The corrected scanned image has good effect, which is convenient for security personnel to conduct security inspections.

[0067] The embodiment of the present application provides an image correction method, in which the corresponding relationship between the intensity of X-rays received by the reference detection unit and other detection units is first obtained, and then during the operation of the security inspection machine, the air data currently corresponding to the reference detection unit and the corresponding relationship can be used to obtain the air data currently corresponding to other detection units, thereby effectively correcting the scanned image of the object to be inspected. Since the reference detection unit is not easily blocked by the object to be inspected, the intensity of the X-rays received by it can be used as a reference for air data most of the time to indicate the current state of the radiation source of the security inspection machine, and then the corresponding relationship generated by fitting is used to determine the air data equivalent to the other detection units that are blocked by the object to be inspected when they are not blocked by the object to be inspected, so as to facilitate dynamic and real-time updating of the air data, and then use the dynamically updated air data for image correction, which can effectively improve the output image effect.

[0068] In some optional embodiments, a specific implementation method is provided for determining the timing of the reference detection unit corresponding to the current air data. Figure 5On the basis of Figure 6 This is the second flow chart of the image correction method provided by this application, such as Figure 6 As shown, the above step S502 may include step S504: Step S504: when it is detected that the reference detection unit is not blocked by the object to be detected, determining the intensity of the X-rays received by the reference detection unit as the air data currently corresponding to the reference detection unit.

[0069] Specifically, during the actual operation of the security inspection machine, it is necessary to first detect whether the reference detection unit is blocked by the object to be inspected, that is, first determine whether the intensity of the X-rays received by the reference detection unit at this time is indeed air data; if the reference detection unit is not blocked by the object to be inspected, that is, the intensity of the X-rays received by the reference detection unit at this time is air data, then the air data of the reference detection unit at this time is used as a reference, and based on the above-mentioned corresponding relationship, the air data corresponding to other detection units blocked by the object to be inspected at this time is determined, so as to facilitate subsequent effective correction.

[0070] In some optional embodiments, if it is detected that the reference detection unit is blocked by the object to be inspected, the air data corresponding to each detection unit can be determined and updated first, and the air data can be determined and updated when the reference detection unit is not blocked by the object to be inspected, thereby ensuring the accuracy of the air data.

[0071] In some optional implementations, for the reference detection unit and other detection units, the corresponding air data is determined as follows: 1) For the reference detection unit, the grayscale value output by the reference detection unit when it is not blocked by the object to be detected is obtained, and the grayscale value is updated as the air data currently corresponding to the reference detection unit.

[0072] 2) For other detection units, there are two cases: <1> When it is detected that other detection units are not blocked by the object to be detected, the grayscale values ​​output by other detection units are directly obtained and updated as the air data corresponding to the other detection units (direct measurement).

[0073] <2> When it is detected that other detection units are blocked by the object to be detected, if the reference detection unit is not blocked by the object to be detected at this time, the current air data corresponding to the reference detection unit and the corresponding relationship can be used for comparison to determine the current air data corresponding to other detection units (indirect measurement).

[0074] In some optional embodiments, Figure 5 On the basis of Figure 7 This is the third flow chart of the image correction method provided by this application, such as Figure 7As shown, the corresponding relationship is represented by a change relationship curve; before the above step S502, steps S505 to S507 are also included: Step S505, obtaining actual air data collected by each detection unit before the security inspection machine scans and detects the object to be inspected.

[0075] Step S506: determining a measurement state deviation of the variation relationship curve based on the actual air data.

[0076] Step S507: using the measured state deviation, updating the change relationship curve.

[0077] Accordingly, the above step S502 includes step S502-1: Step S502-1, based on the air data currently corresponding to the reference detection unit and the updated change relationship curve, determine the air data currently corresponding to the other detection units.

[0078] Specifically, before the security inspection machine scans and detects the object to be inspected, the pre-acquired change relationship curve can be corrected according to the pre-measured actual air data, so that the change relationship curve can be closer to the actual situation of the current security inspection machine. Specifically, the actual air data collected by each detection unit before the security inspection machine scans and detects the object to be inspected is first obtained, and based on the actual air data, the measurement state deviation of the change relationship curve is determined, and then the measurement state deviation is used to update the change relationship curve. After that, in the actual detection process of the security inspection machine, the updated change relationship curve can be used for image correction, which improves the effect of correcting the image to a certain extent.

[0079] In some optional implementations, a specific implementation method of determining the measurement state deviation of the change relationship curve based on actual air data is provided. Specifically, the above step S507 includes the following steps: For For each other detection unit, perform the following steps: Determine the Actual air data for other detector units Actual air data with the reference probe unit The target correspondence between the two is measured through the measurement point Characterization; In the change relationship curve Determine the measurement point with The closest target point ; Calculate the target point With the measuring point The deviation between the measured state and the change relationship curve is obtained. ;in, , ; Accordingly, the above step S502-1 includes the following steps: Using the measured state deviation , use the following formula to get the updated change relationship curve : .

[0080] Specifically, consider measuring the state deviation The subsequent change relationship curve is: ; By shifting the terms, we can get the relationship curve considering the variation of the measurement state deviation. .

[0081] It should be noted that when the change relationship curve is a nonlinear curve, the target point Take the original curve The deviation distance of the nearest point; when the change relationship curve is a linear curve, the curve update can be performed more simply, taking the same or In this case, you can take a or The offset of .

[0082] The following example illustrates the image correction method provided by the embodiment of the present application. For the security inspection machine, the method first calibrates the air data of each detection unit when the temperature of its radiation source changes from cold to hot, selects the detection unit whose edge is not easy for packages to pass through as the reference detection unit, obtains the grayscale value of the reference detection unit and the grayscale value change relationship curve of other detection units, and constructs a corresponding mathematical function to fit the relationship curve. It can be understood that the grayscale value of the reference detection unit indicates the state of the radiation source of the security inspection machine. When the security inspection machine is running in real time, the air data of other detection units are calculated based on the grayscale value of the reference detection unit and the relationship curve with other detection units, and the scanned image is corrected using the dynamically updated air data, and the corrected scanned image is output.

[0083] Figure 8 This is the fourth flow chart of the image correction method provided by this application, such as Figure 8 As shown, the method includes steps S801 to S8010: Step S801, experimental calibration.

[0084] Step S802, collecting air data from cold to hot at the ray source.

[0085] Step S803, fitting and generating a curve of the change relationship between the air data of the reference detection unit and other detection units.

[0086] Step S804: correct the scanned image in real time.

[0087] Step S805, before passing the package, collect the correction table for correction, calculate the measurement state deviation, and update the change relationship curve.

[0088] Step S806, determine whether the reference detection unit is blocked by the object to be detected? If yes, proceed to step S807; if not, proceed to step S808; Step S807: do not update air data.

[0089] Step S808, using the updated change relationship curve and the air data currently corresponding to the reference detection unit, determine the air data currently corresponding to other detection units.

[0090] Step S809: Correct the scanned image using the updated air data.

[0091] Step S8010, output the corrected scanned image for other image processing.

[0092] Specifically, the method of this application is mainly divided into the following parts: 1) Experimental scale: After the optical path system structure components of the security inspection machine are stable, the equipment is started after cooling down for a long enough time, the radiation source is turned on to continuously emit beams, and the original data of all detection units are saved.

[0093] 2) Data analysis: Select a detection unit that has basically no overpacking as the reference detection unit. The change of its gray value corresponds to the state of the radiation source. Draw a scatter plot of the relationship between the gray value of the reference detection unit and other detection units at each moment. And select a suitable relationship curve, such as a linear function or a quadratic function, to fit other detection units. and reference detection unit The changing relationship curve between: .

[0094] Fig. 9 is a schematic diagram of a change relationship curve in the image correction method provided by the present application, such as Fig. 9As shown, taking 16 detection pixels as a detection unit as an example, the relationship scatter diagram between the grayscale values ​​of 4 other detection units and the reference detection unit and the change relationship curve generated by fitting are shown. In the figure, the horizontal axis is the grayscale value output by the reference detection unit, and the vertical axis is the grayscale value output by the other detection units. It can be seen that the general trend between the change relationship curve generated by fitting and the relationship scatter diagram obtained by the experiment is consistent, that is, the change relationship curve generated by fitting can better characterize the relationship between the grayscale values ​​of other detection units and the reference detection unit.

[0095] 3) Real-time correction of scanned images: a. Update the change relationship curve. Manually obtain accurate calibration table before packaging Considering the measurement deviation, the measurement point of the deviation is considered The distance deviation from the original change relationship curve is the smallest, and the change relationship curve is calculated and measuring points The closest point . Measurement point And the change relationship curve The deviation is recorded as . Combined , the changing relationship curve under this state is: ; After moving the items, we get: .

[0096] in, , .

[0097] Therefore, the change relationship curve considering the measurement state deviation in this state is obtained .

[0098] b. Based on the grayscale value and change relationship curve of the reference detection unit, the actual air data of other detection units can be obtained.

[0099] c. Update the grayscale value output by each detection unit Normalized gray value : .

[0100] Fig.10 is a schematic diagram comparing the X-ray intensity calculated in the related art and the method provided in this application, such as Fig.10As shown, the relationship between the real air data obtained by original experimental measurements of the four other detection units in the detector and the air data obtained after correction using the method of the present application is shown as an example. It can be seen that the general trends of the two are consistent, that is, the air data of the other detection units corrected by the method of the present application can better represent the real air data of the other detection units.

[0101] Fig.11 is a schematic diagram of air data after correction by the image correction method provided by this application, combined with Figure 1 and Fig.11 As shown, by comparison, it can be seen that Fig.11 The left side in the middle shows an image when the security inspection machine just starts running and no abnormal stripes appear, and the right side (after the security inspection machine has been running for a period of time) shows an image where the grayscale value output by the detector is corrected using the method of the present application, and the background corresponding to the air data is clean white, making it easier to display the packages in the security inspection channel.

[0102] The embodiment of the present application uses experimental calibration to calibrate the changes in air data of each detection unit and its change relationship curve when the radiation source is at different target positions during the operation of the security inspection machine, and selects a reference detection unit to reflect the optical state of the security inspection machine. In this way, by reading the air data currently corresponding to the reference detection unit, the air data currently corresponding to other detection units can be obtained, which can enable the security inspection machine to update the accurate correction data required for its image processing in real time during long-term continuous operation, effectively eliminate the dirty image phenomenon caused by the difference in actual light intensity and light intensity in the image processing correction process, and ensure its image quality.

[0103] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the image correction method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0104] The present application also provides a data processing device, Fig.12 is a schematic diagram of the structure of the data processing device provided by the present application, such as Fig.12 As shown, the data processing device includes: The first acquisition module 1201 is used to acquire the calibration data of the security inspection machine when the radiation source is in different states; wherein the calibration data includes air data collected by each detection unit of the detector in the security inspection machine when the radiation source is in different states, and the air data is the intensity of X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; A first determining module 1202 is used to determine a reference detection unit from the detection units of the detector, wherein the reference detection unit refers to a detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; The generating module 1203 is used to generate the corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the radiation source is in different states based on the calibration data; wherein the other detection units are detection units other than the reference detection unit.

[0105] The data processing device provided by the present application adopts the data processing method in the above embodiment, which can solve the technical problem of how to improve the image effect of the image output by the security inspection machine. Compared with the prior art, the beneficial effects of the data processing device provided by the present application are the same as the beneficial effects of the data processing method provided by the above embodiment, and other technical features in the data processing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0106] The present application also provides an image correction device, Fig.13 is a schematic diagram of the structure of the image correction device provided by the present application, such as Fig.13 As shown, the image correction device comprises: The second acquisition module 1301 is used to obtain the corresponding relationship between the air data of the reference detection unit in the security inspection machine and the air data of other detection units when the radiation source is in different states; wherein the detector of the security inspection machine includes the reference detection unit and the other detection units, the other detection units are detection units other than the reference detection unit, and the air data is the intensity of the X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; the reference detection unit refers to the detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; A second determination module 1302 is used to determine the air data currently corresponding to the other detection units based on the air data currently corresponding to the reference detection unit and the corresponding relationship; The correction module 1303 is used to correct the scanned image of the object to be inspected by using the air data currently corresponding to the reference detection unit and the air data currently corresponding to the other detection units, wherein the scanned image is obtained by the security inspection machine scanning and detecting the object to be inspected.

[0107] The image correction device provided by the present application adopts the image correction method in the above embodiment, which can solve the technical problem of how to improve the image effect of the image output by the security inspection machine. Compared with the prior art, the beneficial effects of the image correction device provided by the present application are the same as the beneficial effects of the image correction method provided by the above embodiment, and the other technical features in the image correction device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0108] The present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data processing method or the image correction method in the above-mentioned embodiment.

[0109] Reference below Fig.14 , Fig.14 : is a schematic diagram of the structure of the electronic device provided by the present application, which shows a schematic diagram of the structure of the electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.14 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0110] like Fig.14As shown, the electronic device may include a processing device 1401 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1402 or a program loaded from a storage device 1403 to a random access memory (RAM: Random Access Memory) 1404. In RAM 1404, various programs and data required for the operation of the electronic device are also stored. The processing device 1401, ROM 1402, and RAM 1404 are connected to each other through a bus 1405. An input / output (I / O) interface 1406 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1406: an input device 1407 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1408 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1403 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1409. The communication device 1409 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0111] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1403, or installed from a ROM 1402. When the computer program is executed by the processing device 1401, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0112] The electronic device provided by the present application adopts the data processing method or image correction method in the above embodiment to solve the technical problem of how to improve the image effect of the image output by the security inspection machine. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the data processing method or image correction method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the previous optional implementation method, which will not be repeated here.

[0113] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0114] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0115] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data processing method or the image correction method in the above-mentioned embodiment.

[0116] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or other systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0117] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0118] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device performs the following steps: Acquire calibration data of the security inspection machine when the radiation source is in different states; wherein the calibration data includes air data collected by each detection unit of the detector in the security inspection machine when the radiation source is in different states, and the air data is the intensity of X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; Determine a reference detection unit from the detection units of the detector, wherein the reference detection unit refers to a detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; Based on the calibration data, a corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the radiation source is in different states is generated; wherein the other detection units are detection units other than the reference detection unit.

[0119] Alternatively, perform the following steps: Obtain the corresponding relationship between the air data of the reference detection unit in the security inspection machine and the air data of other detection units when the radiation source is in different states; wherein the detector of the security inspection machine includes the reference detection unit and the other detection units, the other detection units are detection units other than the reference detection unit, and the air data is the intensity of the X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; the reference detection unit refers to the detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; Based on the air data currently corresponding to the reference detection unit and the corresponding relationship, determining the air data currently corresponding to the other detection units; The scanned image of the object to be inspected is corrected by using the air data currently corresponding to the reference detection unit and the air data currently corresponding to the other detection units, wherein the scanned image is obtained by the security inspection machine scanning and detecting the object to be inspected.

[0120] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0121] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0122] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0123] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data processing method or image correction method, and can solve the technical problem of how to improve the image effect of the image output by the security inspection machine. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the data processing method or image correction method provided in the above-mentioned embodiment, and will not be repeated here.

[0124] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data processing method or image correction method when executed by a processor.

[0125] The computer program product provided by the present application can solve the technical problem of how to improve the image effect of the image output by the security inspection machine. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the data processing method or image correction method provided by the above embodiments, and will not be repeated here.

[0126] The above descriptions are only some embodiments of the present application, and are not intended to limit the protection scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the protection scope of the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Acquire calibration data of the security inspection machine when the radiation source is in different states; wherein the calibration data includes air data collected by each detection unit of the detector in the security inspection machine when the radiation source is in different states, and the air data is the intensity of X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; Determine a reference detection unit from the detection units of the detector, wherein the reference detection unit refers to a detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; Based on the calibration data, a corresponding relationship between the air data of the reference detection unit and the air data of other detection units when the radiation source is in different states is generated; wherein the other detection units are detection units other than the reference detection unit.

2. The method according to claim 1, characterized in that The step of obtaining the calibration data of the security inspection machine when the radiation source is in different states includes: Acquire first air data collected by each detection unit of the detector in the security inspection machine within a first time period after the radiation source is turned on; Acquire second air data collected by each detection unit of the detector in the security inspection machine in a second time period after the radiation source is turned on; the temperature of the radiation source in the first time period is lower than the temperature of the radiation source in the second time period, and the first time period is earlier than the second time period; The first air data and the second air data are used as the scale data.

3. The method according to claim 1 or 2, characterized in that The reference detection unit includes at least one detection unit whose probability of being blocked by the object to be inspected is less than a first value during the scanning and detection process of the object to be inspected by the security inspection machine.

4. The method according to claim 3, characterized in that The reference detection unit includes at least one detection unit located close to a transmission edge of the security inspection channel.

5. An image correction method, characterized in that: The method comprises: Obtain the corresponding relationship between the air data of the reference detection unit in the security inspection machine and the air data of other detection units when the radiation source is in different states; wherein the detector of the security inspection machine includes the reference detection unit and the other detection units, the other detection units are detection units other than the reference detection unit, and the air data is the intensity of the X-rays received by the detection unit when the radiation source of the security inspection machine is turned on and there is no object to be inspected in the security inspection channel; the reference detection unit refers to the detection unit that is not blocked by the object to be inspected during the scanning and detection of the object to be inspected by the security inspection machine; Based on the air data currently corresponding to the reference detection unit and the corresponding relationship, determining the air data currently corresponding to the other detection units; The scanned image of the object to be inspected is corrected by using the air data currently corresponding to the reference detection unit and the air data currently corresponding to the other detection units, wherein the scanned image is obtained by the security inspection machine scanning and detecting the object to be inspected.

6. The method according to claim 5, characterized in that The method further comprises: In the case where it is detected that the reference detection unit is not blocked by the object to be detected, the intensity of the X-rays received by the reference detection unit is determined as the air data currently corresponding to the reference detection unit.

7. The method according to claim 5 or 6, characterized in that The corresponding relationship is represented by a variation relationship curve; Before determining the air data currently corresponding to the other detection units based on the air data currently corresponding to the reference detection unit and the corresponding relationship, the method further includes: Acquire actual air data collected by each detection unit before the security inspection machine scans and detects the object to be inspected; Based on the actual air data, determining a measurement state deviation of the change relationship curve; Using the measured state deviation, updating the change relationship curve; Accordingly, the determining the air data currently corresponding to the other detection units based on the air data currently corresponding to the reference detection unit and the corresponding relationship includes: Based on the air data currently corresponding to the reference detection unit and the updated change relationship curve, the air data currently corresponding to the other detection units are determined.

8. The method according to claim 7, characterized in that The step of determining the measurement state deviation of the variation relationship curve based on the actual air data includes: For For each other detection unit, perform the following steps: Determine the Actual air data for other detectors Actual air data with the reference probe unit The target correspondence between the two is measured through the measurement point Characterization; In the change relationship curve Determine the measurement point with The closest target point ; Calculate the target point With the measuring point The deviation between the measured state and the change relationship curve is obtained. ;in, , ; The updating of the change relationship curve by using the measured state deviation comprises: Using the measured state deviation , use the following formula to get the updated change relationship curve : 。 9. An electronic device, characterized in that: The electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data processing method as described in any one of claims 1 to 4, or to implement the steps of the image correction method as described in any one of claims 5 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the data processing method according to any one of claims 1 to 4 are implemented, or the steps of the image correction method according to any one of claims 5 to 8 are implemented.

Citation Information

Patent Citations

  • X-ray image apparatus and device for and method of calibrating an x-ray image apparatus

    CN101460098A

  • Method for updating correction table, method for correcting detection data and safety inspection system

    CN101672805A

  • Radiation inspection apparatus

    CN101957451A

  • CT (computed tomography) image reconstruction method

    CN104077758A

  • Method and device for determining original X-ray energy data, and CT device

    CN108158597A