A test system and test method for a density detection module
By constructing a density distribution model through X-ray scanning and sensor array acquisition, and converting it into a two-dimensional grayscale image, the problem that traditional density detection technology cannot fully reflect the internal density of goods is solved, and high-precision density detection and visualization recording are achieved.
Patent Information
- Application Number
- CN202511178390.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-08-22
AI Technical Summary
Traditional density detection technologies are unable to fully reflect the internal density state of goods, and the output density data cannot be observed intuitively and lacks visual recording.
A first density distribution model is constructed by using X-ray scanning combined with a sensor array to collect X-ray attenuation signals, and a second density distribution model is obtained by density reconstruction. The model is then converted into a two-dimensional grayscale image to obtain density data for different areas of the cargo.
It achieves accuracy and effectiveness in cargo density detection, and provides a visualized detection history for easy storage and traceability.
Smart Images

Figure CN120668522B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of density detection technology, and in particular to a testing system and method for a density detection module. Background Technology
[0002] Currently, customs cargo inspection is a crucial link in international trade. Its efficiency and accuracy are directly related to customs clearance speed and the ability to detect prohibited items. High-precision detection of the internal density distribution of goods is of great significance.
[0003] However, traditional density detection technologies often use single-point sensors or local sampling, making it difficult to fully reflect the density state inside the goods. At the same time, the density data collected is usually output as abstract values or one-dimensional curves, making it impossible to intuitively observe the distribution of the density of the goods.
[0004] Therefore, in order to overcome the above-mentioned technical problems, the present invention provides a testing system and testing method for a density detection module. Summary of the Invention
[0005] This invention provides a testing system and method for a density detection module. By scanning goods with X-rays, the attenuation signals of the X-rays are collected using a sensor array. Analysis of these attenuation signals effectively constructs a first density distribution model. Density reconstruction of the first density distribution model yields a second density distribution model, ensuring greater accuracy. Converting the second density distribution model into a two-dimensional grayscale image facilitates the acquisition of density data for different regions, effectively guaranteeing the accuracy and effectiveness of goods density detection. Furthermore, the two-dimensional grayscale image allows for convenient storage and recording, providing a visual record of the goods' detection history. When it is necessary to trace the goods' detection status, the image and related density data can be directly viewed.
[0006] A testing system for a density detection module, comprising:
[0007] The scanning acquisition end is used to perform X-ray scanning on the goods, and at the same time, it acquires the attenuation signal of the X-ray based on the sensor array;
[0008] The analysis end is used to analyze the attenuation signal of the rays and construct the first density distribution model of the cargo;
[0009] The density reconstruction end is used to reconstruct the density of the first density distribution model to obtain the second density distribution model.
[0010] The density data acquisition end is used to convert the second density distribution model into a two-dimensional grayscale image, and obtain density data of different areas of the cargo based on the two-dimensional grayscale image.
[0011] Preferably, a testing system for a density detection module includes a scanning acquisition end, comprising:
[0012] A radiation scanning unit is used to perform radiation scanning on cargo based on low-energy primary rays.
[0013] The data acquisition unit is used to acquire the attenuation signal of the X-ray based on the X-ray scanning results and the sensor array.
[0014] The data conversion unit is used to convert the attenuation signal of the collected rays into a digital signal, and to record the ray intensity at each measurement point in the cargo based on the digital signal.
[0015] Preferably, a test system for a density detection module includes a data conversion unit, comprising:
[0016] The sequence acquisition subunit is used to sort the attenuation signals of each measurement point on the cargo according to the physical location relationship of the measurement points, and obtain the attenuation signal sequence of each row.
[0017] The configuration subunit is used to acquire the signal data volume of each row of attenuated signal sequence and configure the throughput of the digital-to-analog converter according to the signal data volume of each row of attenuated signal sequence.
[0018] The conversion subunit is used to input the attenuation signal sequence of each row into the digital-to-analog converter according to the configuration result to convert the attenuation signal into a digital signal.
[0019] Preferably, a testing system for a density detection module includes a X-ray scanning unit, comprising:
[0020] Angle determination subunit is used to acquire the three-dimensional structure of the cargo and determine the set of scanning angles of low-energy primary rays when performing a global scan of the cargo based on the three-dimensional structure.
[0021] The scanning subunit is used to perform a ray scan on the goods based on each scanning angle in the set of scanning angles, and at the same time, generate a distinguishing label corresponding to the ray scan based on the scanning angle.
[0022] The data acquisition subunit is used for:
[0023] The sensor array is activated while X-ray scanning is being performed, and the attenuation signal of the X-ray at each scanning angle is acquired based on the activation result.
[0024] The attenuation signal at each scanning angle is distinguished and marked based on the distinguishing labels, and a set of ray attenuation signals corresponding to each scanning angle is obtained based on the distinguishing label results.
[0025] Preferably, a testing system for a density detection module includes an analysis end comprising:
[0026] The signal strength determination unit is used for:
[0027] The digital signal corresponding to the attenuation signal of the X-ray collected by the sensor array is obtained, and the signal strength of the attenuation signal of the X-ray at each measurement point is determined based on the digital signal.
[0028] Simultaneously, the radiation emission terminal is accessed, and the initial emission intensity of the radiation is determined based on the access results;
[0029] Signal analysis unit, used for:
[0030] The thickness of the cargo at different measurement points is obtained, and the attenuation coefficient of the ray at different measurement points is determined based on the thickness of the cargo at different measurement points, the signal strength at each measurement point, and the initial emission intensity of the ray at each measurement point.
[0031] The first density distribution model building unit is used for:
[0032] The ray attenuation rate at each measurement point is determined based on the attenuation coefficient at different measurement points, and the density data corresponding to each measurement point is obtained based on the ray attenuation rate.
[0033] Based on the original location information of each measurement point on the cargo, the density data of different measurement points are correlated, and the first density distribution model of the cargo is obtained based on the correlation results.
[0034] Preferably, a testing system for a density detection module includes a density reconstruction end, comprising:
[0035] The 3D scanning structure diagram determination unit is used for:
[0036] Determine the scanning range of the ray on the cargo at each angle, and obtain the overlapping area of the scanning range of the ray on the cargo at different angles;
[0037] The connection lines of each scanning range are determined based on the overlapping areas. At the same time, the angles are merged based on the connection lines to obtain a three-dimensional scanning structure diagram of the cargo.
[0038] The missing measurement point determination unit is used for:
[0039] The density data at each angle is identified to determine the positional distribution characteristics of each row of measurement points in the scanning plane at each angle.
[0040] The missing measurement points in the scanning plane are determined based on their location distribution characteristics;
[0041] The interpolation density data determination unit is used for:
[0042] Using the missing measurement point as the center and a preset number of measurement points as the radius, the local area is locked. The density data of all measurement points within the local area are averaged to obtain the density mean, and the density mean is used as the first reference indicator.
[0043] Obtain the adjacent measurement points of the missing measurement point and read the refractive index of the rays of the adjacent measurement points. At the same time, evaluate the thickness of the cargo at the location of the missing measurement point based on the refractive index of the rays of the adjacent measurement points, and use the evaluated thickness as a second reference index.
[0044] The density value of missing measurement points is assessed based on the second reference index;
[0045] The first reference index is corrected based on the density value of the missing measurement points determined by the second reference index to obtain the interpolation density data corresponding to the missing measurement points.
[0046] The second density distribution model determination unit is used for:
[0047] The density data to be interpolated is supplemented by interpolation at the missing measurement points to obtain a complete set of density data for each scanning angle corresponding to the scanning plane;
[0048] The corresponding density data set is correlated and mapped in the three-dimensional scan structure map according to the scanning angle, and a second density distribution model is generated based on the correlation mapping result.
[0049] Preferably, in a density detection module testing system, the three-dimensional scanning structure map determination unit determines the connection line of each scanning range based on the overlapping area, including:
[0050] Read the overlapping areas to determine their outlines;
[0051] The boundary lines of the overlapping regions are determined based on their regional contours, and these boundary lines are used as the connecting lines of the scanning range.
[0052] Preferably, a testing system for a density detection module includes a density data acquisition end, comprising:
[0053] The conversion unit is used to perform grayscale mapping on the second density distribution model and convert it into a two-dimensional grayscale image based on the grayscale mapping.
[0054] The density data acquisition unit is used to read two-dimensional grayscale images and determine the density data of different areas of the cargo.
[0055] Preferably, a testing system for a density detection module includes a conversion unit comprising:
[0056] The orientation determination sub-unit is used to obtain the planar orientation for projecting the second density distribution model;
[0057] The grayscale range determination subunit is used for:
[0058] The second density distribution model is projected according to the plane direction of the projection, and the density values of all voxels at the corresponding positions perpendicular to the plane direction are collected and accumulated to obtain the target density value.
[0059] Obtain the maximum and minimum density values from the projected target density values;
[0060] The grayscale range of the grayscale mapping is determined based on the maximum and minimum density values.
[0061] The mapping subunit is used to perform gray-scale mapping on the projected second density distribution model according to the gray-scale range and the preset mapping function, and to assign the gray-scale value corresponding to the obtained target density value to the corresponding position in the mapped image, and generate a two-dimensional gray-scale image based on the assignment result.
[0062] A testing method for a density detection module, comprising:
[0063] Step 1: Perform X-ray scanning on the goods, and simultaneously collect the attenuation signal of the X-rays based on the sensor array;
[0064] Step 2: Analyze the attenuation signal of the rays to construct the first density distribution model of the cargo;
[0065] Step 3: Reconstruct the density of the first density distribution model to obtain the second density distribution model;
[0066] Step 4: Convert the second density distribution model into a two-dimensional grayscale image, and obtain density data for different regions of the cargo based on the two-dimensional grayscale image.
[0067] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0068] By scanning the cargo with X-rays, it is possible to collect the attenuation signal of the X-rays based on the sensor array. Then, by analyzing the attenuation signal, a first density distribution model can be effectively constructed. By reconstructing the density of the first density distribution model, a second density distribution model can be effectively obtained, ensuring that the obtained density distribution model is more accurate. By converting the second density distribution model into a two-dimensional grayscale image, it is possible to obtain density data of different regions, effectively ensuring the accuracy and effectiveness of cargo density detection. At the same time, the two-dimensional grayscale image can be easily stored and recorded, providing a visual record of the cargo detection history. When it is necessary to trace the cargo detection situation, the image and related density data can be viewed directly.
[0069] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in this application.
[0070] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0071] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0072] Figure 1 This is a structural diagram of a test system for a density detection module according to an embodiment of the present invention;
[0073] Figure 2 This is a structural diagram of the scanning acquisition end in a testing system for a density detection module according to an embodiment of the present invention;
[0074] Figure 3 This is a flowchart of a testing method for a density detection module in an embodiment of the present invention. Detailed Implementation
[0075] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0076] Example 1:
[0077] This embodiment provides a testing system for a density detection module, such as... Figure 1 As shown, it includes:
[0078] The scanning acquisition end is used to perform X-ray scanning on the goods, and at the same time, it acquires the attenuation signal of the X-ray based on the sensor array;
[0079] The analysis end is used to analyze the attenuation signal of the rays and construct the first density distribution model of the cargo;
[0080] The density reconstruction end is used to reconstruct the density of the first density distribution model to obtain the second density distribution model.
[0081] The density data acquisition end is used to convert the second density distribution model into a two-dimensional grayscale image, and obtain density data of different areas of the cargo based on the two-dimensional grayscale image.
[0082] In this embodiment, low-energy primary rays with an energy range of 10~40 keV are used to scan the cargo. The cargo density is calculated by rapidly scanning the cargo with low-energy primary rays and then using the ray attenuation rate.
[0083] In this embodiment, the first density distribution model refers to the three-dimensional distribution map constructed by analyzing the attenuation signal of the ray to obtain the density values at different locations and constructing the density values at different locations.
[0084] In this embodiment, the second density distribution model refers to the density distribution model obtained by reconstructing the density of the first density distribution model. The density reconstruction includes: firstly, merging density information from different perspectives through angle superposition and synthesis algorithms to form a more complete three-dimensional distribution map; secondly, filling in the density information of unmeasured points between sensor units and generating a continuous density distribution image through interpolation.
[0085] In this embodiment, the gray values in the two-dimensional grayscale image represent the density of different regions. For example, for high-density regions (such as metal), the gray values are higher; for low-density regions (such as food), the gray values are lower.
[0086] The working principle and beneficial effects of the above technical solution are as follows: By scanning the cargo with X-rays, it is beneficial to collect the attenuation signal of the X-rays based on the sensor array. Then, by analyzing the attenuation signal, a first density distribution model can be effectively constructed. By reconstructing the density of the first density distribution model, a second density distribution model can be effectively obtained, ensuring that the obtained density distribution model is more accurate. By converting the second density distribution model into a two-dimensional grayscale image, it is beneficial to obtain density data of different regions, effectively ensuring the accuracy and effectiveness of cargo density detection. At the same time, the two-dimensional grayscale image can be easily stored and recorded, providing a visual record of the cargo detection history. When it is necessary to trace the cargo detection situation, the image and related density data can be viewed directly.
[0087] Example 2:
[0088] Based on Example 1, this example provides a testing system for a density detection module, such as... Figure 2 As shown, the scanning acquisition end includes:
[0089] A radiation scanning unit is used to perform radiation scanning on cargo based on low-energy primary rays.
[0090] The data acquisition unit is used to acquire the attenuation signal of the X-ray based on the X-ray scanning results and the sensor array.
[0091] The data conversion unit is used to convert the attenuation signal of the collected rays into a digital signal, and to record the ray intensity at each measurement point in the cargo based on the digital signal.
[0092] The working principle and beneficial effects of the above technical solution are as follows: by scanning the cargo with low-energy primary rays, the attenuation signal of the rays is effectively collected. Then, through the conversion of digital signals, the intensity of the rays at each measurement point is determined, which effectively improves the accuracy and effectiveness of determining the intensity of the rays.
[0093] Example 3:
[0094] Based on Example 2, this example provides a testing system for a density detection module, including a data conversion unit:
[0095] The sequence acquisition subunit is used to sort the attenuation signals of each measurement point on the cargo according to the physical location relationship of the measurement points, and obtain the attenuation signal sequence of each row.
[0096] The configuration subunit is used to acquire the signal data volume of each row of attenuated signal sequence and configure the throughput of the digital-to-analog converter according to the signal data volume of each row of attenuated signal sequence.
[0097] The conversion subunit is used to input the attenuation signal sequence of each row into the digital-to-analog converter according to the configuration result to convert the attenuation signal into a digital signal.
[0098] In this embodiment, the attenuation signals of each measurement point on the cargo are sorted by row according to the physical position relationship of the measurement points. For example, the measurement points are sorted from left to right (i.e., row sorting) to sort the attenuation signals corresponding to each measurement point by row, thereby obtaining the attenuation signal sequence of each row.
[0099] In this embodiment, throughput refers to the configured amount of data passing through the analog-to-digital converter per unit time.
[0100] The working principle and beneficial effects of the above technical solution are as follows: Configuring the throughput of the digital-to-analog converter (DAC) based on the signal data volume of each row of attenuated signal sequences ensures that the DAC's operating parameters match the characteristics of the input signal; sorting the attenuated signals from each measurement point on the cargo according to the physical location of the measurement points yields the attenuated signal sequence for each row; this ordered processing method facilitates subsequent rational configuration and efficient data conversion of the DAC; it enables data to be processed according to a certain logical order, reducing the possibility of data confusion and processing errors, thereby improving the overall operating efficiency of the data conversion unit; the adaptive configuration ensures that each attenuated signal sequence can be accurately converted into a digital signal, reducing data errors caused by mismatches in the conversion process, and providing more accurate data support for subsequent digital signal analysis.
[0101] Example 4:
[0102] Based on Example 2, this example provides a testing system for a density detection module, including a X-ray scanning unit:
[0103] Angle determination subunit is used to acquire the three-dimensional structure of the cargo and determine the set of scanning angles of low-energy primary rays when performing a global scan of the cargo based on the three-dimensional structure.
[0104] The scanning subunit is used to perform a ray scan on the goods based on each scanning angle in the set of scanning angles, and at the same time, generate a distinguishing label corresponding to the ray scan based on the scanning angle.
[0105] The data acquisition subunit is used for:
[0106] The sensor array is activated while X-ray scanning is being performed, and the attenuation signal of the X-ray at each scanning angle is acquired based on the activation result.
[0107] The attenuation signal at each scanning angle is distinguished and marked based on the distinguishing labels, and a set of ray attenuation signals corresponding to each scanning angle is obtained based on the distinguishing label results.
[0108] In this embodiment, the distinguishing label refers to the distinguishing identifier of the scanning ray collected based on the scanning angle. That is, one scanning angle corresponds to one scanning ray, which can effectively locate the scanning angle corresponding to the scanning ray.
[0109] In this embodiment, the distinguishing mark refers to marking the attenuation signal at different scanning angles with distinguishing labels, so as to facilitate the determination of the scanning angle corresponding to different attenuation signals based on the distinguishing labels.
[0110] The working principle and beneficial effects of the above technical solution are as follows: by determining the three-dimensional structure of the goods, the set of scanning angles for global scanning of the goods can be realized, and the corresponding distinguishing labels for ray scanning can be generated according to the scanning angle, thereby effectively improving the accuracy of distinguishing and marking the attenuation signal, which in turn helps to accurately determine the set of ray attenuation signals corresponding to each scanning angle and improves the accuracy of obtaining the ray attenuation signal set.
[0111] Example 5:
[0112] Based on Example 1, this example provides a testing system for a density detection module, including an analysis end:
[0113] The signal strength determination unit is used for:
[0114] The digital signal corresponding to the attenuation signal of the X-ray collected by the sensor array is obtained, and the signal strength of the attenuation signal of the X-ray at each measurement point is determined based on the digital signal.
[0115] Simultaneously, the radiation emission terminal is accessed, and the initial emission intensity of the radiation is determined based on the access results;
[0116] Signal analysis unit, used for:
[0117] The thickness of the cargo at different measurement points is obtained, and the attenuation coefficient of the ray at different measurement points is determined based on the thickness of the cargo at different measurement points, the signal strength at each measurement point, and the initial emission intensity of the ray at each measurement point.
[0118] The first density distribution model building unit is used for:
[0119] The ray attenuation rate at each measurement point is determined based on the attenuation coefficient at different measurement points, and the density data corresponding to each measurement point is obtained based on the ray attenuation rate.
[0120] Based on the original location information of each measurement point on the cargo, the density data of different measurement points are correlated, and the first density distribution model of the cargo is obtained based on the correlation results.
[0121] In this embodiment, the data acquisition density calculation formula is based on the Beer-Lambert law: ; Initial radiation intensity; The intensity of the received radiation; : Attenuation coefficient of radiation; The length of the ray's penetration path. By simultaneously measuring with multiple sensors, a density distribution model of the cargo can be established. Through inverse calculation formulas, the density information along the path corresponding to each sensor unit can be obtained. .
[0122] In this embodiment, the initial emission intensity refers to the signal intensity corresponding to the emission of rays by the ray emitting terminal, that is, the specific intensity corresponding to the ray emitted from the device.
[0123] In this embodiment, the radiation attenuation rate refers to the degree of loss of radiation intensity at different measurement points.
[0124] The working principle and beneficial effects of the above technical solution are as follows: By analyzing and processing the digital signal corresponding to the attenuation signal of the radiation collected by the sensor array, the signal intensity at each measurement point can be effectively determined. At the same time, the initial emission intensity of the radiation and the thickness of the cargo at different measurement points are determined, and finally the attenuation coefficient of the radiation at different measurement points is locked. Then, the radiation attenuation rate at each measurement point is determined according to the attenuation coefficient, thereby achieving accurate and effective determination of the density data corresponding to each measurement point based on the radiation attenuation rate. Finally, the density data of different measurement points are correlated to achieve accurate and effective construction of the first density distribution model.
[0125] Example 6:
[0126] Based on Example 1, this example provides a testing system for a density detection module, including a density reconstruction end:
[0127] The 3D scanning structure diagram determination unit is used for:
[0128] Determine the scanning range of the ray on the cargo at each angle, and obtain the overlapping area of the scanning range of the ray on the cargo at different angles;
[0129] The connection lines of each scanning range are determined based on the overlapping areas. At the same time, the angles are merged based on the connection lines to obtain a three-dimensional scanning structure diagram of the cargo.
[0130] The missing measurement point determination unit is used for:
[0131] The density data at each angle is identified to determine the positional distribution characteristics of each row of measurement points in the scanning plane at each angle.
[0132] The missing measurement points in the scanning plane are determined based on their location distribution characteristics;
[0133] The interpolation density data determination unit is used for:
[0134] Using the missing measurement point as the center and a preset number of measurement points as the radius, the local area is locked. The density data of all measurement points within the local area are averaged to obtain the density mean, and the density mean is used as the first reference indicator.
[0135] Obtain the adjacent measurement points of the missing measurement point and read the refractive index of the rays of the adjacent measurement points. At the same time, evaluate the thickness of the cargo at the location of the missing measurement point based on the refractive index of the rays of the adjacent measurement points, and use the evaluated thickness as a second reference index.
[0136] The density value of missing measurement points is assessed based on the second reference index;
[0137] The first reference index is corrected based on the density value of the missing measurement points determined by the second reference index to obtain the interpolation density data corresponding to the missing measurement points.
[0138] The second density distribution model determination unit is used for:
[0139] The density data to be interpolated is supplemented by interpolation at the missing measurement points to obtain a complete set of density data for each scanning angle corresponding to the scanning plane;
[0140] The corresponding density data set is correlated and mapped in the three-dimensional scan structure map according to the scanning angle, and a second density distribution model is generated based on the correlation mapping result.
[0141] In this embodiment, determining the connecting line of each scanning range based on the overlapping area includes: reading the overlapping area and determining the region outline of the overlapping area; determining the boundary line of the overlapping area based on the region outline of the overlapping area, and using the boundary line of the overlapping area as the connecting line of the scanning range.
[0142] In this embodiment, angle merging refers to splicing together scanning ranges at different scanning angles according to the connecting lines between each scanning range.
[0143] In this embodiment, the three-dimensional scan structure diagram refers to the result obtained by stitching together the scan results from different scanning angles.
[0144] In this embodiment, the position distribution feature refers to the distribution of measurement points in each row of the scanning plane, including information such as the spacing between measurement points in each row.
[0145] In this embodiment, a missing measurement point refers to a point in the scanning plane that was not successfully scanned.
[0146] In this embodiment, the preset quantity is set in advance.
[0147] In this embodiment, the local area range is a range locked with a radius based on a preset number of measurement points. The purpose is to estimate the density data of missing measurement points based on the locked range.
[0148] In this embodiment, the density data to be interpolated refers to the specific values used to supplement the data for missing measurement points.
[0149] The working principle and beneficial effects of the above technical solution are as follows: By determining the scanning range, the overlapping area can be effectively determined, and the connection line of each scanning range can be effectively obtained. Then, the angle can be merged according to the connection line, and the three-dimensional scanning structure map can be determined. By determining the positional distribution characteristics of each row of measurement points in the scanning plane at each angle, the missing measurement points can be effectively determined. Then, by determining the local area range of the missing measurement points, the first reference index can be effectively determined. By using the refractive index of the rays corresponding to the adjacent measurement points of the missing measurement points, the thickness of the acquired position can be evaluated. Then, the second reference index can be determined according to the evaluation result. The first reference index can be corrected by the second reference index, and the density data to be interpolated corresponding to the missing measurement points can be determined. The density data to be interpolated is then supplemented by interpolation, and the final set of density data corresponding to each angle is correlated and mapped in the three-dimensional scanning structure map to determine the second density distribution model, thus providing reliable data support for determining cargo density.
[0150] Example 7:
[0151] Based on Example 1, this example provides a testing system for a density detection module, including a density data acquisition terminal:
[0152] The conversion unit is used to perform grayscale mapping on the second density distribution model and convert it into a two-dimensional grayscale image based on the grayscale mapping.
[0153] The density data acquisition unit is used to read two-dimensional grayscale images and determine the density data of different areas of the cargo.
[0154] The working principle and beneficial effects of the above technical solution are as follows: by performing grayscale mapping on the second density distribution model, the two-dimensional grayscale image can be accurately and effectively determined, thereby enabling the accurate and effective determination of density data of different areas of the cargo based on the two-dimensional grayscale image, ensuring the accuracy and reliability of cargo density testing.
[0155] Example 8:
[0156] Based on Example 7, this example provides a testing system for a density detection module, including a conversion unit comprising:
[0157] The orientation determination sub-unit is used to obtain the planar orientation for projecting the second density distribution model;
[0158] The grayscale range determination subunit is used for:
[0159] The second density distribution model is projected according to the plane direction of the projection, and the density values of all voxels at the corresponding positions perpendicular to the plane direction are collected and accumulated to obtain the target density value.
[0160] Obtain the maximum and minimum density values from the projected target density values;
[0161] The grayscale range of the grayscale mapping is determined based on the maximum and minimum density values.
[0162] The mapping subunit is used to perform gray-scale mapping on the projected second density distribution model according to the gray-scale range and the preset mapping function, and to assign the gray-scale value corresponding to the obtained target density value to the corresponding position in the mapped image, and generate a two-dimensional gray-scale image based on the assignment result.
[0163] In this embodiment, the projection plane direction is a directional plane used to define the projection operation on the three-dimensional second density distribution model, which is a prerequisite for converting it into a two-dimensional grayscale image.
[0164] In this embodiment, a voxel refers to the smallest basic unit of the projection result.
[0165] In this embodiment, determining the grayscale range of grayscale mapping based on the maximum and minimum density values means mapping the minimum density value to the minimum value of the grayscale range and mapping the maximum density value to the maximum value of the grayscale range, thereby determining the grayscale range.
[0166] In this embodiment, the preset mapping function is pre-defined.
[0167] The working principle and beneficial effects of the above technical solution are as follows: By determining the planar direction for projecting the second density distribution model, the second density distribution model is projected according to the planar direction. Based on the projection result, the density values of all voxels at the corresponding positions perpendicular to the planar direction are accumulated to accurately lock the target density value. Secondly, the maximum and minimum density values among the target density values are determined, thereby determining the grayscale range of the grayscale mapping. Finally, the projected second density distribution model is grayscale mapped according to the grayscale range and the preset mapping function, thereby achieving accurate and effective generation of a two-dimensional grayscale image, providing convenience and guarantee for determining the density values of different areas of goods.
[0168] Example 9:
[0169] This embodiment provides a testing method for a density detection module, such as... Figure 3 As shown, including:
[0170] Step 1: Perform X-ray scanning on the goods, and simultaneously collect the attenuation signal of the X-rays based on the sensor array;
[0171] Step 2: Analyze the attenuation signal of the rays to construct the first density distribution model of the cargo;
[0172] Step 3: Reconstruct the density of the first density distribution model to obtain the second density distribution model;
[0173] Step 4: Convert the second density distribution model into a two-dimensional grayscale image, and obtain density data for different regions of the cargo based on the two-dimensional grayscale image.
[0174] The working principle and beneficial effects of the above technical solution are as follows: By scanning the cargo with X-rays, it is beneficial to collect the attenuation signal of the X-rays based on the sensor array. Then, by analyzing the attenuation signal, a first density distribution model can be effectively constructed. By reconstructing the density of the first density distribution model, a second density distribution model can be effectively obtained, ensuring that the obtained density distribution model is more accurate. By converting the second density distribution model into a two-dimensional grayscale image, it is beneficial to obtain density data of different regions, effectively ensuring the accuracy and effectiveness of cargo density detection. At the same time, the two-dimensional grayscale image can be easily stored and recorded, providing a visual record of the cargo detection history. When it is necessary to trace the cargo detection situation, the image and related density data can be viewed directly.
[0175] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A testing system for a density detection module, characterized in that, include: The scanning acquisition end is used to perform X-ray scanning on the goods, and at the same time, it acquires the attenuation signal of the X-ray based on the sensor array; The analysis end is used to analyze the attenuation signal of the rays and construct the first density distribution model of the cargo; The density reconstruction end is used to reconstruct the density of the first density distribution model to obtain the second density distribution model. The density data acquisition end is used to convert the second density distribution model into a two-dimensional grayscale image, and obtain density data of different areas of the cargo based on the two-dimensional grayscale image; Analysis terminal, including: The signal strength determination unit is used to acquire the digital signal corresponding to the attenuation signal of the ray collected by the sensor array, and determine the signal strength of the attenuation signal of the ray at each measurement point based on the digital signal; at the same time, it accesses the ray emitting terminal and determines the initial emission intensity of the ray based on the access result. The signal analysis unit is used to obtain the thickness of the cargo at different measurement points, and to determine the attenuation coefficient of the ray at different measurement points based on the thickness of the cargo at different measurement points, the signal strength at each measurement point, and the initial emission intensity of the ray at each measurement point. The first density distribution model construction unit is used to determine the ray attenuation rate at each measurement point based on the attenuation coefficient at different measurement points, and to obtain the density data corresponding to each measurement point based on the ray attenuation rate; to associate the density data of different measurement points based on the original position information of each measurement point on the cargo, and to obtain the first density distribution model of the cargo based on the association result; Density reconstruction end, including: The three-dimensional scanning structure diagram determination unit is used to determine the scanning range of the cargo by the ray at each angle and to obtain the overlapping area of the scanning range of the cargo by the ray at different angles; the connecting line of each scanning range is determined according to the overlapping area, and the angle is merged according to the connecting line to obtain the three-dimensional scanning structure diagram of the cargo. The missing measurement point determination unit is used to identify the density data at each angle, determine the positional distribution characteristics of each row of measurement points in the scanning plane at each angle, and determine the missing measurement points in the scanning plane based on the positional distribution characteristics. The density data determination unit is used to lock a local area range with the missing measurement point as the center and a preset number of measurement points as the radius, calculate the average density value of the density data of all measurement points within the local area, and use the average density value as the first reference index; acquire the adjacent measurement points of the missing measurement point and read the refractive index of the rays of the adjacent measurement points; at the same time, evaluate the thickness of the cargo location where the missing measurement point is located based on the refractive index of the rays of the adjacent measurement points, and use the evaluated thickness as the second reference index; evaluate the density value of the missing measurement point based on the second reference index; and correct the first reference index based on the density value of the missing measurement point determined by the second reference index to obtain the density data to be interpolated corresponding to the missing measurement point. The second density distribution model determination unit is used to interpolate the density data to be interpolated at the missing measurement points to obtain a complete set of density data for each scanning angle corresponding to the scanning plane; it performs correlation mapping on the corresponding density data set in the three-dimensional scanning structure map according to the scanning angle, and generates the second density distribution model based on the correlation mapping result.
2. The testing system for a density detection module according to claim 1, characterized in that, The scanning acquisition end includes: A radiation scanning unit is used to perform radiation scanning on cargo based on low-energy primary rays. The data acquisition unit is used to acquire the attenuation signal of the X-ray based on the X-ray scanning results and the sensor array. The data conversion unit is used to convert the attenuation signal of the collected rays into a digital signal, and to record the ray intensity at each measurement point in the cargo based on the digital signal.
3. The testing system for a density detection module according to claim 2, characterized in that, The data conversion unit includes: The sequence acquisition subunit is used to sort the attenuation signals of each measurement point on the cargo according to the physical location relationship of the measurement points, and obtain the attenuation signal sequence of each row. The configuration subunit is used to acquire the signal data volume of each row of attenuated signal sequence and configure the throughput of the digital-to-analog converter according to the signal data volume of each row of attenuated signal sequence. The conversion subunit is used to input the attenuation signal sequence of each row into the digital-to-analog converter according to the configuration result to convert the attenuation signal into a digital signal.
4. The testing system for a density detection module according to claim 2, characterized in that, X-ray scanning unit, including: Angle determination subunit is used to acquire the three-dimensional structure of the cargo and determine the set of scanning angles of low-energy primary rays when performing a global scan of the cargo based on the three-dimensional structure. The scanning subunit is used to perform a ray scan on the goods based on each scanning angle in the set of scanning angles, and at the same time, generate a distinguishing label corresponding to the ray scan based on the scanning angle. The data acquisition subunit is used for: The sensor array is activated while X-ray scanning is being performed, and the attenuation signal of the X-ray at each scanning angle is acquired based on the activation result. The attenuation signal at each scanning angle is distinguished and marked based on the distinguishing labels, and a set of ray attenuation signals corresponding to each scanning angle is obtained based on the distinguishing label results.
5. The testing system for a density detection module according to claim 1, characterized in that, In the 3D scanning structure determination unit, the connection lines for each scanning range are determined based on the overlapping areas, including: Read the overlapping areas to determine their outlines; The boundary lines of the overlapping regions are determined based on their regional contours, and these boundary lines are used as the connecting lines of the scanning range.
6. The testing system for a density detection module according to claim 1, characterized in that, Density data acquisition endpoints include: The conversion unit is used to perform grayscale mapping on the second density distribution model and convert it into a two-dimensional grayscale image based on the grayscale mapping. The density data acquisition unit is used to read two-dimensional grayscale images and determine the density data of different areas of the cargo.
7. The testing system for a density detection module according to claim 6, characterized in that, The conversion unit includes: The orientation determination sub-unit is used to obtain the planar orientation for projecting the second density distribution model; The grayscale range determination subunit is used for: The second density distribution model is projected according to the plane direction of the projection, and the density values of all voxels at the corresponding positions perpendicular to the plane direction are collected and accumulated to obtain the target density value. Obtain the maximum and minimum density values from the projected target density values; The grayscale range of the grayscale mapping is determined based on the maximum and minimum density values. The mapping subunit is used to perform gray-scale mapping on the projected second density distribution model according to the gray-scale range and the preset mapping function, and to assign the gray-scale value corresponding to the obtained target density value to the corresponding position in the mapped image, and generate a two-dimensional gray-scale image based on the assignment result.
8. A testing method for a density detection module, characterized in that, include: Step 1: Perform X-ray scanning on the goods, and simultaneously collect the attenuation signal of the X-rays based on the sensor array; Step 2: Analyze the attenuation signal of the rays to construct the first density distribution model of the cargo; Step 3: Reconstruct the density of the first density distribution model to obtain the second density distribution model; Step 4: Convert the second density distribution model into a two-dimensional grayscale image, and obtain the density data of different regions of the cargo based on the two-dimensional grayscale image; Step 2 includes: The system acquires the digital signal corresponding to the attenuation signal of the X-ray collected by the sensor array, and determines the signal strength of the attenuation signal of the X-ray at each measurement point based on the digital signal; at the same time, it accesses the X-ray emitting terminal and determines the initial emission intensity of the X-ray based on the access results. The thickness of the cargo at different measurement points is obtained, and the attenuation coefficient of the ray at different measurement points is determined based on the thickness of the cargo at different measurement points, the signal strength at each measurement point, and the initial emission intensity of the ray at each measurement point. The ray attenuation rate at each measurement point is determined based on the attenuation coefficient at different measurement points, and the density data corresponding to each measurement point is obtained based on the ray attenuation rate; the density data of different measurement points are correlated based on the original position information of each measurement point on the cargo, and the first density distribution model of the cargo is obtained based on the correlation result. Step 3 includes: Determine the scanning range of the cargo by the ray at each angle, and obtain the overlapping area of the scanning range of the cargo by the ray at different angles; determine the connecting line of each scanning range based on the overlapping area, and merge the angles based on the connecting line to obtain the three-dimensional scanning structure diagram of the cargo. Density data at each angle is identified to determine the positional distribution characteristics of each row of measurement points in the scanning plane at each angle; missing measurement points in the scanning plane are determined based on the positional distribution characteristics. Using the missing measurement point as the center and a preset number of measurement points as the radius, a local area is defined. The density data of all measurement points within this local area are averaged to obtain the average density value, which is then used as the first reference index. Next, adjacent measurement points of the missing measurement point are acquired, and the refractive index of the rays from these adjacent points is read. Simultaneously, the thickness of the cargo at the location of the missing measurement point is evaluated based on the refractive index of the rays from the adjacent measurement points, and this evaluated thickness is used as the second reference index. The density value of the missing measurement point is then evaluated based on the second reference index. Finally, the first reference index is corrected based on the density value of the missing measurement point determined by the second reference index to obtain the interpolated density data corresponding to the missing measurement point. The density data to be interpolated is supplemented by interpolation at the missing measurement points to obtain a complete set of density data for each scanning angle corresponding to the scanning plane; the corresponding density data set is correlated and mapped in the three-dimensional scanning structure map according to the scanning angle, and a second density distribution model is generated based on the correlation mapping result.
Citation Information
Patent Citations
Method and apparatus for computing tomographic scans
CA2060181A1
System and method for acquisition and reconstruction of contrast-enhanced, artifact-reduced CT images
US20060109949A1