Method and system for compensating gap of detection plate in security check image
By determining and processing the gap position of the detection plate, using similarity and filtering algorithms to process the adjacent gap area, the problem of poor gap processing in the existing technology is solved, the quality of security inspection images is significantly improved, and missed and missed inspections are reduced. risk.
Patent Information
- Application Number
- CN202411565819.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-11-05
AI Technical Summary
The prior art cannot effectively handle the detection plate gaps in the X-ray carry-on luggage inspection device, resulting in poor security image quality, which may lead to missed or missed inspection.
By determining the gap position of the detection plate, extracting and processing the gap proximity area, using similarity algorithms and filtering to make up for the gap, adjusting the angle of the detection plate to reduce the gap width, and generating a more accurate image.
It significantly improves the quality of security inspection images, accurately and naturally makes up for the gaps in the detection plate, and reduces the possibility of missed inspection and missed inspection.
Smart Images

Figure CN119067890A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an image gap processing technology, and in particular to a method and a system for compensating for a detection plate gap in a security inspection image. Background Art
[0002] X-ray carry-on baggage inspection devices are used in carry-on baggage inspections at airports or large-scale event venues. X-ray carry-on baggage inspection devices usually generate grayscale images that indicate the amount of X-ray transmission or color images that are colored for each material based on the material being determined. In addition, the usual practice is that inspectors visually inspect the images to confirm the presence of dangerous goods, and if the inspectors find dangerous goods, the luggage is opened for inspection. In order to avoid missing data caused by missed X-rays, existing security inspection equipment often forms a gap between the last point of the previous detection plate and the first point of the next detection plate, which blocks the security inspection image.
[0003] For example, prior art 1: CN201811369163.1 cannot handle the gap of the detection plate well. Summary of the invention
[0004] The present invention aims at the problem that the prior art cannot properly handle the gap of the detection plate, and provides a method and system for compensating the gap of the detection plate in the security inspection image.
[0005] In order to solve the above technical problems, the present invention is solved by the following technical solutions: A method for compensating for a detection plate gap in a security inspection image, the method comprising: Step 1, determining the position of the gap of the detection plate, for determining the position of the gap of the detection plate in the security inspection image; Step 2, extracting the area adjacent to the gap of the detection plate, extracting the area adjacent to the gap of the detection plate according to the gap position of the detection plate determined in step 1; Step 3, processing the detection plate gap vicinity area, processing the detection plate gap vicinity area extracted in step 2 to obtain a processed detection plate gap image.
[0006] As a preferred method, the extraction of the adjacent area of the detection plate gap is performed by extracting the adjacent area through the gap width and pixel grayscale value of the detection plate security inspection image, and the grayscale data of the extracted adjacent area is ; when , ,in, ; when , ,in, ; in, is the grayscale data of the i-th row and j-th column, i is the row coordinate of the pixel, j is the column coordinate of the pixel, and I is the pixel row coordinate multiple of 64. is the pixel grayscale threshold.
[0007] Preferably, in step 3, the processing of the area adjacent to the gap of the detection plate is performed by using a similarity algorithm for the area adjacent to the gap of the detection plate.
[0008] Preferably, the adjacent region similarity algorithm includes: Determine whether the detection plate is the same material by atomic number and output the gray value of the same material ; ; in, is the first atomic number, is the second atomic number, is the first high energy gray value, is the first low-energy gray value, is the second highest energy gray value, is the second lowest energy gray value, ; If P is less than P1, ; Among them, P is the atomic number difference, P1 is the atomic number threshold, Grayscale values outputted in accordance with atomic number; Output the processed grayscale value by retaining the grayscale value ; ; ; ; ; when, and ,but ; in, is the maximum gray value, is the minimum gray value, Output grayscale minimum ratio, Output grayscale maximum ratio, The output grayscale value.
[0009] Preferably, the processing of the adjacent area of the detection plate gap also includes interpolation processing, so as to obtain the interpolated gray value , the gray value Replace the grayscale value of the detection board ; ; ; ; in, is the interpolated gray value, is the average grayscale value of the i-th row; is the distance of the i-th row.
[0010] Preferably, the processing of the area adjacent to the gap of the detection plate in step 3 also includes filtering processing, which is performed by mean filtering.
[0011] In order to solve the above technical problems, the present invention also provides a system for compensating the gap of a detection plate in a security inspection image, which comprises: A module for determining the position of the gap of the detection plate, for determining the position of the gap of the detection plate in the security inspection image; A detection plate gap adjacent region extraction module is used to extract the detection plate gap adjacent region based on the detection plate gap position determined by the detection plate gap position determination module; The processing module of the detection plate gap vicinity region processes the detection plate gap vicinity region extracted by the extraction module of the detection plate gap vicinity region to obtain a processed detection plate gap image.
[0012] The present invention has significant technical effects due to the adoption of the above technical solution: The present invention reduces the plate gap width by adjusting the detection plate angle, and then compensates for the detection plate gap by using a surrounding area compensation algorithm and a filtering algorithm based on similarity.
[0013] The present invention can more accurately and naturally compensate for the detection plate gap in the security inspection image. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flow chart of the present invention; Figure 2 is the original image of the gap of the detection plate of the present invention; Figure 3 Extracting the adjacent area image for the detection plate gap of the present invention; Figure 4 The image is processed by the interpolation calculation of the gap of the detection plate of the present invention; Figure 5 This is the image after the detection plate gap mean filtering process of the present invention. DETAILED DESCRIPTION
[0015] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0016] Example 1 A method for compensating for a detection plate gap in a security inspection image, the method comprising: Step 1, determining the position of the gap of the detection plate, for determining the position of the gap of the detection plate in the security inspection image; Step 2, extracting the area adjacent to the gap of the detection plate, extracting the area adjacent to the gap of the detection plate according to the gap position of the detection plate determined in step 1; Step 3, processing the detection plate gap vicinity area, processing the detection plate gap vicinity area extracted in step 2 to obtain a processed detection plate gap image.
[0017] The extraction of the adjacent area of the detection plate gap is carried out by the gap width and pixel gray value of the detection plate security inspection image. The grayscale data of the extracted adjacent area is ; when , ,in, ; when , ,in, ; in, is the grayscale data of the i-th row and j-th column, i is the row coordinate of the pixel, j is the column coordinate of the pixel, and I is the pixel row coordinate multiple of 64. is the pixel grayscale threshold. Here the grayscale threshold is 1000.
[0018] In step 3, the processing of the area adjacent to the gap of the detection plate is performed by using a similarity algorithm of the area adjacent to the gap of the detection plate.
[0019] The neighboring region similarity algorithms include: Determine whether the detection plate is the same material by atomic number and output the gray value of the same material ; ; ; in, is the first atomic number, is the second atomic number, is the first high energy gray value, is the first low-energy gray value, is the second highest energy gray value, is the second lowest energy gray value, ; If P is less than P1, ; Among them, P is the atomic number difference, P1 is the atomic number threshold, Grayscale values outputted in accordance with atomic number; Output the processed grayscale value by retaining the grayscale value ; ; ; ; ; when, and ,but ; in, is the maximum gray value, is the minimum gray value, Output grayscale minimum ratio, Output grayscale maximum ratio, The output grayscale value.
[0020] The data in rows 58 to 63 are adjacent to the data in row 64. The data in each row must be calculated. The value is calculated from the data in row 64. Compare, Only values less than 0.5 can be retained.
[0021] Line 64 Set is 34000, is 31000, and the 58th line is set is 33000, is 30000, the 64th is the standard, the R1 value of the 58th row is 1.1, and the R2 value of the 64th row is 1.096; the R1 value divided by the R2 value is 1.0036, and the ratio is between 0.9 and 1.1; the data in the 58th row should be retained.
[0022] Line 59 Set is 33000, The value of R1 in row 59 is 1.1, and the value of R2 in row 64 is 1.096. The value of R1 divided by R2 is 1.0036, and the ratio is between 0.9 and 1.1. Therefore, the data in row 59 should be retained. is 34166, The value is 29027, the 64th is the standard, the R1 value of the 60th row is 1.1, and the R2 value of the 64th row is 1.18; the R1 value divided by the R2 value is 1.07, and the ratio is between 0.9 and 1.1; the data of the 60th row should be retained.
[0023] Line 61 is 33541, The value is 29845, the 64th is the standard, the R1 value of the 61st row is 1.12, and the R2 value of the 64th row is 1.096; the R1 value divided by the R2 value is 1.025, and the ratio is between 0.9 and 1.1; the data of the 61st row should be retained.
[0024] Line 62 Set is 32584, The value is 30015, the 64th is the standard, the R1 value of the 62nd row is 1.085, and the R2 value of the 64th row is 1.096; the R1 value divided by the R2 value is 0.99, and the ratio is between 0.9 and 1.1; the data of the 62nd row should be retained.
[0025] Line 63 Set is 34784, The value is 31421, the 64th row is the standard, the R1 value of the 63rd row is 1.107, and the R2 value of the 64th row is 1.096; the R1 value divided by the R2 value is 1.01, and the ratio is between 0.9 and 1.1; the data of the 63rd row should be retained.
[0026] The processing of the area adjacent to the gap of the detection plate also includes interpolation processing to obtain the interpolated gray value , the gray value Replace the grayscale value of the detection board ; ; ; in, is the interpolated gray value, is the average grayscale value of the i-th row; is the distance of the i-th row.
[0027] The processing of the area adjacent to the gap of the detection plate in step 3 also includes filtering processing, which is performed by mean filtering.
[0028] If you want to fill the gap in row 64, the available adjacent data is the data in row 62. , the data of row 63 , the data of row 65 and row 66 ; The distance between row 62 and row 64 is 2, the distance between row 63 and row 64 is 1, the distance between row 65 and row 64 is 1, and the distance between row 66 and row 64 is 2, then: =1 / (1+2+1+2)* +2 / (1+2+1+2)* +1 / (1+2+1+2)* +2 / (1+2+1+2)* .
[0029] Example 2 Based on Example 1, this example is a system for compensating for the gap of a detection plate in a security inspection image, which includes: A module for determining the position of the gap of the detection plate, for determining the position of the gap of the detection plate in the security inspection image; A detection plate gap adjacent region extraction module is used to extract the detection plate gap adjacent region based on the detection plate gap position determined by the detection plate gap position determination module; The processing module of the detection plate gap vicinity region processes the detection plate gap vicinity region extracted by the extraction module of the detection plate gap vicinity region to obtain a processed detection plate gap image.
Claims
1. A method for compensating the gap of a detection plate in a security inspection image, wherein the method include: Step 1, determining the position of the gap of the detection plate, for determining the position of the gap of the detection plate in the security inspection image; Step 2, extracting the area adjacent to the gap of the detection plate, extracting the area adjacent to the gap of the detection plate according to the gap position of the detection plate determined in step 1; Step 3, processing the detection plate gap vicinity area, processing the detection plate gap vicinity area extracted in step 2 to obtain a processed detection plate gap image; The extraction of the adjacent area of the detection plate gap is carried out by the gap width and pixel gray value of the detection plate security inspection image. The grayscale data of the extracted adjacent area is ; when , ,in, ; when , ,in, ; in, is the grayscale data of the i-th row and j-th column, i is the row coordinate of the pixel, j is the column coordinate of the pixel, and I is the pixel row coordinate multiple of 64. is the pixel grayscale threshold.
2. A method for compensating for a detection plate gap in a security inspection image according to claim 1, It is characterized in that In step 3, the processing of the area adjacent to the gap of the detection plate is performed by using a similarity algorithm of the area adjacent to the gap of the detection plate.
3. A method for compensating for a detection plate gap in a security inspection image according to claim 1, It is characterized in that The neighboring region similarity algorithms include: Determine whether the detection plate is the same material by atomic number and output the gray value of the same material ; ; ; in, is the first atomic number, is the second atomic number, is the first high energy gray value, is the first low-energy gray value, is the second highest energy gray value, is the second lowest energy gray value, ; If P is less than P1, ; Among them, P is the atomic number difference, P1 is the atomic number threshold, Grayscale values outputted in accordance with atomic number; Output the processed grayscale value by retaining the grayscale value ; ; ; ; ; when, and ,but ; in, is the maximum gray value, is the minimum gray value, Output grayscale minimum ratio, Output grayscale maximum ratio, The output grayscale value.
4. A method for compensating for a detection plate gap in a security inspection image according to claim 1, It is characterized in that The processing of the area adjacent to the gap of the detection plate also includes interpolation processing to obtain the interpolated gray value , the gray value Replace the grayscale value of the detection board ; ; ; in, is the interpolated gray value, is the grayscale average of the i-th row; is the distance of the i-th row.
5. A method for compensating for a detection plate gap in a security inspection image according to claim 1, It is characterized in that The processing of the area adjacent to the gap of the detection plate in step 3 also includes filtering processing, which is performed by mean filtering.
6. A system for filling the gap between detection plates in security inspection images. It is characterized in that include: A module for determining the position of the gap of the detection plate, for determining the position of the gap of the detection plate in the security inspection image; A detection plate gap adjacent region extraction module is used to extract the detection plate gap adjacent region based on the detection plate gap position determined by the detection plate gap position determination module; A processing module for the detection plate gap vicinity region processes the detection plate gap vicinity region extracted by the extraction module for the detection plate gap vicinity region to obtain a processed detection plate gap image; The extraction of the adjacent area of the detection plate gap is carried out by the gap width and pixel gray value of the detection plate security inspection image. The grayscale data of the extracted adjacent area is ; when , ,in, ; when , ,in, ; in, is the grayscale data of the i-th row and j-th column, i is the row coordinate of the pixel, j is the column coordinate of the pixel, and I is the pixel row coordinate multiple of 64. is the pixel grayscale threshold.
Citation Information
Patent Citations
Display fault detection method and device, electronic equipment and storage medium
CN114429439A
Unmanned material grabbing machine intelligent control system and control method
CN115115636A
Photon detector acquisition projection image module abutted seam filling method based on image registration
CN117788531A
System and Method for Extremely Efficient Image and Pattern Recognition and Artificial Intelligence Platform
US20220121884A1
Gap measuring system and measuring method
WO2021208231A1
