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

By obtaining scale data in the X-ray security inspection system and determining the corresponding relationship of the detection unit, dynamically updating the air data, the problem of image quality degradation caused by target drift is solved, and dynamic correction of images and efficient security inspection are achieved.

CN120107124BActive Publication Date: 2025-08-12HANGZHOU RAYIN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the X-ray security inspection system, due to the target drift of the ray source, the X-ray intensity received by the detector changes, and the prior art is difficult to achieve dynamic and real-time update of air data, resulting in a decrease in image effect and abnormal fringes.

Method used

By acquiring the scale data of the security checker in different states, determining the correspondence between the reference detection unit and other detection units, dynamically updating the air data for image correction, and using the air data of the reference detection unit to fit the equivalent air data of other detection units.

Benefits of technology

It effectively improves the quality of the output images of the security check machine, avoids image interference, reduces the difficulty of security check, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120107124B_ABST
    Figure CN120107124B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, an image correction method, an electronic device, and a medium, and relates to the field of image processing technology, wherein the data processing method includes: obtaining scale data of a security inspection machine when a radiation source is in different states, the scale data including air data collected by each detection unit of a detector in the security inspection machine when the radiation source is in different states; determining a reference detection unit from the detection units of the detector, the reference detection unit being a 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; based on the scale data, generating a correspondence 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 detection units other than the reference detection unit. The correspondence generated by the present application facilitates the subsequent dynamic updating of the air data of each detection unit, provides accurate correction data, and thereby 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 X-ray security inspection systems, each detector responds differently to X-rays of the same intensity. Furthermore, the X-ray intensities received by each detector vary due to factors such as the distance between the detector and the source and the width of the collimation slit. This phenomenon is typically corrected using linear normalization. This correction involves using the detector's grayscale values when the source is not emitting X-rays, as well as the detector's grayscale values when the source is irradiating the detector with X-rays directly (also known as air data).

[0003] However, during the operation of the security inspection machine, the target drift of the radiation source may occur, causing the direction of the X-rays it emits to shift, and then causing the intensity of the X-rays 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 used during calibration. This deviation will significantly affect the above-mentioned normalization correction effect, thereby reducing the image effect of the image output by the security inspection machine and generating abnormal stripes, which is called a "dirty image".

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

[0005] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is 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 output image of the security inspection machine.

[0007] To achieve the above objectives, the present application proposes a data processing method, which includes:

[0008] Obtaining 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;

[0009] Determining 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 process of the object to be inspected by the security inspection machine;

[0010] 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 ray source is in different states is generated; wherein the other detection units are detection units other than the reference detection unit.

[0011] In an optional embodiment, the step of obtaining the calibration data of the security inspection machine when the radiation source is in different states includes:

[0012] 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;

[0013] Acquire 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 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;

[0014] The first air data and the second air data are used as the scale data.

[0015] In an optional embodiment, 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 by the security inspection machine.

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

[0017] In addition, to achieve the above objectives, the present application also proposes an image correction method, which includes:

[0018] 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; 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 process of the object to be inspected by the security inspection machine;

[0019] 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;

[0020] The scanned image of the object to be inspected is corrected 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.

[0021] In an optional embodiment, the method further includes:

[0022] When 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.

[0023] In an optional embodiment, the corresponding relationship is represented by a change relationship curve;

[0024] 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:

[0025] Acquire actual air data collected by each detection unit before the security inspection machine scans and detects the object to be inspected;

[0026] determining a measurement state deviation of the change relationship curve based on the actual air data;

[0027] Using the measured state deviation, updating the change relationship curve;

[0028] Accordingly, the determining of 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:

[0029] 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.

[0030] In an optional implementation manner, determining the measurement state deviation of the change relationship curve based on the actual air data includes:

[0031] For the For each other detection unit, perform the following steps:

[0032] Determine the Actual air data for other detection units Actual air data with the reference detection unit The target correspondence between the two is measured by measuring the target correspondence between the two points. representation;

[0033] In the change relationship curve Determine the measurement point with The closest target point ;

[0034] Calculate the target point With the measuring point The deviation between the two is used to obtain the measurement state deviation of the change relationship curve. ;in, , ;

[0035] The updating of the change relationship curve by using the measured state deviation comprises:

[0036] Using the measured state deviation , use the following formula to get the updated change relationship curve :

[0037] .

[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a data processing device, which includes:

[0039] A first acquisition module is configured to 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;

[0040] A first determining module is configured to determine a reference detecting unit from the detecting units of the detector, wherein the reference detecting unit refers to a detecting unit that is not blocked by the object to be inspected during the scanning and detecting process of the object to be inspected by the security inspection machine;

[0041] 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 ray source is in different states based on the calibration data; wherein the other detection units are detection units other than the reference detection unit.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes an image correction device, which includes:

[0043] 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;

[0044] a second determining 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;

[0045] The correction module is used to correct the scanned image of the object to be inspected 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.

[0046] 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 on the memory and runnable 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.

[0047] 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 the processor, it implements the steps of the data processing method described above, or implements the steps of the image correction method described above.

[0048] 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.

[0049] One or more technical solutions proposed in this application have at least the following technical effects:

[0050] In order to solve the "dirty image" problem, the present application proposes a target drift phenomenon corresponding to the radiation source, and dynamically and in 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. For situations such as continuous passing 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 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 security inspection machine's radiation source. 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 the dynamically updated air data is used for image correction, which can effectively improve the output image effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] 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.

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

[0053] Figure 1 is a schematic diagram of a dirty graph in the related art;

[0054] Figure 2 This is one of the flow charts of the data processing method provided by this application;

[0055] Figure 3 It is a structural diagram of a security inspection machine in the related art;

[0056] Figure 4 This is the second flow chart of the data processing method provided by this application;

[0057] Figure 5 This is one of the flow charts of the image correction method provided by this application;

[0058] Figure 6This is the second flowchart of the image correction method provided by this application;

[0059] Figure 7 This is the third flow chart of the image correction method provided by this application;

[0060] Figure 8 This is the fourth flowchart of the image correction method provided by this application;

[0061] Figure 9 is a schematic diagram of a change relationship curve in the image correction method provided by this application;

[0062] Figure 10 Schematic diagram comparing the X-ray intensity calculated by the related art and the method provided in this application;

[0063] Figure 11 is a schematic diagram of air data after correction using the image correction method provided in this application;

[0064] Figure 12 It is a structural diagram of the data processing device provided by this application;

[0065] Figure 13 It is a structural schematic diagram of the image correction device provided by this application;

[0066] Figure 14 It is a structural diagram of the electronic device provided in this application.

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

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

[0069] Unless otherwise defined, all technical and scientific terms used in this application have the same meanings as 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.

[0070] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly indicate the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is two or more, unless otherwise specifically defined.

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

[0072] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0073] 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.

[0074] 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).

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

[0076] For the measured grayscale 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. :

[0077] .

[0078] 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 to drift, resulting in the direction of the emitted X-rays to shift, and then causing the intensity of the X-rays received by the detector to change. At this time, the X-ray intensity in the security inspection channel during operation of the security inspection machine 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 related art, such as Figure 1 As shown in the figure, 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. 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 high security inspection difficulty and low efficiency.

[0079] 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 during 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 security inspection efficiency.

[0080] Another related method for dynamically updating the calibration table involves using a sensor to determine that there are no objects in the inspection channel of the security inspection machine and then updating the grayscale value output by the detector with the new air data. However, this method makes it difficult to obtain complete air data for updating when packages continuously pass through the inspection channel, hindering dynamic, real-time updates of air data.

[0081] 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.

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

[0083] The following embodiments of the present application and the following embodiments are described in detail.

[0084] According to one aspect, the present invention provides a data processing method, referring to Figure 2 , Figure 2 This is one of the flow charts of the data processing method provided by this application, which includes steps S201 to S203:

[0085] Step S201, obtaining calibration data of the security inspection machine when the radiation source is in different states;

[0086] 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.

[0087] It should be noted that Figure 3 This is a schematic diagram of the structure of the 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. An object to be inspected can be placed in the security inspection channel 2, and the X-rays can pass through the object to be inspected and irradiate the detector 3. The detector 3 outputs grayscale values to form an image corresponding to the object to be inspected.

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

[0089] In some optional embodiments, 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.

[0090] 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 regarded 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.

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

[0092] It should also be noted that in the process of obtaining 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.

[0093] Step S202, determining a reference detection unit from the detection units of the detector;

[0094] The reference detection unit refers to a 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.

[0095] In some optional embodiments, 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 by the security inspection machine.

[0096] 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 a certain correction accuracy can be guaranteed.

[0097] It should also be noted that the determination of the above-mentioned reference detection units can be determined through a large number of experiments. Detection units that are not easily blocked by the object to be inspected are selected, and the X-rays emitted by the ray source can be directly irradiated onto these reference detection units. The grayscale value 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.

[0098] 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.

[0099] 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 this application does not impose any restrictions on this.

[0100] Step S203, generating a correspondence 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 based on the calibration data;

[0101] The other detection units are detection units other than the reference detection unit.

[0102] 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: .

[0103] 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. For the case of continuous passing 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 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 based on 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, which 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.

[0104] 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:

[0105] Sub-step S2011: acquiring 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.

[0106] 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.

[0107] Sub-step S2012, obtaining 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;

[0108] 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.

[0109] It should be noted that the aforementioned second time period can be set based on actual conditions. The second time period is later than the first time period, meaning that the second air data is collected some time after the first air data is acquired. During the period from the first time period after the ray source is turned on to the second time period, the ray source is always 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. Acquiring air data collected by each detection unit at different temperatures facilitates the subsequent fitting and generation of the corresponding relationship between the air data of the reference detection unit and the air data of the other detection units when the ray source is in different states.

[0110] 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 required for collection and subsequent fitting of the corresponding relationship can be effectively reduced.

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

[0112] 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.

[0113] 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 this application, which includes steps S501 to S503:

[0114] Step S501, obtaining the corresponding relationship between the air data of the reference detection unit and the air data of other detection units in the security inspection machine when the radiation source is in different states;

[0115] In which, 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 process of the object to be inspected by the security inspection machine.

[0116] Step S502 : 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.

[0117] Step S503, correcting the scanned image of the object to be inspected using the air data currently corresponding to the reference detection unit and the air data currently corresponding to the other detection units;

[0118] The scanned image is obtained by the security inspection machine scanning and detecting the object to be inspected.

[0119] 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 corresponding air data of other detection units can be determined based on the current corresponding air data of the reference detection unit and the corresponding relationship, and the air data can be 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 and is convenient for security inspection by security personnel.

[0120] In an embodiment of the present application, a method for image correction is provided, in which the corresponding relationship between the X-ray intensity received by the reference detection unit and the other detection units is first obtained. 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 equate the air data currently corresponding to the 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 it receives can be used as a reference for air data most of the time to indicate the current state of the security inspection machine's radiation source. Then, based on the corresponding relationship generated by fitting, the air data equivalent to the other detection units that are currently blocked by the object to be inspected when they are not blocked by the object to be inspected is determined, which facilitates dynamic and real-time updating of the air data, and then image correction is performed using the dynamically updated air data, which can effectively improve the output image effect.

[0121] 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 5 On 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:

[0122] Step S504 : When 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.

[0123] 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 correspondence, 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.

[0124] In some optional embodiments, if it is detected that the reference detection unit is blocked by the object to be detected, 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 detected, thereby ensuring the accuracy of the air data.

[0125] In some optional embodiments, for the reference detection unit and other detection units, the corresponding air data is determined as follows:

[0126] 1) For the reference detection unit, obtain the grayscale value output by the reference detection unit when it is not blocked by the object to be detected, and update it as the current air data corresponding to the reference detection unit.

[0127] 2) For other detection units, there are two cases:

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

[0129] <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 can be compared with the corresponding relationship to determine the current air data corresponding to other detection units (indirect measurement).

[0130] 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 7 As shown, the corresponding relationship is represented by a change relationship curve; before the above step S502, steps S505 to S507 are also included:

[0131] Step S505 : obtaining actual air data collected by each detection unit before the security inspection machine scans and detects the object to be inspected.

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

[0133] Step S507: using the measured state deviation, update the change relationship curve.

[0134] Accordingly, the above step S502 includes step S502-1:

[0135] Step S502 - 1 : 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 updated change relationship curve.

[0136] Specifically, before the security inspection machine scans and detects the object to be inspected, the pre-acquired change relationship curve can be corrected based on the pre-measured actual air data to make the change relationship curve more closely match the actual situation of the current security inspection machine. Specifically, the actual air data collected by each detection unit of the security inspection machine before scanning and detecting the object to be inspected is first obtained. Based on this actual air data, the measurement state deviation of the change relationship curve is determined. The measurement state deviation is then used to update the change relationship curve. Subsequently, during the actual inspection process of the security inspection machine, the updated change relationship curve can be used for image correction, which improves the effect of the correction image to a certain extent.

[0137] In some optional embodiments, a specific implementation method for 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:

[0138] For the For each other detection unit, perform the following steps:

[0139] Determine the Actual air data for other detection units Actual air data with the reference detection unit The target correspondence between the two is measured by measuring the target correspondence between the two points. representation;

[0140] In the change relationship curve Determine the measurement point with The closest target point ;

[0141] Calculate the target point With the measuring point The deviation between the two is used to obtain the measurement state deviation of the change relationship curve. ;in, , ;

[0142] Accordingly, the above step S502-1 includes the following steps:

[0143] Using the measured state deviation , use the following formula to get the updated change relationship curve :

[0144] .

[0145] Specifically, consider measuring the state deviation The subsequent change relationship curve is:

[0146] ;

[0147] By shifting the terms, we can get the relationship curve considering the variation of the measurement state deviation. .

[0148] It should be noted that when the change relationship curve is a nonlinear curve, the target point Take the original curve The deviation of the nearest point to the offset; in the case of a linear curve, the curve can be updated more simply, taking the same or In this case, you can take a or The offset of the measured state is used as the deviation of the measured state .

[0149] The following example illustrates the image correction method provided by the embodiment of the present application. For a security inspection machine, this method first calibrates the air data of each detection unit when the temperature of its radiation source changes from cold to hot, selects a detection unit whose edge is not easily passed by a package as a reference detection unit, obtains a curve showing the relationship between the grayscale value of the reference detection unit and the grayscale values 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 the 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.

[0150] 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:

[0151] Step S801, experimental calibration.

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

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

[0154] Step S804: Correct the scanned image in real time.

[0155] Step S805 : Before passing the packet, a correction table for correction is collected, the measurement state deviation is calculated, and the change relationship curve is updated.

[0156] Step S806: Determine whether the reference detection unit is blocked by the object to be detected. If so, proceed to step S807; if not, proceed to step S808.

[0157] Step S807: Do not update the air data.

[0158] 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.

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

[0160] Step S8010: Output the corrected scanned image for other image processing.

[0161] Specifically, the method of this application is mainly divided into the following parts:

[0162] 1) Experimental scale:

[0163] After the optical path system 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.

[0164] 2) Data Analysis:

[0165] Select a detection unit that has basically no overpacking as the reference detection unit. The change of its grayscale value corresponds to the state of the radiation source. Draw a scatter plot of the relationship between the grayscale 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: .

[0166] Figure 9 is a schematic diagram of the change relationship curve in the image correction method provided by this application, such as Figure 9As shown in the figure, taking 16 detection pixels as an example detection unit, the relationship scatter plot of the grayscale values of four other detection units and the reference detection unit is shown, along with the variation relationship curve generated by fitting. The horizontal axis of the figure 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 variation relationship curve generated by fitting and the experimentally obtained relationship scatter plot generally follow the same trend, that is, the variation relationship curve generated by fitting can well represent the relationship between the grayscale values of the other detection units and the reference detection unit.

[0167] 3) Real-time correction of scanned images:

[0168] 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 . Measuring point and change relationship curve The deviation is recorded as . Combined , the changing relationship curve in this state is:

[0169] ;

[0170] After shifting the terms, we get:

[0171] .

[0172] in, , .

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

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

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

[0176] .

[0177] Figure 10 This is a comparative diagram of the X-ray intensity calculated in the related art and the method provided in this application, such as Figure 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 using the method of the present application can better represent the real air data of the other detection units.

[0178] Figure 11 This is a schematic diagram of the air data after correction by the image correction method provided by this application, combined with Figure 1 and Figure 11 As shown, by comparison, Figure 11 The left side of the middle image shows an image when the security inspection machine has just started running and no abnormal stripes appear. 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 this application. The background corresponding to the air data is clean white, making it easier to display the packages in the security inspection channel.

[0179] The embodiment of the present application uses experimental calibration to calibrate the changes in the 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 enables the security inspection machine to update the accurate correction data required for its image processing in real time during long-term continuous operation, effectively eliminating the dirty image phenomenon caused by the difference between the actual light intensity and the light intensity in the image processing correction process, and ensuring its image quality.

[0180] 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.

[0181] The present application also provides a data processing device, Figure 12 This is a schematic diagram of the structure of the data processing device provided by this application. Figure 12 As shown, the data processing device includes:

[0182] The first acquisition module 1201 is configured to 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;

[0183] A first determining module 1202 is configured to determine a reference detecting unit from the detecting units of the detector, wherein the reference detecting unit refers to a detecting unit that is not blocked by the object to be inspected during the scanning and detecting process of the object to be inspected by the security inspection machine;

[0184] 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 ray source is in different states based on the calibration data; wherein the other detection units are detection units other than the reference detection unit.

[0185] The data processing device provided in this application, utilizing the data processing method described in the aforementioned embodiments, can address the technical problem of improving the quality of images output by security inspection machines. Compared to the prior art, the data processing device provided in this application achieves the same beneficial effects as the data processing method described in the aforementioned embodiments. Other technical features of the data processing device are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.

[0186] This application also provides an image correction device, Figure 13 This is a schematic diagram of the structure of the image correction device provided by this application. Figure 13 As shown, the image correction device includes:

[0187] 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 process of the object to be inspected by the security inspection machine;

[0188] A second determining module 1302 is 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;

[0189] The correction module 1303 is used to correct the scanned image of the object to be inspected 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.

[0190] The image correction device provided in this application, utilizing the image correction method described in the aforementioned embodiments, can address the technical problem of improving the quality of images output by security inspection machines. Compared to the prior art, the image correction device provided in this application achieves the same beneficial effects as the image correction method described in the aforementioned embodiments. Other technical features of the image correction device are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.

[0191] 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 that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the data processing method or image correction method in the above-mentioned embodiment.

[0192] Reference below Figure 14 , Figure 14 is a schematic diagram of the structure of an electronic device provided in the present application, which illustrates a schematic diagram of the structure of an 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), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 14 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0193] like Figure 14As shown, the electronic device may include a processing device 1401 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1402 or programs loaded from a storage device 1403 into a random access memory (RAM) 1404. RAM 1404 also stores various programs and data required for the operation of the electronic device. Processing device 1401, ROM 1402, and RAM 1404 are interconnected via a bus 1405. An input / output (I / O) interface 1406 is also connected to the bus. Typically, the following systems may be connected to I / O interface 1406: input devices 1407, such as a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1408, such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 1403, such as a magnetic tape or hard disk; and 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 instead.

[0194] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising 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 via 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.

[0195] The electronic device provided in this application, utilizing the data processing method or image correction method described in the aforementioned embodiments, can address the technical problem of improving the quality of images output by security inspection machines. Compared to the prior art, the electronic device provided in this application achieves the same beneficial effects as the data processing method or image correction method described in the aforementioned embodiments. Other technical features of this electronic device are the same as those disclosed in the aforementioned optional implementation method and are not further elaborated here.

[0196] It should be understood that the various parts disclosed in this application can be implemented using 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.

[0197] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0198] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) 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.

[0199] The computer-readable storage medium provided herein 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 thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including, but not limited to, wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

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

[0201] 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:

[0202] Obtaining 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;

[0203] Determining 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 process of the object to be inspected by the security inspection machine;

[0204] 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 ray source is in different states is generated; wherein the other detection units are detection units other than the reference detection unit.

[0205] Alternatively, perform the following steps:

[0206] 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; 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 process of the object to be inspected by the security inspection machine;

[0207] 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;

[0208] The scanned image of the object to be inspected is corrected 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.

[0209] 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 stand-alone 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 via 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).

[0210] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of 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 box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0211] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0212] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned data processing method or image correction method. This computer-readable storage medium can address the technical problem of improving the quality of images output by security inspection machines. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are similar to those of the data processing method or image correction method provided in the aforementioned embodiments, and are not further elaborated here.

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

[0214] The computer program product provided in this application can solve the technical problem of improving the image quality of images output by security inspection machines. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the data processing method or image correction method provided in the above embodiments, and will not be elaborated here.

[0215] The above description is only part of the embodiments of the present application and does not limit the scope of protection of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the scope of protection of the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Obtaining 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; Determining 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 process of the object to be inspected by the security inspection machine; 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; wherein the other detection units are detection units other than the reference detection unit; The corresponding relationship is used to determine that the other detection units currently blocked by the object to be detected are equivalent to the air data when they are not blocked by the object to be detected; 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 within 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.

2. The method according to claim 1, wherein 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.

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

4. An image correction method, characterized in that: The method comprises: 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; 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 process of the object to be inspected by the security inspection machine; 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; wherein the corresponding relationship is obtained based on the data processing method according to any one of claims 1 to 3; The scanned image of the object to be inspected is corrected 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.

5. The image correction method according to claim 4, wherein: The method further comprises: When 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.

6. The image correction method according to claim 4 or 5, wherein: The corresponding relationship is represented by 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; determining a measurement state deviation of the change relationship curve based on the actual air data; Using the measured state deviation, updating the change relationship curve; Accordingly, the determining of 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.

7. The image correction method according to claim 6, wherein: The determining, based on the actual air data, a measurement state deviation of the change relationship curve includes: For the For each other detection unit, perform the following steps: Determine the Actual air data for other detection units Actual air data with the reference detection unit The target correspondence between the two is measured by measuring the target correspondence between the two points. representation; 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 two is used to obtain the measurement state deviation of the change relationship curve. ;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 : 。 8. 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 according to any one of claims 1 to 3, or to implement the steps of the image correction method according to any one of claims 4 to 7.

9. 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 3 are implemented, or the steps of the image correction method according to any one of claims 4 to 7 are implemented.

Citation Information

Patent Citations

  • CT (computed tomography) image reconstruction method

    CN104077758A

  • Computed tomography system and computed tomography scanned image generating method

    CN109480891A

  • CT machine data optimization method

    CN115474957A

  • Detector for imaging system

    CN117331110A

  • Security check image processing method and computer program product

    CN119880961A