Detection method and device of scanning area, equipment and medium
By calculating the signal evaluation value of the scanning area in CT scanning technology, and eliminating channel response deviations, the false alarm problem caused by objects in CT scanning is solved, the detection accuracy and sensitivity are improved, and the accuracy of the scanning area is ensured.
Patent Information
- Application Number
- CN202411388916.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-07
AI Technical Summary
In CT scanning technology, the artifact problems caused by unnecessary objects in the scanning area during the generation of the air calibration table, and existing detection methods may generate false alarms due to channel response differences, and relaxing the detection threshold will reduce the sensitivity of object detection.
The scanning device scans the scanning area, obtains the original scanning data, calculates the average value of the channel data of each scanning module in each projection direction, and calculates the signal evaluation value based on these averages, eliminates the channel response deviation, and is based on the object's The attenuation signal is detected.
Reduce false alarms caused by channel response differences, improve detection accuracy and sensitivity, avoid unnecessary downtime and equipment replacement, and improve system reliability.
Smart Images

Figure CN119257627A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the medical field, and in particular to a method, device, equipment and medium for detecting a scanning area. Background Art
[0002] In CT (Computed Tomography) scanning technology, the air calibration table is used to calibrate the original scan data to obtain the correct attenuation signal of the object. During the process of generating the air calibration table, if there are unwanted objects in the scanning area, the generated calibration table may be damaged, resulting in artifacts in the image generated by the subsequent data calibrated with the calibration table.
[0003] To avoid this problem, object detection is usually performed before generating an air calibration table. However, existing detection methods may produce false alarms due to differences in channel responses. Although relaxing the detection threshold can reduce false alarms, this will reduce the sensitivity of object detection. Therefore, how to confirm whether there is an object in the scanning area before generating an air calibration table and prevent false alarms is an urgent problem to be solved. Summary of the invention
[0004] The object of the present invention is to provide a method, device, equipment and medium for detecting a scanning area, which can confirm whether there is an object in the scanning area.
[0005] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:
[0006] The present invention provides a method for detecting a scanning area, comprising:
[0007] Scanning the scanning area by means of a scanning device to obtain raw scanning data; wherein the scanning device comprises a plurality of scanning modules arranged in series, the scanning modules comprise a plurality of scanning channels arranged in an array, and the raw scanning data comprises channel data of all scanning channels in different projection directions;
[0008] According to the original scanning data, respectively calculating the average value of the channel data of each scanning module in each projection direction;
[0009] Calculate the abnormal signals of all the scanning channels according to the original scanning data and the average value of the channel data of each scanning module in each projection direction, and generate corresponding signal evaluation values;
[0010] The signal evaluation value is compared with a threshold value to detect the scanning area.
[0011] In one embodiment of the present invention, the step of respectively calculating the average value of the channel data of each scanning module in each projection direction according to the original scanning data comprises:
[0012] Extracting channel data of all scanning modules in each projection direction from the original scanning data;
[0013] The extracted channel data of all scanning modules under each of the projection directions are split according to the scanning modules;
[0014] According to the split channel data, the average value of the channel data of each scanning module in each projection direction is calculated.
[0015] In one embodiment of the present invention, the step of calculating the abnormal signals of all the scanning channels according to the original scanning data and the average value of the channel data of each scanning module in each projection direction and generating the corresponding signal evaluation value comprises:
[0016] Calculate the deviation value of each scanning channel in each projection direction according to the channel data of each scanning channel in each projection direction and the average value of the channel data of the scanning module where the scanning channel is located in each projection direction;
[0017] According to the deviation value of each scanning channel in each projection direction, calculating the average value of the deviation value of each scanning channel in all projection directions;
[0018] Calculate the difference between the deviation value of each scanning channel in each projection direction and the average value of the deviation values of the scanning channel in all projection directions as the abnormal signal of each scanning channel;
[0019] According to the abnormal signal of each scanning channel, the average value of the abnormal signal of the scanning channel in the row direction is calculated respectively as the signal evaluation value.
[0020] In one embodiment of the present invention, the step of calculating the deviation value of each scanning channel in each projection direction according to the channel data of each scanning channel in each projection direction and the average value of the channel data of the scanning module where the scanning channel is located in each projection direction comprises:
[0021] Extracting channel data of all scanning channels in each projection direction from the original scanning data;
[0022] Extracting an average value of channel data of scanning modules where all the scanning channels are located in each of the projection directions;
[0023] The deviation value of each scanning channel in each projection direction is calculated according to the channel data of each scanning channel and the average value of the channel data of the scanning module where the scanning channel is located.
[0024] In one embodiment of the present invention, the step of calculating the average value of the deviation value of each scanning channel in all projection directions according to the deviation value of each scanning channel in each projection direction comprises:
[0025] Extracting deviation values of all scanning channels under each of the projection directions;
[0026] The extracted deviation values of all scanning channels under each of the projection directions are split according to the scanning channels;
[0027] According to the separated deviation values, the average value of the deviation values of each scanning channel in all projection directions is calculated.
[0028] In one embodiment of the present invention, the step of calculating the difference between the deviation value of each scanning channel in each projection direction and the average value of the deviation values of the scanning channel in all projection directions as the abnormal signal of each scanning channel includes:
[0029] Extracting deviation values of all scanning channels under each of the projection directions;
[0030] Extracting an average value of the deviation values of each scanning channel in all projection directions;
[0031] According to the deviation values of all scanning channels in each of the projection directions and the average value of the deviation values of the scanning channel in all the projection directions, the abnormal signal of each of the scanning channels in each of the projection directions is calculated.
[0032] In one embodiment of the present invention, the step of calculating the average value of the abnormal signal of each scanning channel in the row direction according to the abnormal signal of each scanning channel as the signal evaluation value includes:
[0033] Extracting abnormal signals of all scanning channels in each of the projection directions;
[0034] The average value of the abnormal signals of all the scanning channels in the row direction is calculated as the signal evaluation value.
[0035] The present invention also provides a scanning area detection device, comprising:
[0036] A scanning module, used to scan the scanning area through a scanning device to obtain raw scanning data; wherein the scanning device includes a plurality of scanning modules arranged in series, the scanning module includes a plurality of scanning channels arranged in an array, and the raw scanning data includes channel data of all scanning channels in different projection directions;
[0037] A calculation module, used for respectively calculating the average value of the channel data of each scanning module in each projection direction according to the original scanning data;
[0038] an evaluation module, configured to calculate abnormal signals of all the scanning channels according to the original scanning data and an average value of channel data of each scanning module in each projection direction, and generate corresponding signal evaluation values; and
[0039] The judgment module is used to compare the signal evaluation value with a threshold value to detect the scanning area.
[0040] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the steps of the scanning area detection method are implemented when the processor executes the computer program.
[0041] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for detecting a scanning area are implemented.
[0042] As described above, the present invention provides a method, device, equipment and medium for detecting a scanning area, which eliminates false alarms caused by channel response differences, relies only on the attenuation signal of the object for detection, reduces detection errors caused by response differences of the equipment itself, and ensures the accuracy of detection. By eliminating channel response deviations and detecting objects only based on the attenuation signal of the object, false alarms are basically avoided, thereby reducing unnecessary downtime, troubleshooting and equipment replacement, and improving the reliability of the system. While eliminating channel response deviations, high sensitivity to the object's attenuation signal is maintained. This means that even for smaller objects or slight changes in the attenuation signal, the detection system can still accurately identify them, ensuring the sensitivity and accuracy of the detection.
[0043] Of course, any product implementing the present invention does not necessarily need to achieve all of the above advantages at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0045] Figure 1 is a flow chart of a method for detecting a scanning area in one embodiment of the present invention;
[0046] Figure 2 is a two-dimensional schematic diagram of signal evaluation values in a scanning area without an object placed therein in one embodiment of the present invention;
[0047] Figure 3 is a signal evaluation value in an embodiment of the present invention in which no object is placed in the scanning area;
[0048] Figure 4 It is a two-dimensional schematic diagram of signal evaluation values when a PMMA strip with a diameter of 4 cm is placed in a scanning area in one embodiment of the present invention;
[0049] Figure 5 is a signal evaluation value of placing a 4 cm diameter PMMA strip in the scanning area in one embodiment of the present invention;
[0050] Figure 6 It is a two-dimensional schematic diagram of signal evaluation values when a 20 cm water phantom is placed in the scanning area in one embodiment of the present invention;
[0051] Figure 7 is a signal evaluation value of a 20 cm water phantom placed in the scanning area in one embodiment of the present invention;
[0052] Figure 8 A schematic diagram of a detection device for a scanning area according to an embodiment of the present invention;
[0053] Fig. 9 FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention.
[0054] In the figure: 100, scanning module; 200, calculation module; 300, evaluation module; 400, judgment module; 1, electronic device; 12, memory; 13, processor. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] See also Figure 1 The present invention provides a method for detecting a scanning area, which can be applied to medical imaging (such as CT scanning) equipment to detect the scanning area in advance before generating an air calibration table to determine whether there is an object in the scanning area. The air calibration table is a set of data used to calibrate the scanning device. These data record the response of the scanning device to the signal in the absence of an object, and are used as a benchmark to correct the deviation of the device during the scanning process. The detection method may include the following steps:
[0057] Step S10, scanning the scanning area by means of a scanning device to obtain raw scanning data; wherein the scanning device comprises a plurality of scanning modules, the scanning modules comprise scanning channels arranged in an array, and the raw scanning data comprises channel data of all scanning channels in different projection directions;
[0058] Step S20, calculating the average value of the channel data of each scanning module in each projection direction according to the original scanning data;
[0059] Step S30, calculating the abnormal signals of all scanning channels according to the original scanning data and the average value of the channel data of each scanning module in each projection direction, and generating corresponding signal evaluation values;
[0060] Step S40: Compare the signal evaluation value with the threshold value to detect the scanning area.
[0061] In one embodiment, when executing step S10, the scanning device is specifically a CT scanning device. The CT scanning device can be composed of multiple independent scanning modules. Each scanning module is an acquisition unit. By arranging and combining multiple scanning modules in a specific manner, a complete CT scanner can be formed.
[0062] In one embodiment, each scanning module may contain multiple scanning channels. Multiple scanning channels may be arranged in an array. The number of rows in each scanning module may be equal, and a row refers to scanning channels arranged in the same row in the scanning module. The scanning channel is a key part for detecting and collecting X-ray information. The scanning channel refers to different detector units in the CT scanning device, which are responsible for receiving X-rays passing through objects such as human bodies and water phantoms to be imaged. During scanning, each scanning channel receives and processes part of the attenuation information of the X-rays. Different scanning channels may have different responses, so calibration is required to ensure that the information given by all channels is accurate.
[0063] In one embodiment, when there is no object in the scanning area, the CT scanning device will collect raw scanning data. The purpose of this step is to record the X-ray intensity that each scanning channel should receive when there is no object.
[0064] In one embodiment, in an actual scan, the scanning module rotates around the scanning area and exposes the scanning area multiple times to scan the scanning area from different angles. Each exposure generates a set of projection data, which reflects the attenuation of the X-rays after passing through the object. All the projection data generated during a scan can form a three-dimensional matrix. This three-dimensional matrix not only contains information on the spatial dimension, but also includes data obtained from multiple angles. The three dimensions of the matrix can be the spatial information of the detector, such as scanning channels, row coordinates, and different projection directions. The three-dimensional data matrix can be regarded as a complete data set formed after the scanning area is scanned in different projection directions.
[0065] In one embodiment, the projection data generated under different projection directions are collected into n groups, each group of projection data corresponds to the projection information collected by the scanning module from a specific angle. Each projection data is essentially a two-dimensional matrix. This two-dimensional matrix reflects the attenuation distribution of the X-ray after passing through the object under the projection direction. The rows and columns of each matrix correspond to the signal strength received by the scanning channel in the scanning area.
[0066] In one embodiment, in a certain projection direction, when multiple scanning modules scan the scanning area, different sub-projection data can be generated. Each scanning module can correspond to one sub-projection data. Multiple sub-projection data can be combined to form one projection data. Since each scanning module can include scanning channels arranged in an array, each scanning channel can generate one channel data. At this time, multiple channel data generated by multiple scanning channels of the scanning module can form one sub-projection data.
[0067] In one embodiment, when step S20 is executed, specifically, step S20 may include the following steps:
[0068] Step S21, extracting channel data of all scanning modules in each projection direction from the original scanning data;
[0069] Step S22, splitting the extracted channel data of all scanning modules in each projection direction according to the scanning modules;
[0070] Step S23: Calculate the average value of the channel data of each scanning module in each projection direction according to the split channel data.
[0071] In one embodiment, when executing step S21, step S22, and step S23, specifically, in CT scanning, the scanning channels can receive X-ray signals respectively and generate corresponding channel data. In a certain projection direction, the channel data of all scanning channels in each scanning module are first averaged to calculate the average value of the channel data of each scanning module. The average value refers to the average value of the channel data of all scanning channels in a scanning module in a certain projection direction.
[0072] In one embodiment, under a certain projection direction r, the average value mean(k,l,r) of the channel data of all scanning channels in the scanning module corresponding to the channel (k,l) can be expressed as: MEAN(k,l,r)=mean(mean(raw ori (ceil(k / m-1)×m+1:ceil(k / m)×m,:,r),1),2). Wherein, mean means averaging. ceil means rounding up. For example, when its internal calculation result is 0.5, its final calculation result can be 1; for another example, when its internal calculation result is 1.1, its final calculation result can be 2. k represents a scanning channel in a row of the detector. l represents a row. r represents a projection direction. m represents the number of scanning channels in a row of a scanning module. mean(A,1) means averaging A in the first dimension (the dimension of the scanning channel). mean(A,2) means averaging A in the second dimension (the dimension of the row direction). ceil(k / m-1)×m:ceil(k / m)×m:r represents the three dimensions of the raw scanning data, ceil(k / m-1)×m represents the dimension of the scanning channel, ceil(k / m)×m represents the dimension in the row direction, and r represents the dimension in the projection direction. raw ori Represents the original scanning data, that is, the channel data of all scanning channels of all scanning modules in all projection directions.
[0073] In one embodiment, after the calculation of the average value of the channel data of the scanning channels in a scanning module in a certain projection direction is completed, the average value of the channel data of the scanning channels in other scanning modules can be continued to be completed in the projection direction until the calculation of the average value of the channel data of the scanning channels in all scanning modules in the certain projection direction is completed and the corresponding average value is obtained. Subsequently, the average value of the channel data of the scanning channels in each scanning module can be calculated in turn in other projection directions to obtain the corresponding average value.
[0074] In one embodiment, when step S30 is executed, specifically, step S30 may include the following steps:
[0075] Step S31, calculating the deviation value of each scanning channel in each projection direction according to the channel data of each scanning channel in each projection direction and the average value of the channel data of the scanning module where the scanning channel is located in each projection direction;
[0076] Step S32, calculating the average value of the deviation values of each scanning channel in all projection directions according to the deviation value of each scanning channel in each projection direction;
[0077] Step S33, calculating the difference between the deviation value of each scanning channel in each projection direction and the average value of the deviation values of the scanning channel in all projection directions as the abnormal signal of each scanning channel;
[0078] Step S34: Calculate the average value of the abnormal signal of each scanning channel in the row direction according to the abnormal signal of each scanning channel as the signal evaluation value.
[0079] In one embodiment, when step S31 is executed, specifically, step S31 may include the following steps:
[0080] Step S311, extracting channel data of all scanning channels in each projection direction from the original scanning data;
[0081] Step S312, extracting the average value of the channel data of the scanning modules where all the scanning channels are located in each projection direction;
[0082] Step S313: Calculate the deviation value of each scanning channel in each projection direction according to the channel data of each scanning channel and the average value of the channel data of the scanning module where the scanning channel is located.
[0083] In one embodiment, after obtaining the average value, the deviation between the original scan data and all the average values can be calculated, thereby calculating the deviation caused. The deviation reflects the difference between the original scan data of the signal and all the average values.
[0084] In one embodiment, when executing step S311, step S312 and step S313, specifically, first, under a certain projection direction, the deviation value between the channel data of each scanning channel and the corresponding average value can be calculated in turn. Then, under other projection directions, the deviation value between the channel data of each scanning channel and the corresponding data average value can be calculated in turn. Finally, all the deviation values can be aggregated and expressed as: deviation = raw ori -MEAN. MEAN means that the channel data of each scanning channel under all projections is replaced by the average value of the channel data of the corresponding scanning module under the corresponding projection.
[0085] In one embodiment, when step S32 is executed, specifically, step S32 may include the following steps:
[0086] Step S321, extracting the deviation values of all scanning channels in each projection direction;
[0087] Step S322, splitting the extracted deviation values of all scanning channels under each projection direction according to the scanning channels;
[0088] Step S323: Calculate the average value of the deviation values of each scanning channel in all projection directions according to the separated deviation values.
[0089] In one embodiment, when executing step S321, step S322, and step S323, specifically, first, the average value of the deviation value of a certain scanning channel in all projection directions may be calculated. Then, the average values of the deviation values of other scanning channels in all projection directions may be calculated respectively. Finally, all the average values may be collected and expressed as: mean(deviation,3). Wherein, mean(A,3) means that A is averaged in the third dimension (the dimension of the projection direction).
[0090] In one embodiment, when step S33 is executed, specifically, step S33 may include the following steps:
[0091] Step S331, extracting the deviation values of all scanning channels in each projection direction;
[0092] Step S332, extracting the average value of the deviation values of each scanning channel in all projection directions;
[0093] Step S333: Calculate the abnormal signal of each scanning channel in each projection direction according to the deviation values of all scanning channels in each projection direction and the average value of the deviation values of the scanning channel in all projection directions.
[0094] In one embodiment, when executing step S331, step S332 and step S333, specifically, first, the difference between the deviation value of each scanning channel and the corresponding average value can be calculated in a certain projection direction as the abnormal signal of the scanning channel. Then, the difference between the deviation value of each scanning channel and the corresponding average value can be calculated in other projection directions as the abnormal signal of the corresponding scanning channel. Finally, all abnormal signal signals can be abnorman Collect, expressed as: signal abnorman = deviation-deviation mean , deviation mean =mean(deviation,3).
[0095] In one embodiment, when step S34 is executed, specifically, step S34 may include the following steps:
[0096] Step S341, extracting abnormal signals of all scanning channels in each projection direction;
[0097] Step S342: Calculate the average value of the abnormal signals of all scanning channels in the row direction as the signal evaluation value.
[0098] In one embodiment, when executing step S341 and step S342, after obtaining an abnormal signal, the abnormal signal can be averaged in the row direction to generate a signal evaluation value, which is expressed as: signal = mean (signal abnorman ,2).,The signal evaluation value can be used to finally determine whether there is an object in the ,scanning area.
[0099] In one embodiment, when executing step S40, specifically, after obtaining the signal evaluation value, the signal evaluation value can be compared with a predefined threshold. The size of the threshold can be set according to actual needs, and can be 30GU, 40GU, 50GU, etc. If the signal evaluation value is greater than or equal to the threshold, a warning message can be issued: there is an object in the scanning area. If the signal evaluation value is less than the threshold, it can indicate that there is no object in the scanning area.
[0100] See also Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7In one embodiment, the above detection method is tested under different scanning conditions, for example, no object (signal_air), a 4 cm diameter PMMA bar (signal_4cm PMMA bar), and a 20 cm water phantom (signal_20cm water phantom) are placed in the scanning area. Through these different scenarios, the performance of the method in detecting different objects can be evaluated, especially how it copes with the X-ray attenuation of different substances. Wherein, W represents the window width, which refers to the total width of the pixel value range displayed by the image. C represents the window position (Window Center), which refers to the center value or midpoint of the pixel value range displayed by the image. W:50 represents the grayscale range of the CT image, which is also the range of the displayed pixel values. The window width is 50, which means that the displayed pixel value range is 50 units (GU). C:0 represents the center value of the CT image, which is also the midpoint of the grayscale range. The window position is 0, which means that the center value is at 0. At this time, the midpoint of the pixel value of the image is at 0, and the grayscale range is 25 units to the left and right of the center value (i.e., -25 to +25). Channel indicates the number of scanning channels in a row. The scanning channels in a row refer to the scanning channels arranged in the same row in the array among all scanning modules.
[0101] In one embodiment, the stripes in the scan area shown in the signal are caused by the gaps in the window strips. Although the effect of the stripes is negligible, they can still be detected, which shows that the detection method is very sensitive to the attenuation in the scan area and can accurately capture very subtle signal changes. The higher the sensitivity, the more the detection method can reflect the slight attenuation changes of the object to the X-ray.
[0102] In one embodiment, when there is no object in the scanning area, the air scanning result is displayed. This can be used as a reference signal to detect the performance of the device in the absence of an object. When a 4 cm diameter PMMA (Polymethyl Methacrylate) strip is placed in the scanning area, the detection effect of the method on smaller objects can be tested. When a 20 cm water phantom is placed in the scanning area, the water phantom is usually used to simulate human tissue. The 20 cm water phantom represents a larger volume object, and the detection effect of the method when dealing with larger objects can be tested. Among them, the red dotted line in the figure represents a predefined threshold T = 40GU. In the scanning results, this threshold is used to determine whether the signal strength exceeds a certain standard, thereby detecting the presence of an object. If the detection signal exceeds this threshold, it means that the device has detected the object. This predefined threshold is to distinguish between objects and background noise signals to ensure that the object can be accurately identified.
[0103] It can be seen that in the above scheme, false alarms caused by channel response differences are eliminated, and detection is performed only based on the attenuation signal of the object, which reduces detection errors caused by response differences of the equipment itself and ensures the accuracy of detection. By eliminating channel response deviations and detecting objects only based on their attenuation signals, false alarms are basically avoided, thereby reducing unnecessary downtime, troubleshooting and equipment replacement, and improving the reliability of the system. While eliminating channel response deviations, high sensitivity to the object's attenuation signal is maintained. This means that even small objects or slight changes in the attenuation signal can still be accurately identified by the detection system, ensuring the sensitivity and accuracy of detection.
[0104] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0105] See also Figure 8 The present invention also provides a detection device for a scanning area, which corresponds to the detection method in the above embodiment. The detection device may include a scanning module 100, a calculation module 200, an evaluation module 300 and a judgment module 400.
[0106] In one embodiment, the scanning module 100 can be used to scan the scanning area through a scanning device to obtain raw scanning data; wherein the scanning device includes multiple scanning modules, the scanning module includes scanning channels arranged in an array, and the raw scanning data includes channel data of all scanning channels under different projection directions.
[0107] In one embodiment, the calculation module 200 may be used to calculate the average value of the channel data of each scanning module in each projection direction according to the original scanning data.
[0108] In one embodiment, the calculation module 200 can be specifically used to extract the channel data of all scanning modules in each projection direction from the original scanning data; split the extracted channel data of all scanning modules in each projection direction according to the scanning modules; and calculate the average value of the channel data of each scanning module in each projection direction based on the split channel data.
[0109] In one embodiment, the evaluation module 300 may be used to calculate abnormal signals of all scanning channels according to the original scanning data and the average value of the channel data of each scanning module in each projection direction, and generate corresponding signal evaluation values.
[0110] In one embodiment, the evaluation module 300 can be specifically used to calculate the deviation value of each scanning channel in each projection direction according to the channel data of each scanning channel in each projection direction and the average value of the channel data of the scanning module where the scanning channel is located in each projection direction; calculate the average value of the deviation value of each scanning channel in all projection directions according to the deviation value of each scanning channel in each projection direction; calculate the difference between the deviation value of each scanning channel in each projection direction and the average value of the deviation value of the scanning channel in all projection directions as the abnormal signal of each scanning channel; calculate the average value of the abnormal signal of the scanning channel in the row direction according to the abnormal signal of each scanning channel as the signal evaluation value.
[0111] In one embodiment, the evaluation module 300 can also be specifically used to extract channel data of all scanning channels in each projection direction from the original scanning data; extract the average value of the channel data of the scanning modules where all scanning channels in each projection direction are located; and calculate the deviation value of each scanning channel in each projection direction based on the channel data of each scanning channel and the average value of the channel data of the scanning module where the scanning channel is located.
[0112] In one embodiment, the evaluation module 300 can also be specifically used to extract the deviation values of all scanning channels under each projection direction; split the extracted deviation values of all scanning channels under each projection direction according to the scanning channels; and calculate the average value of the deviation values of each scanning channel under all projection directions based on the split deviation values.
[0113] In one embodiment, the evaluation module 300 can also be specifically used to extract the deviation values of all scanning channels in each projection direction; extract the average value of the deviation values of each scanning channel in all projection directions; and calculate the abnormal signal of each scanning channel in each projection direction based on the deviation values of all scanning channels in each projection direction and the average value of the deviation values of the scanning channel in all projection directions.
[0114] In one embodiment, the evaluation module 300 may be specifically used to extract abnormal signals of all scanning channels in each projection direction; and calculate the average value of the abnormal signals of all scanning channels in the row direction as the signal evaluation value.
[0115] In one embodiment, the determination module 400 may be used to compare the signal evaluation value with a threshold value to detect the scanning area.
[0116] For the specific definition of the detection device, please refer to the definition of the detection method above, which will not be repeated here. Each module in the above detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the detector in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the detector can call and execute the operations corresponding to the above modules.
[0117] See also Fig. 9 In one embodiment, the electronic device 1 may include a memory 12, a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a scanning area detection program.
[0118] In one embodiment, the memory 12 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 12 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 12 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 12 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 12 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code for detecting the scanning area, etc., but may also be used to temporarily store data that has been output or is to be output.
[0119] In one embodiment, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (ControlUnit) of the electronic device 1, and uses various interfaces and lines to connect various components of the entire electronic device 1, and executes or executes programs or modules (such as a power battery capacity correction program, etc.) stored in the memory 12, and calls data stored in the memory 12 to execute various functions of the electronic device 1 and process data.
[0120] In one embodiment, the processor 13 executes the operating system and various installed application programs of the electronic device 1. The processor 13 executes the application programs to implement the steps in the above-mentioned scanning area detection method.
[0121] In one embodiment, the computer program may be divided into one or more modules, one or more modules are stored in the memory 12, and executed by the processor 13 to complete the present application. One or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into a scanning module 100, a calculation module 200, an evaluation module 300, and a judgment module 400.
[0122] In one embodiment, the above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium, and the computer-readable storage medium can be non-volatile or volatile. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to perform part of the functions of the detection method of the scanning area in each embodiment of the present application.
[0123] The embodiments of the present invention disclosed above are only used to help illustrate the present invention. The embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for detecting a scanning area, characterized in that: include: Scanning the scanning area by means of a scanning device to obtain raw scanning data; wherein the scanning device comprises a plurality of scanning modules arranged in series, the scanning modules comprise a plurality of scanning channels arranged in an array, and the raw scanning data comprises channel data of all scanning channels in different projection directions; According to the original scanning data, respectively calculating the average value of the channel data of each scanning module in each projection direction; Calculate the abnormal signals of all the scanning channels according to the original scanning data and the average value of the channel data of each scanning module in each projection direction, and generate corresponding signal evaluation values; The signal evaluation value is compared with a threshold value to detect the scanning area.
2. The method for detecting a scanning area according to claim 1, characterized in that: The step of respectively calculating the average value of the channel data of each scanning module in each projection direction according to the original scanning data comprises: Extracting channel data of all scanning modules in each projection direction from the original scanning data; The extracted channel data of all scanning modules in each of the projection directions are split according to the scanning modules; According to the split channel data, the average value of the channel data of each scanning module in each projection direction is calculated.
3. The method for detecting a scanning area according to claim 1, characterized in that: The step of calculating abnormal signals of all the scanning channels according to the original scanning data and the average value of the channel data of each scanning module in each projection direction to generate corresponding signal evaluation values comprises: Calculate the deviation value of each scanning channel in each projection direction according to the channel data of each scanning channel in each projection direction and the average value of the channel data of the scanning module where the scanning channel is located in each projection direction; According to the deviation value of each scanning channel in each projection direction, calculating the average value of the deviation value of each scanning channel in all projection directions; Calculate the difference between the deviation value of each scanning channel in each projection direction and the average value of the deviation values of the scanning channel in all projection directions as the abnormal signal of each scanning channel; According to the abnormal signal of each scanning channel, the average value of the abnormal signal of the scanning channel in the row direction is calculated respectively as the signal evaluation value.
4. The method for detecting a scanning area according to claim 3, characterized in that: The step of respectively calculating the deviation value of each scanning channel in each projection direction according to the channel data of each scanning channel in each projection direction and the average value of the channel data of the scanning module where the scanning channel is located in each projection direction comprises: Extracting channel data of all scanning channels in each projection direction from the original scanning data; Extracting an average value of channel data of scanning modules where all the scanning channels are located in each of the projection directions; The deviation value of each scanning channel in each projection direction is calculated according to the channel data of each scanning channel and the average value of the channel data of the scanning module where the scanning channel is located.
5. The method for detecting a scanning area according to claim 3, characterized in that: The step of calculating the average value of the deviation value of each scanning channel in all projection directions according to the deviation value of each scanning channel in each projection direction comprises: Extracting deviation values of all scanning channels under each of the projection directions; The extracted deviation values of all scanning channels under each of the projection directions are split according to the scanning channels; According to the separated deviation values, the average value of the deviation values of each scanning channel in all projection directions is calculated.
6. The method for detecting a scanning area according to claim 3, characterized in that: The step of calculating the difference between the deviation value of each scanning channel in each projection direction and the average value of the deviation values of the scanning channel in all projection directions as the abnormal signal of each scanning channel comprises: Extracting deviation values of all scanning channels under each of the projection directions; Extracting an average value of the deviation values of each scanning channel in all projection directions; According to the deviation values of all scanning channels in each of the projection directions and the average value of the deviation values of the scanning channel in all the projection directions, the abnormal signal of each of the scanning channels in each of the projection directions is calculated.
7. The method for detecting a scanning area according to claim 3, characterized in that: The step of calculating the average value of the abnormal signal of each scanning channel in the row direction as the signal evaluation value according to the abnormal signal of each scanning channel comprises: Extracting abnormal signals of all scanning channels in each of the projection directions; The average value of the abnormal signals of all the scanning channels in the row direction is calculated as the signal evaluation value.
8. A detection device for a scanning area, characterized in that: include: A scanning module, used to scan the scanning area through a scanning device to obtain raw scanning data; wherein the scanning device includes a plurality of scanning modules arranged in series, the scanning module includes a plurality of scanning channels arranged in an array, and the raw scanning data includes channel data of all scanning channels in different projection directions; A calculation module, used for respectively calculating the average value of the channel data of each scanning module in each projection direction according to the original scanning data; an evaluation module, configured to calculate abnormal signals of all the scanning channels according to the original scanning data and an average value of channel data of each scanning module in each projection direction, and generate corresponding signal evaluation values; and The judgment module is used to compare the signal evaluation value with a threshold value to detect the scanning area.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for detecting the scanning area according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for detecting a scanning area according to any one of claims 1 to 7 are implemented.