Security inspection package identification method, system, storage medium and device

By acquiring and analyzing the brightness value distribution of the X-ray scanning image in the security inspection machine, determining the image interval to be analyzed, and conducting contraband analysis, the performance consumption problem caused by the continuous detection of the item analysis chip is solved, and the service life of the security inspection machine is extended.

CN113570543BActive Publication Date: 2024-09-20ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110583761.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-27
Publication Date
2024-09-20
Estimated Expiration
2041-05-27

AI Technical Summary

Technical Problem

The continuous detection work of the item analysis chip in the existing security inspection machine results in serious performance consumption and reduces the service life of the security inspection machine.

Method used

By obtaining the continuous X-ray scanning images collected by the security inspection machine, counting the brightness value distribution, and determining the abscissa value interval of the image to be analyzed based on the peak and valley characteristics, thereby obtaining and analyzing contraband, improving the effectiveness of the item analysis chip, and avoiding wasted effort. .

Benefits of technology

It improves the service life of the security inspection machine, reduces the performance consumption of the item analysis chip, and extends the service life of the security inspection machine.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113570543B
    Figure CN113570543B
Patent Text Reader

Abstract

The present application provides a security inspection package identification method, system, storage medium and device, the method comprising: obtaining continuous security inspection images collected by a security inspection machine; statistically analyzing the brightness value distribution of the X-ray scanning line graph at each moment to obtain a first histogram; determining the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; obtaining the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval; performing contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed. The above-mentioned security inspection package identification method, system, storage medium and device, by determining the security inspection image to be analyzed and performing contraband analysis, avoids the useless work of the item analysis chip in the security inspection machine, reduces losses, and solves the technical problem in the prior art that the item analysis chip continues to work, resulting in serious performance consumption and reduced service life.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of object identification, and in particular to a method, system, storage medium and device for identifying security packages. Background Art

[0002] As a security device, the security inspection machine is widely used in various public places. Generally, the security inspection machine uses a conveyor belt to send the items that need to be inspected to the inside of the security inspection machine.

[0003] The luggage items are imaged by X-rays, and then the operator observes the luggage X-ray image on the display to quickly determine whether there are any prohibited items in the luggage.

[0004] In the prior art, the security inspection method of the security inspection machine is generally that the item analysis chip in the security inspection machine identifies the items in the scanning area regardless of whether there is a package in the scanning area, that is, the item analysis chip continues to perform detection work, which consumes a lot of performance of the item analysis chip, reduces the service life of the item analysis chip, and indirectly reduces the service life of the security inspection machine. Summary of the invention

[0005] Based on this, the purpose of the present invention is to provide a security inspection package identification method, system, storage medium and device to solve the technical problem in the prior art that the object analysis chip continuously performs detection work, resulting in serious performance consumption of the object analysis chip and reducing the service life of the security inspection machine.

[0006] On one hand, the present application provides a method for identifying a security package, the method comprising:

[0007] Acquire a continuous security inspection image collected by a security inspection machine, wherein the continuous security inspection image is composed of X-ray scanning line images at each moment;

[0008] Counting the brightness value distribution of the X-ray scanning line graph at each moment to obtain a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value;

[0009] Determining the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram;

[0010] According to the horizontal coordinate value interval, acquiring the security inspection image to be analyzed from the continuous security inspection images;

[0011] Perform contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

[0012] The above-mentioned security inspection package identification method obtains continuous security inspection images collected by the security inspection machine; counts the brightness value distribution of the X-ray scanning line graph at each moment, and obtains a first histogram with each moment as the horizontal axis value and the brightness value distribution of the X-ray scanning line graph at each moment as the vertical axis value; determines the horizontal axis value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; obtains the security inspection image to be analyzed from the continuous security inspection images according to the horizontal axis value interval; performs contraband analysis on the security inspection image to be analyzed, and obtains the analysis result corresponding to the security inspection image to be analyzed. Thus, the security inspection image to be analyzed is determined according to the peak and valley characteristics of the first histogram, and the contraband analysis is performed on the security inspection image to be analyzed, thereby improving the effectiveness of the item analysis chip in analyzing the package, improving the service life of the security inspection machine, avoiding the item analysis chip in the security inspection machine from doing useless work, reducing the loss, and solving the technical problem in the prior art that the item analysis chip continuously performs detection work, resulting in serious performance consumption of the item analysis chip and reducing the service life of the security inspection machine.

[0013] Another aspect of the present application provides a security inspection package identification system, comprising:

[0014] A first acquisition module is used to acquire continuous security inspection images collected by the security inspection machine, wherein the continuous security inspection images are composed of X-ray scanning line images at each moment;

[0015] A statistical module, used for counting the brightness value distribution of the X-ray scanning line graph at each moment, and obtaining a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value;

[0016] A determination module, used to determine the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram;

[0017] A second acquisition module, used for acquiring the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval;

[0018] The analysis module is used to perform contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

[0019] On the other hand, the present application also provides a security package identification device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the security package identification method as described above when executing the program.

[0020] In addition, the security inspection package identification method according to the present invention may also have the following additional technical features:

[0021] Further, obtaining the security inspection image to be analyzed from the continuous security inspection images includes:

[0022] intercepting a fragment security inspection image corresponding to the abscissa value interval in the continuous security inspection image;

[0023] Counting the distribution of brightness values ​​of the line graph corresponding to each pixel row number in the security inspection image fragment, to obtain a second histogram with each pixel row number as abscissa value and the distribution of brightness values ​​of the line graph corresponding to each pixel row number as ordinate value;

[0024] Determining a vertical coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the second histogram;

[0025] The security inspection image corresponding to the vertical coordinate value interval in the security inspection image fragment is intercepted, which is the security inspection image to be analyzed.

[0026] Furthermore, before performing contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed, the method further includes:

[0027] generating identification information of the security inspection image to be analyzed according to feature information of the first histogram and / or the second histogram, and storing package attribute information related to the security inspection image to be analyzed using the identification information as an index, wherein the package attribute information includes the horizontal coordinate value interval and the vertical coordinate value interval; judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed;

[0028] Performing a contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed includes: when the security inspection image to be analyzed is a new security inspection image, performing a contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

[0029] Furthermore, after performing contraband analysis on the security inspection image to be analyzed and obtaining an analysis result corresponding to the security inspection image to be analyzed, the method further includes:

[0030] The analysis result is stored with the identification information as an index, and the analysis result includes: category information and coordinate information of the object in the security inspection image to be analyzed.

[0031] Furthermore, before judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed, the method further includes:

[0032] Counting the chromaticity value distribution of the X-ray scanning line graph at each moment to obtain a third histogram with each moment as the horizontal coordinate value and the chromaticity value distribution of the X-ray scanning line graph at each moment as the vertical coordinate value; counting the chromaticity value distribution of the line graph corresponding to each pixel row number in the security inspection image to be analyzed to obtain a fourth histogram with each pixel row number as the horizontal coordinate value and the chromaticity value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value; obtaining feature information of the third histogram and / or the fourth histogram, and storing the feature information of the third histogram and / or the fourth histogram using the identification information as an index;

[0033] Judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed further includes: judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed and feature information of the third histogram and / or the fourth histogram.

[0034] Furthermore, the brightness value distribution of the X-ray scanning line graph at each moment is counted to obtain a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value, including:

[0035] Determine the statistical interval of brightness values;

[0036] The number of target pixels in the X-ray scan line image at each moment or the ratio of the target pixels to the total pixels of the X-ray scan line image is counted, and the number of pixels or the ratio is used as the value of the brightness value distribution to obtain a first histogram with each moment as the horizontal axis value and the brightness value distribution of the X-ray scan line image at each moment as the vertical axis value, wherein the target pixel is a pixel whose brightness value is within the brightness value statistical interval.

[0037] Furthermore, the brightness value distribution of the line graph corresponding to each pixel row number in the security inspection image segment is counted to obtain a second histogram with each pixel row number as the horizontal coordinate value and the brightness value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value, including:

[0038] Determine the statistical interval of brightness values;

[0039] The number of target pixels in the line graph corresponding to each pixel row number in the fragment security inspection image or the ratio of the target pixels to the total pixels in the line graph is counted, and the number of pixels or the ratio is used as the value of the brightness value distribution to obtain a second histogram with each pixel row number as the horizontal axis value and the brightness value distribution of the line graph corresponding to each pixel row number as the vertical axis value, wherein the target pixel is a pixel with a brightness value within the brightness value statistical interval.

[0040] Furthermore, the method further comprises:

[0041] Determining a background area of ​​the continuous security inspection image according to the abscissa value interval and / or the ordinate value interval;

[0042] Obtaining an average brightness value and / or an average chromaticity value of the background area;

[0043] The brightness value statistical interval is adjusted according to the average brightness value and / or the average chromaticity value. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a schematic diagram of a security inspection package identification method according to a first embodiment of the present invention;

[0045] Figure 2 It is a structural diagram of a security inspection package identification method in a second embodiment of the present invention;

[0046] Figure 3 A supplementary flow chart of the security inspection package identification method in the second embodiment of the present invention;

[0047] Figure 4 A diagram showing the steps of obtaining a security inspection image to be analyzed from continuous security inspection images in the second embodiment of the present invention;

[0048] Figure 5 This is a schematic diagram of the security inspection package identification system in the third embodiment of the present invention;

[0049] Figure 6 It is a framework diagram of a security package identification device in a fourth embodiment of the present invention.

[0050] Description of main component symbols:

[0051] processor 10 Memory 20 Computer Programs 30 First acquisition module 11 Statistics Module 12 Determine the module 13 Second acquisition module 14 Analysis Module 15

[0052] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0053] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0054] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0056] Embodiment 1

[0057] See also Figure 1 , which shows a security inspection package identification method in a first embodiment of the present invention, the method comprises steps S101 to S105:

[0058] S101, obtaining continuous security inspection images collected by a security inspection machine. The continuous security inspection images are composed of X-ray scanning line images at each moment.

[0059] In the present application, when the security inspection machine is started, it will continue to work and will continue to acquire images of the scanning area, which will then be displayed on the display screen to generate continuous security inspection images.

[0060] S102, counting the brightness value distribution of the X-ray scanning line graph at each moment, and obtaining a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value;

[0061] S103, determining a horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram;

[0062] S104, acquiring the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval;

[0063] S105: Perform contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

[0064] In summary, the security inspection package identification method in the above embodiment of the present invention obtains continuous security inspection images collected by the security inspection machine; counts the brightness value distribution of the X-ray scanning line graph at each moment, and obtains a first histogram with each moment as the horizontal coordinate value and the brightness value distribution of the X-ray scanning line graph at each moment as the vertical coordinate value; determines the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; obtains the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval; performs contraband analysis on the security inspection image to be analyzed, and obtains the analysis result corresponding to the security inspection image to be analyzed. Therefore, the security inspection image to be analyzed is determined according to the peak and valley characteristics of the first histogram, and the contraband analysis is performed on the security inspection image to be analyzed, thereby improving the effectiveness of the item analysis chip for package analysis, improving the service life of the security inspection machine, avoiding the item analysis chip in the security inspection machine from doing useless work, reducing losses, and solving the technical problem in the prior art that the item analysis chip continuously performs detection work, resulting in serious performance consumption of the item analysis chip and reducing the service life of the security inspection machine.

[0065] Embodiment 2

[0066] Please refer to Figure 2 , which shows a security inspection package identification method in a second embodiment of the present invention, and the method includes steps S201 to S205:

[0067] S201, obtaining continuous security inspection images collected by the security inspection machine. The continuous security inspection images are composed of X-ray scanning line images at each moment.

[0068] S202, counting the brightness value distribution of the X-ray scanning line graph at each moment, and obtaining a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value;

[0069] Counting the brightness value distribution of the X-ray scanning line graph at each moment to obtain a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value includes:

[0070] Determine the statistical interval of brightness values;

[0071] The number of target pixels in the X-ray scan line image at each moment or the ratio of the target pixels to the total pixels of the X-ray scan line image is counted, and the number of pixels or the ratio is used as the value of the brightness value distribution to obtain a first histogram with each moment as the horizontal axis value and the brightness value distribution of the X-ray scan line image at each moment as the vertical axis value, wherein the target pixel is a pixel whose brightness value is within the brightness value statistical interval.

[0072] For further information, please refer to Figure 3 , the security package identification method also includes:

[0073] S2021. Determine a background area of ​​the continuous security inspection image according to the horizontal coordinate value interval and / or the vertical coordinate value interval;

[0074] S2022, obtaining an average brightness value and / or an average chromaticity value of the background area;

[0075] S2023. Adjust the brightness value statistical interval according to the average brightness value and / or the average chromaticity value.

[0076] Specifically, as a specific example, for example:

[0077] Previously, the average background brightness was 40, and the statistical range of brightness values ​​was 60 to 230; later, due to the aging of the radiation source, the average background brightness became 35, and the statistical range of brightness values ​​could become 55 to 225.

[0078] S203, determining a horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram;

[0079] S204, acquiring the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval;

[0080] Please refer to Figure 4 , according to the horizontal coordinate value interval, the step of acquiring the security inspection image to be analyzed from the continuous security inspection images comprises:

[0081] S2041, intercepting a fragment security inspection image corresponding to the horizontal coordinate value interval in the continuous security inspection image;

[0082] S2042, counting the distribution of brightness values ​​of the line graph corresponding to each pixel row number in the security inspection image fragment, to obtain a second histogram with each pixel row number as abscissa value and the distribution of brightness values ​​of the line graph corresponding to each pixel row number as ordinate value;

[0083] Counting the brightness value distribution of the line graph corresponding to each pixel row number in the security inspection image segment to obtain a second histogram with each pixel row number as the horizontal coordinate value and the brightness value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value includes:

[0084] Determine the statistical interval of brightness values;

[0085] The number of target pixels in the line graph corresponding to each pixel row number in the fragment security inspection image or the ratio of the target pixels to the total pixels in the line graph is counted, and the number of pixels or the ratio is used as the value of the brightness value distribution to obtain a second histogram with each pixel row number as the horizontal axis value and the brightness value distribution of the line graph corresponding to each pixel row number as the vertical axis value, wherein the target pixel is a pixel with a brightness value within the brightness value statistical interval.

[0086] S2043. Determine a vertical coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the second histogram;

[0087] S2044: intercepting a security inspection image corresponding to the vertical coordinate value interval in the security inspection image fragment, which is the security inspection image to be analyzed.

[0088] S205. Generate identification information of the security inspection image to be analyzed based on feature information of the first histogram and / or the second histogram, and store package attribute information related to the security inspection image to be analyzed using the identification information as an index, wherein the package attribute information includes the horizontal coordinate value interval and the vertical coordinate value interval; and determine whether the security inspection image to be analyzed is a new security inspection image based on the identification information of the security inspection image to be analyzed.

[0089] Before judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed, the method further includes:

[0090] Counting the chromaticity value distribution of the X-ray scanning line graph at each moment, obtaining a third histogram with each moment as the horizontal coordinate value and the chromaticity value distribution of the X-ray scanning line graph at each moment as the vertical coordinate value; counting the chromaticity value distribution of the line graph corresponding to each pixel row number in the security inspection image to be analyzed, obtaining a fourth histogram with each pixel row number as the horizontal coordinate value and the chromaticity value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value; obtaining feature information of the third histogram and / or the fourth histogram, and storing the feature information of the third histogram and / or the fourth histogram using the identification information as an index.

[0091] Judging, according to the identification information of the security inspection image to be analyzed, whether the security inspection image to be analyzed is a new security inspection image further includes:

[0092] According to the identification information of the security inspection image to be analyzed and the characteristic information of the third histogram and / or the fourth histogram, it is determined whether the security inspection image to be analyzed is a new security inspection image.

[0093] S206: Perform contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

[0094] Performing contraband analysis on the security inspection image to be analyzed, and obtaining analysis results corresponding to the security inspection image to be analyzed includes:

[0095] In the case that the security inspection image to be analyzed is a new security inspection image, a contraband analysis is performed on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

[0096] S207: Store the analysis result using the identification information as an index.

[0097] The analysis result includes: category information and coordinate information of the object in the security inspection image to be analyzed.

[0098] In summary, the security inspection package identification method in the above embodiment of the present invention obtains continuous security inspection images collected by the security inspection machine; counts the brightness value distribution of the X-ray scanning line graph at each moment, and obtains a first histogram with each moment as the horizontal coordinate value and the brightness value distribution of the X-ray scanning line graph at each moment as the vertical coordinate value; determines the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; obtains the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval; performs contraband analysis on the security inspection image to be analyzed, and obtains the analysis result corresponding to the security inspection image to be analyzed. Therefore, the security inspection image to be analyzed is determined according to the peak and valley characteristics of the first histogram, and the contraband analysis is performed on the security inspection image to be analyzed, thereby improving the effectiveness of the item analysis chip for package analysis, improving the service life of the security inspection machine, avoiding the item analysis chip in the security inspection machine from doing useless work, reducing losses, and solving the technical problem in the prior art that the item analysis chip continuously performs detection work, resulting in serious performance consumption of the item analysis chip and reducing the service life of the security inspection machine.

[0099] Embodiment 3

[0100] See also Figure 5 , which shows a security inspection package identification system in a third embodiment of the present invention, the system comprises:

[0101] A first acquisition module 11 is used to acquire continuous security inspection images collected by the security inspection machine, wherein the continuous security inspection images are composed of X-ray scanning line images at each moment;

[0102] A statistical module 12 is used to count the brightness value distribution of the X-ray scanning line graph at each moment, and obtain a first histogram with each moment as the horizontal axis value and the brightness value distribution of the X-ray scanning line graph at each moment as the vertical axis value;

[0103] A determination module 13, used to determine the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram;

[0104] A second acquisition module 14, configured to acquire the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval;

[0105] The analysis module 15 is used to perform contraband analysis on the security inspection image to be analyzed, and obtain an analysis result corresponding to the security inspection image to be analyzed.

[0106] Furthermore, the second acquisition module includes:

[0107] A first interception unit, used for intercepting a fragment security inspection image corresponding to the horizontal coordinate value interval in the continuous security inspection image;

[0108] A first statistical unit is used to count the brightness value distribution of the line graph corresponding to each pixel row number in the segment security inspection image to obtain a second histogram with each pixel row number as abscissa value and the brightness value distribution of the line graph corresponding to each pixel row number as a ordinate value;

[0109] A first determining unit, configured to determine a vertical coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the second histogram;

[0110] The second interception unit is used to intercept the security inspection image corresponding to the vertical coordinate value interval in the security inspection image fragment, which is the security inspection image to be analyzed.

[0111] In some optional embodiments, the analysis module also includes:

[0112] a judging unit, configured to generate identification information of the security inspection image to be analyzed according to feature information of the first histogram and / or the second histogram, and store package attribute information related to the security inspection image to be analyzed using the identification information as an index, wherein the package attribute information includes the horizontal coordinate value interval and the vertical coordinate value interval; and judge whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed.

[0113] Furthermore, the analysis module includes:

[0114] The analyzing unit is used to perform contraband analysis on the security inspection image to be analyzed when the security inspection image to be analyzed is a new security inspection image, so as to obtain an analysis result corresponding to the security inspection image to be analyzed.

[0115] In some optional embodiments, the analysis module further includes:

[0116] The storage module is used to store the analysis result with the identification information as an index. The analysis result includes: category information and coordinate information of the object in the security inspection image to be analyzed.

[0117] In some optional embodiments, the determining unit further includes:

[0118] A storage unit is used to count the chromaticity value distribution of the X-ray scanning line graph at each moment to obtain a third histogram with each moment as the horizontal coordinate value and the chromaticity value distribution of the X-ray scanning line graph at each moment as the vertical coordinate value; count the chromaticity value distribution of the line graph corresponding to each pixel row number in the security inspection image to be analyzed to obtain a fourth histogram with each pixel row number as the horizontal coordinate value and the chromaticity value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value; obtain feature information of the third histogram and / or the fourth histogram, and store the feature information of the third histogram and / or the fourth histogram using the identification information as an index.

[0119] Furthermore, the judging unit further includes:

[0120] The judging subunit is used to judge whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed and the characteristic information of the third histogram and / or the fourth histogram.

[0121] Furthermore, the statistics module includes:

[0122] A second determining unit, used to determine a brightness value statistical interval;

[0123] The second statistical unit is used to count the number of target pixels in the X-ray scanning line image at each moment or the ratio of the target pixels to the total pixels of the X-ray scanning line image, and use the number of pixels or the ratio as the value of the brightness value distribution to obtain a first histogram with each moment as the horizontal axis value and the brightness value distribution of the X-ray scanning line image at each moment as the vertical axis value, wherein the target pixel is a pixel whose brightness value is within the brightness value statistical interval.

[0124] Furthermore, the first statistical unit includes:

[0125] Determine a subunit, used to determine a brightness value statistical interval;

[0126] The statistical subunit is used to count the number of target pixels in the line graph corresponding to each pixel row number in the fragment security inspection image or the ratio of the target pixels to the total pixels in the line graph, and use the number of pixels or the ratio as the value of the brightness value distribution to obtain a second histogram with each pixel row number as the horizontal coordinate value and the brightness value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value, wherein the target pixel is a pixel whose brightness value is within the brightness value statistical interval.

[0127] In some optional embodiments, the security package identification system further includes:

[0128] A background area determination module, used to determine the background area of ​​the continuous security inspection image according to the horizontal coordinate value interval and / or the vertical coordinate value interval;

[0129] A third acquisition module, used to acquire an average brightness value and / or an average chromaticity value of the background area;

[0130] The adjustment module is used to adjust the brightness value statistical interval according to the average brightness value and / or the average chromaticity value.

[0131] In summary, the security inspection package identification system in the above embodiment of the present invention obtains continuous security inspection images collected by the security inspection machine; counts the brightness value distribution of the X-ray scanning line graph at each moment, and obtains a first histogram with each moment as the horizontal coordinate value and the brightness value distribution of the X-ray scanning line graph at each moment as the vertical coordinate value; determines the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; obtains the security inspection image to be analyzed from the continuous security inspection images according to the horizontal coordinate value interval; performs contraband analysis on the security inspection image to be analyzed, and obtains the analysis result corresponding to the security inspection image to be analyzed. Therefore, the security inspection image to be analyzed is determined according to the peak and valley characteristics of the first histogram, and the contraband analysis is performed on the security inspection image to be analyzed, thereby improving the effectiveness of the item analysis chip for package analysis, improving the service life of the security inspection machine, avoiding the item analysis chip in the security inspection machine from doing useless work, reducing losses, and solving the technical problem that the item analysis chip in the prior art continuously performs detection work, resulting in serious performance consumption of the item analysis chip and reducing the service life of the security inspection machine.

[0132] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned security inspection package identification method is implemented.

[0133] Embodiment 4

[0134] The present invention also provides a security inspection package identification device, see Figure 6 , shown is a security package identification device according to a fourth embodiment of the present invention, comprising a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein the processor implements the security package identification method as described above when executing the program.

[0135] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes stored in the memory 20 or process data, such as executing access restriction programs.

[0136] The memory 20 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 20 may be an internal storage unit of a data processing device in some embodiments, such as a hard disk of the data processing device. The memory 20 may also be an external storage device of a data processing device in other embodiments, such as a plug-in hard disk equipped on the data processing device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 20 may also include both an internal storage unit of a data processing device and an external storage device. The memory 20 may be used not only to store application software and various types of data installed in the data processing device, but also to temporarily store data that has been output or is to be output.

[0137] It should be pointed out that Figure 6 The structure shown does not constitute a limitation on the data processing device. In other embodiments, the data processing device may include fewer or more components than shown in the figure, or combine some components, or arrange the components differently.

[0138] In summary, the security inspection package identification device in the above embodiment of the present invention obtains the continuous security inspection images collected by the security inspection machine; counts the brightness value distribution of the X-ray scanning line graph at each moment, and obtains a first histogram with each moment as the horizontal axis value and the brightness value distribution of the X-ray scanning line graph at each moment as the vertical axis value; determines the horizontal axis value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; obtains the security inspection image to be analyzed from the continuous security inspection images according to the horizontal axis value interval; performs contraband analysis on the security inspection image to be analyzed, and obtains the analysis result corresponding to the security inspection image to be analyzed. Therefore, the security inspection image to be analyzed is determined according to the peak and valley characteristics of the first histogram, and the contraband analysis is performed on the security inspection image to be analyzed, thereby improving the effectiveness of the item analysis chip for package analysis, improving the service life of the security inspection machine, avoiding the item analysis chip in the security inspection machine from doing useless work, reducing losses, and solving the technical problem in the prior art that the item analysis chip continuously performs detection work, resulting in serious performance consumption of the item analysis chip and reducing the service life of the security inspection machine.

[0139] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0140] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0141] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0142] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0143] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A security inspection package identification method, characterized in that: The method comprises: Acquire a continuous security inspection image collected by a security inspection machine, wherein the continuous security inspection image is composed of X-ray scanning line images at each moment; Counting the brightness value distribution of the X-ray scanning line graph at each moment to obtain a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value; Determining the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; intercepting a fragment security inspection image corresponding to the abscissa value interval in the continuous security inspection image; Determine the statistical interval of brightness values; Counting the number of target pixels in the line graph corresponding to each pixel row number in the security inspection image fragment or the ratio of the target pixels to the total pixels in the line graph, using the number of pixels or the ratio as the value of the brightness value distribution, and obtaining a second histogram with each pixel row number as the abscissa value and the brightness value distribution of the line graph corresponding to each pixel row number as the ordinate value, wherein the target pixel is a pixel whose brightness value is within the brightness value statistical interval; Determining a vertical coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the second histogram; intercepting the security inspection image corresponding to the vertical coordinate value interval in the security inspection image fragment as the security inspection image to be analyzed; Perform contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

2. The method according to claim 1, characterized in that Before the step of performing contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed, the method further includes: generating identification information of the security inspection image to be analyzed according to feature information of the first histogram and / or the second histogram, and storing package attribute information related to the security inspection image to be analyzed using the identification information as an index, wherein the package attribute information includes the horizontal coordinate value interval and the vertical coordinate value interval; judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed; Performing a contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed includes: when the security inspection image to be analyzed is a new security inspection image, performing a contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

3. The method according to claim 2, characterized in that After performing contraband analysis on the security inspection image to be analyzed and obtaining an analysis result corresponding to the security inspection image to be analyzed, the method further includes: The analysis result is stored with the identification information as an index, and the analysis result includes: category information and coordinate information of the object in the security inspection image to be analyzed.

4. The method according to claim 2, characterized in that: Before judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed, the method further includes: Counting the chromaticity value distribution of the X-ray scanning line graph at each moment, and obtaining a third histogram with each moment as the horizontal coordinate value and the chromaticity value distribution of the X-ray scanning line graph at each moment as the vertical coordinate value; counting the chromaticity value distribution of the line graph corresponding to each pixel row number in the security inspection image to be analyzed, and obtaining a fourth histogram with each pixel row number as the horizontal coordinate value and the chromaticity value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value; obtaining feature information of the third histogram and / or the fourth histogram, and storing the feature information of the third histogram and / or the fourth histogram with the identification information as the index; Judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed further includes: judging whether the security inspection image to be analyzed is a new security inspection image according to the identification information of the security inspection image to be analyzed and feature information of the third histogram and / or the fourth histogram.

5. The method according to claim 1, characterized in that Counting the brightness value distribution of the X-ray scanning line graph at each moment to obtain a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value includes: Determine the statistical interval of brightness values; The number of target pixels in the X-ray scan line image at each moment or the ratio of the target pixels to the total pixels of the X-ray scan line image is counted, and the number of pixels or the ratio is used as the value of the brightness value distribution to obtain a first histogram with each moment as the horizontal axis value and the brightness value distribution of the X-ray scan line image at each moment as the vertical axis value, wherein the target pixel is a pixel whose brightness value is within the brightness value statistical interval.

6. The method according to claim 1 or 5, characterized in that: The method further comprises: Determining a background area of ​​the continuous security inspection image according to the abscissa value interval and / or the ordinate value interval; Obtaining an average brightness value and / or an average chromaticity value of the background area; The brightness value statistical interval is adjusted according to the average brightness value and / or the average chromaticity value.

7. A security inspection package identification system, characterized in that: include: A first acquisition module is used to acquire continuous security inspection images collected by the security inspection machine, wherein the continuous security inspection images are composed of X-ray scanning line images at each moment; A statistical module, used for counting the brightness value distribution of the X-ray scanning line graph at each moment, and obtaining a first histogram with each moment as the abscissa value and the brightness value distribution of the X-ray scanning line graph at each moment as the ordinate value; A determination module, used to determine the horizontal coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the first histogram; The second acquisition module is used to intercept the segment security inspection image corresponding to the horizontal coordinate value interval in the continuous security inspection image; and determine the brightness value statistical interval; Counting the number of target pixels in the line graph corresponding to each pixel row number in the security inspection image fragment or the ratio of the target pixels to the total pixels in the line graph, taking the number of pixels or the ratio as the value of the brightness value distribution, obtaining a second histogram with each pixel row number as the horizontal coordinate value and the brightness value distribution of the line graph corresponding to each pixel row number as the vertical coordinate value, wherein the target pixel is a pixel whose brightness value is within the brightness value statistical interval; determining the vertical coordinate value interval of the security inspection image to be analyzed according to the peak and valley characteristics of the second histogram; and intercepting the security inspection image corresponding to the vertical coordinate value interval in the security inspection image fragment as the security inspection image to be analyzed; The analysis module is used to perform contraband analysis on the security inspection image to be analyzed to obtain an analysis result corresponding to the security inspection image to be analyzed.

8. A security inspection package identification 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 program, the security inspection package identification method according to any one of claims 1 to 6 is implemented.