[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113076880A - Hazardous article pattern recognition algorithm - Google Patents

Hazardous article pattern recognition algorithm Download PDF

Info

Publication number
CN113076880A
CN113076880A CN202110369262.5A CN202110369262A CN113076880A CN 113076880 A CN113076880 A CN 113076880A CN 202110369262 A CN202110369262 A CN 202110369262A CN 113076880 A CN113076880 A CN 113076880A
Authority
CN
China
Prior art keywords
image
dangerous goods
characteristic curve
wavelet
curvature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110369262.5A
Other languages
Chinese (zh)
Other versions
CN113076880B (en
Inventor
李元伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Industry Technical College
Original Assignee
Guangdong Industry Technical College
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Industry Technical College filed Critical Guangdong Industry Technical College
Priority to CN202110369262.5A priority Critical patent/CN113076880B/en
Publication of CN113076880A publication Critical patent/CN113076880A/en
Application granted granted Critical
Publication of CN113076880B publication Critical patent/CN113076880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Image Analysis (AREA)
  • Analysing Materials By The Use Of Radiation (AREA)

Abstract

本发明公开了一种危险品图形识别算法,属于电子与信息技术领域,该识别算法具体步骤如下:(1)X射线探测;(2)图像小波分解;(3)图像小波重构;(4)形态学填充;(5)图像匹配;(6)特征曲线检测;本发明对于平均有效原子序数大于10的物体采用X射线图像进行形状检测和匹配,而对于平均有效原子序数小于10的目标,则利用其高低灰度值拟合的特征曲线与标准危险品的特征曲线进行匹配;通过两种方式相结合对危险品进行检测,可以较全面的检测出行李中携带的危险品,有利于提高危险品检测的效率,进而有利于降低安检人员的劳动强度。

Figure 202110369262

The invention discloses a graphic identification algorithm for dangerous goods, belonging to the field of electronics and information technology. The specific steps of the identification algorithm are as follows: (1) X-ray detection; (2) image wavelet decomposition; (3) image wavelet reconstruction; (4) image wavelet reconstruction; ) morphological filling; (5) image matching; (6) characteristic curve detection; the present invention uses X-ray images for shape detection and matching for objects with an average effective atomic number greater than 10, and for objects with an average effective atomic number less than 10, The characteristic curve fitted by its high and low gray value is used to match the characteristic curve of standard dangerous goods; the combination of the two methods to detect the dangerous goods can comprehensively detect the dangerous goods carried in the luggage, which is conducive to improving the The efficiency of dangerous goods detection is conducive to reducing the labor intensity of security inspectors.

Figure 202110369262

Description

Hazardous article pattern recognition algorithm
Technical Field
The invention relates to the technical field of electronics and information, in particular to a dangerous goods pattern recognition algorithm.
Background
Through retrieval, the Chinese patent number CN105427712B discloses a dangerous goods automatic identification device and method based on three-dimensional X-ray imaging, the detection method of the X-ray detection system is single, and the detection accuracy is low; at present, safety inspection equipment such as magnetic needles, metal weapon detection doors, X-ray detectors and the like are mostly arranged at places needing safety inspection such as airports, stations, government buildings, prisons and the like, and can find dangerous goods such as weapons, common explosives and the like, so that the safety inspection equipment plays an important role in safety inspection work; however, the devices are limited by the original technical conditions, are not satisfactory in the actual use process, and have high false alarm rate and missed detection rate; with the development of scientific technology, criminals and terrorists have gradually begun to use high and new technologies to manufacture new weapons, explosives, and the like; like high-precision bombs, plastic explosives, many drugs and the like manufactured by utilizing an integrated circuit technology, the traditional detection means cannot be used; therefore, it becomes important to invent a dangerous goods pattern recognition algorithm;
the existing dangerous goods identification method mostly adopts the traditional safety inspection equipment to cooperate with safety inspection personnel to identify dangerous goods, although dangerous goods such as weapons, common explosives and the like can be found, the labor intensity of the safety inspection personnel is easily increased, and the traditional safety inspection equipment is limited by the original technical conditions, so that high-precision bombs, plastic explosives, a plurality of drugs and the like manufactured by the integrated circuit technology cannot be quickly identified, and the identification effect is not ideal for low-density goods such as kerosene, ethanol and the like; therefore, a dangerous goods pattern recognition algorithm is proposed.
Disclosure of Invention
The invention aims to solve the defects in the prior art and provides a dangerous article image recognition algorithm.
In order to achieve the purpose, the invention adopts the following technical scheme:
a dangerous goods pattern recognition algorithm comprises the following specific steps:
(1) x-ray detection: obtaining an average effective atomic sequence value of an object image to be detected by an X-ray detector, jumping to the step (2) to perform image wavelet decomposition on the object image to be detected if the average effective atomic sequence value is greater than or equal to 10, and jumping to the step (6) to perform characteristic curve detection on the object image to be detected if the average effective atomic sequence value is less than or equal to 10;
(2) image wavelet decomposition: performing one-layer wavelet decomposition on an object image to be detected by adopting a wavelet decomposition method, wherein each layer of image is decomposed into a low-frequency wavelet coefficient matrix and a high-frequency wavelet coefficient matrix, the low-frequency coefficient represents an approximate part of the image, and the high-frequency wavelet coefficient matrix comprises coefficients in the horizontal direction, the vertical direction and the diagonal direction;
(3) and (3) image wavelet reconstruction: carrying out edge detection on an image approximate part, namely a low-frequency part by using a Canny algorithm to obtain a sub-image of the low-frequency part; simultaneously, utilizing Roberts and Sobel algorithms to carry out edge detection on coefficients in the horizontal direction, the vertical direction and the diagonal direction of the image, namely the high-frequency part, so as to obtain a sub-image of the high-frequency part; performing wavelet reconstruction on the sub-image of the low-frequency part and the sub-image of the high-frequency part to obtain an edge image;
(4) morphological filling: performing morphological filling on the edge image by using a hole filling mode to obtain an enhanced edge image to be detected;
(5) image matching: constructing a dangerous article standard image, and matching the enhanced edge image to be detected with the dangerous article standard image by using a curvature contour angular point method to obtain a dangerous article judgment result of a curvature angular point;
(6) and (3) characteristic curve detection: and constructing a characteristic curve of the common dangerous goods, and simultaneously carrying out dangerous goods detection matching on the image of the object to be detected by adopting an inorganic matter characteristic curve method to obtain a curved dangerous goods judgment result.
Preferably, the wavelet decomposition of the image in the step (2) needs a scale function in a two-dimensional case
Figure BDA0003008657670000031
And two-dimensional wavelet psiH(x,y)、ψV(x, y) and ψD(x, y), each of which can be expressed as a one-dimensional scale function
Figure BDA0003008657670000032
And ψ, as follows:
Figure BDA0003008657670000033
its two-dimensional separable direction-sensitive wavelet can be represented as:
Figure BDA0003008657670000034
Figure BDA0003008657670000035
ψD(x,y)=ψ(x)ψ(y) (4)
in the formula: psiH、ψVAnd psiDRespectively representing the image intensity variation in different directions.
Preferably, given the separable two-dimensional scale and wavelet functions, the scale and wavelet basis functions are defined as follows:
Figure BDA0003008657670000036
Figure BDA0003008657670000037
in the formula: i ═ { H, V, D } represents wavelets in different directions;
then an f (x, y) discrete wavelet transform of size M × N:
Figure BDA0003008657670000041
Figure BDA0003008657670000042
in the formula: j is a function of0In order to be the initial scale, the method comprises the following steps,
Figure BDA0003008657670000043
define a dimension of j0F (x, y) approximation image; wψ(j, m, n) contains detail images in horizontal, vertical, and diagonal directions; let j00, and N is selected to be M2jJ-0, 1,2, …, j-1 and m, n-0, 1,2, … 2j-1。
Preferably, the wavelet reconstruction formula in step (3) is as follows:
Figure BDA0003008657670000044
preferably, the hole filling formula in step (4) is as follows:
Figure BDA0003008657670000045
in the formula: k 1,2,3.
Preferably, the curvature in step (5) is mathematically defined as follows: taking an arc section from a point M on the smooth arc, wherein the length of the arc section is delta s, and the corresponding tangent rotation angle is delta alpha, and defining the arc section;
wherein the average curvature over Δ S is:
Figure BDA0003008657670000046
the curvature at point M is:
Figure BDA0003008657670000047
the formula for calculating the discrete curvature by using a curve parameter equation is as follows:
Figure BDA0003008657670000048
preferably, the curvature in step (5) includes global and local curvatures of the image, and the specific calculation process is as follows:
s1: calculating the average curvature of each to-be-detected enhanced edge image profile;
s2: then, judging the current contour point by taking the average curvature of the contour as a threshold, and if the current curvature is smaller than the threshold, determining the current contour point as a real contour angular point;
s3: after the angular points of all to-be-detected enhanced edge images are extracted, performing angular point matching on the to-be-detected enhanced edge images and the standard images of the dangerous goods;
when the corner points are matchedBuilding a corner feature descriptor, wherein the corner feature descriptor is defined as: suppose P1、P2And P3Three adjacent corner points on the contour curve S with curvatures of K1、K2And K3,P1To P2Is a distance L1,P2To P3Is L2) Then P is2The descriptor B is:
B=(L1+L2)(K3-K1) (14)。
preferably, the image matching in step (5) specifically comprises the following steps:
SS 1: extracting real corner points of a complete edge image with distinct outline features and a standard image of the dangerous goods;
SS 2: respectively solving descriptors B and B' of each enhanced edge image corner point to be detected and each dangerous article standard image corner point by using a formula (14);
SS 3: performing sequential difference operation on each corner point descriptor in the enhanced edge image to be detected and all corner point descriptors in the standard image of the hazardous article, wherein if the ratio of the first term to the second term of the vector of the difference value is smaller than a threshold value, and the threshold value is 0.5, the diagonal points of the two images are matched, otherwise, the diagonal points are not matched;
SS 4: and counting the matching similarity percentage of the corner points of the same target contour, and if the similarity is greater than a preset value, determining that the article is a dangerous article.
Preferably, the specific process of detecting the characteristic curve in the step (6) is as follows:
SSS 1: acquiring high and low energy gray values of an object image to be detected through an X-ray security inspection machine, and drawing a characteristic curve of the object image to be detected according to the high and low energy gray values;
SSS 2: constructing a characteristic curve of a common dangerous article, and taking the characteristic curve as a standard for detecting the dangerous article;
SSS 3: comparing the characteristic curve of the image of the object to be detected with the characteristic curve of the common dangerous goods; and if the characteristic curve of the image of the object to be detected is close to the characteristic curve of the dangerous goods, judging that the object is the dangerous goods, otherwise, judging that the object is normal.
Compared with the prior art, the invention has the beneficial effects that:
1. according to the method, the average effective atomic number value of an object is obtained by an X-ray detector, the detected object is divided into two types, the shape of the object with the average effective atomic number larger than 10 is detected and matched by adopting an X-ray image, and for the target with the average effective atomic number smaller than 10, a characteristic curve fitted by using the high-low gray value of the target is matched with a characteristic curve of a standard dangerous article; the dangerous goods are detected by combining two modes, so that the dangerous goods carried in the luggage can be comprehensively detected, the efficiency of dangerous goods detection is favorably improved, and the labor intensity of security personnel is favorably reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is an overall flowchart of a hazardous material pattern recognition algorithm according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention.
Example 1
A dangerous goods pattern recognition algorithm comprises the following specific steps:
(1) x-ray detection: obtaining an average effective atomic sequence value of an object image to be detected by an X-ray detector, jumping to the step (2) to perform image wavelet decomposition on the object image to be detected if the average effective atomic sequence value is greater than or equal to 10, and jumping to the step (6) to perform characteristic curve detection on the object image to be detected if the average effective atomic sequence value is less than or equal to 10;
(2) image wavelet decomposition: performing one-layer wavelet decomposition on an object image to be detected by adopting a wavelet decomposition method, wherein each layer of image is decomposed into a low-frequency wavelet coefficient matrix and a high-frequency wavelet coefficient matrix, the low-frequency coefficient represents an approximate part of the image, and the high-frequency wavelet coefficient matrix comprises coefficients in the horizontal direction, the vertical direction and the diagonal direction;
(3) and (3) image wavelet reconstruction: carrying out edge detection on an image approximate part, namely a low-frequency part by using a Canny algorithm to obtain a sub-image of the low-frequency part; simultaneously, utilizing Roberts and Sobel algorithms to carry out edge detection on coefficients in the horizontal direction, the vertical direction and the diagonal direction of the image, namely the high-frequency part, so as to obtain a sub-image of the high-frequency part; performing wavelet reconstruction on the sub-image of the low-frequency part and the sub-image of the high-frequency part to obtain an edge image;
(4) morphological filling: performing morphological filling on the edge image by using a hole filling mode to obtain an enhanced edge image to be detected;
(5) image matching: constructing a dangerous article standard image, and matching the enhanced edge image to be detected with the dangerous article standard image by using a curvature contour angular point method to obtain a dangerous article judgment result of a curvature angular point;
(6) and (3) characteristic curve detection: and constructing a characteristic curve of the common dangerous goods, and simultaneously carrying out dangerous goods detection matching on the image of the object to be detected by adopting an inorganic matter characteristic curve method to obtain a curved dangerous goods judgment result.
In the step (2), the image wavelet decomposition needs a scale function under the condition of two dimensions
Figure BDA0003008657670000081
And two-dimensional wavelet psiH(x,y)、ψV(x, y) and ψD(x, y), each of which can be expressed as a one-dimensional scale function
Figure BDA0003008657670000082
And ψ, as follows:
Figure BDA0003008657670000083
its two-dimensional separable direction-sensitive wavelet can be represented as:
Figure BDA0003008657670000084
Figure BDA0003008657670000085
ψD(x,y)=ψ(x)ψ(y) (4)
in the formula: psiH、ψVAnd psiDRespectively representing the image intensity variation in different directions.
After the two-dimensional scale and wavelet function are given separately, the scale and wavelet basis functions are defined as follows:
Figure BDA0003008657670000086
Figure BDA0003008657670000087
in the formula: i ═ { H, V, D } represents wavelets in different directions;
then an f (x, y) discrete wavelet transform of size M × N:
Figure BDA0003008657670000091
Figure BDA0003008657670000092
in the formula: j is a function of0In order to be the initial scale, the method comprises the following steps,
Figure BDA0003008657670000093
define a dimension of j0F (x, y) approximation image; wψ(j, m, n) contains detail images in horizontal, vertical, and diagonal directions; let j00, and N is selected to be M2jJ-0, 1,2, …, j-1 and m, n-0, 1,2, … 2j-1。
The wavelet reconstruction formula in the step (3) is as follows:
Figure BDA0003008657670000094
the hole filling formula in the step (4) is as follows:
Figure BDA0003008657670000095
in the formula: k 1,2,3.
The mathematical definition of the curvature of step (5) is as follows: taking an arc section from a point M on the smooth arc, wherein the length of the arc section is delta s, and the corresponding tangent rotation angle is delta alpha, and defining the arc section;
wherein the average curvature over Δ S is:
Figure BDA0003008657670000096
the curvature at point M is:
Figure BDA0003008657670000097
the formula for calculating the discrete curvature by using a curve parameter equation is as follows:
Figure BDA0003008657670000098
the curvature in the step (5) comprises global curvature and local curvature of the image, and the specific calculation process is as follows:
s1: calculating the average curvature of each to-be-detected enhanced edge image profile;
s2: then, judging the current contour point by taking the average curvature of the contour as a threshold, and if the current curvature is smaller than the threshold, determining the current contour point as a real contour angular point;
s3: after the angular points of all to-be-detected enhanced edge images are extracted, performing angular point matching on the to-be-detected enhanced edge images and the standard images of the dangerous goods;
when the corner points are matched, a corner point feature descriptor is constructed, wherein the corner point feature descriptor is defined as: suppose P1、P2And P3Three adjacent corner points on the contour curve S with curvatures of K1、K2And K3,P1To P2Is a distance L1,P2To P3Is L2) Then P is2The descriptor B is:
B=(L1+L2)(K3-K1) (14)。
the image matching in the step (5) comprises the following specific steps:
SS 1: extracting real corner points of a complete edge image with distinct outline features and a standard image of the dangerous goods;
SS 2: respectively solving descriptors B and B' of each enhanced edge image corner point to be detected and each dangerous article standard image corner point by using a formula (14);
SS 3: performing sequential difference operation on each corner point descriptor in the enhanced edge image to be detected and all corner point descriptors in the standard image of the hazardous article, wherein if the ratio of the first term to the second term of the vector of the difference value is smaller than a threshold value, and the threshold value is 0.5, the diagonal points of the two images are matched, otherwise, the diagonal points are not matched;
SS 4: and counting the matching similarity percentage of the corner points of the same target contour, and if the similarity is greater than a preset value, determining that the article is a dangerous article.
The specific process of detecting the characteristic curve in the step (6) is as follows:
SSS 1: acquiring high and low energy gray values of an object image to be detected through an X-ray security inspection machine, and drawing a characteristic curve of the object image to be detected according to the high and low energy gray values;
SSS 2: constructing a characteristic curve of a common dangerous article, and taking the characteristic curve as a standard for detecting the dangerous article;
SSS 3: comparing the characteristic curve of the image of the object to be detected with the characteristic curve of the common dangerous goods; and if the characteristic curve of the image of the object to be detected is close to the characteristic curve of the dangerous goods, judging that the object is the dangerous goods, otherwise, judging that the object is normal.
In order to verify the image matching effect, an X-ray dangerous goods image with the size of 256 × 256 is selected as a sample (the sample comprises a pistol, handcuffs and a grenade), simulation is carried out by adopting matlab7.1, and the specific test data is as follows:
Figure BDA0003008657670000111
example 2
A dangerous goods pattern recognition algorithm comprises the following specific steps:
(1) x-ray detection: obtaining an average effective atomic sequence value of an object image to be detected by an X-ray detector, jumping to the step (2) to perform image wavelet decomposition on the object image to be detected if the average effective atomic sequence value is greater than or equal to 10, and jumping to the step (6) to perform characteristic curve detection on the object image to be detected if the average effective atomic sequence value is less than or equal to 10;
(2) image wavelet decomposition: performing one-layer wavelet decomposition on an object image to be detected by adopting a wavelet decomposition method, wherein each layer of image is decomposed into a low-frequency wavelet coefficient matrix and a high-frequency wavelet coefficient matrix, the low-frequency coefficient represents an approximate part of the image, and the high-frequency wavelet coefficient matrix comprises coefficients in the horizontal direction, the vertical direction and the diagonal direction;
(3) and (3) image wavelet reconstruction: carrying out edge detection on an image approximate part, namely a low-frequency part by using a Canny algorithm to obtain a sub-image of the low-frequency part; simultaneously, utilizing Roberts and Sobel algorithms to carry out edge detection on coefficients in the horizontal direction, the vertical direction and the diagonal direction of the image, namely the high-frequency part, so as to obtain a sub-image of the high-frequency part; performing wavelet reconstruction on the sub-image of the low-frequency part and the sub-image of the high-frequency part to obtain an edge image;
(4) morphological filling: performing morphological filling on the edge image by using a hole filling mode to obtain an enhanced edge image to be detected;
(5) image matching: constructing a dangerous article standard image, and matching the enhanced edge image to be detected with the dangerous article standard image by using a curvature contour angular point method to obtain a dangerous article judgment result of a curvature angular point;
(6) and (3) characteristic curve detection: constructing a common dangerous article characteristic curve, and simultaneously carrying out dangerous article detection matching on an object image to be detected by adopting an inorganic matter characteristic curve method to obtain a curved dangerous article judgment result;
the rest is the same as example 1.
In order to utilize the verification characteristic curve to detect the effect of inorganic dangerous goods, firecrackers with different thicknesses are selected in the test, the firecrackers are detected through the established firecracker characteristic curve, and the test detection data are as follows:
Figure BDA0003008657670000121
Figure BDA0003008657670000131
example 3
A dangerous goods pattern recognition algorithm comprises the following specific steps:
(1) x-ray detection: obtaining an average effective atomic sequence value of an object image to be detected by an X-ray detector, jumping to the step (2) to perform image wavelet decomposition on the object image to be detected if the average effective atomic sequence value is greater than or equal to 10, and jumping to the step (6) to perform characteristic curve detection on the object image to be detected if the average effective atomic sequence value is less than or equal to 10;
(2) image wavelet decomposition: performing one-layer wavelet decomposition on an object image to be detected by adopting a wavelet decomposition method, wherein each layer of image is decomposed into a low-frequency wavelet coefficient matrix and a high-frequency wavelet coefficient matrix, the low-frequency coefficient represents an approximate part of the image, and the high-frequency wavelet coefficient matrix comprises coefficients in the horizontal direction, the vertical direction and the diagonal direction;
(3) and (3) image wavelet reconstruction: carrying out edge detection on an image approximate part, namely a low-frequency part by using a Canny algorithm to obtain a sub-image of the low-frequency part; simultaneously, utilizing Roberts and Sobel algorithms to carry out edge detection on coefficients in the horizontal direction, the vertical direction and the diagonal direction of the image, namely the high-frequency part, so as to obtain a sub-image of the high-frequency part; performing wavelet reconstruction on the sub-image of the low-frequency part and the sub-image of the high-frequency part to obtain an edge image;
(4) morphological filling: performing morphological filling on the edge image by using a hole filling mode to obtain an enhanced edge image to be detected;
(5) image matching: constructing a dangerous article standard image, and matching the enhanced edge image to be detected with the dangerous article standard image by using a curvature contour angular point method to obtain a dangerous article judgment result of a curvature angular point;
(6) and (3) characteristic curve detection: constructing a common dangerous article characteristic curve, and simultaneously carrying out dangerous article detection matching on an object image to be detected by adopting an inorganic matter characteristic curve method to obtain a curved dangerous article judgment result;
the rest is the same as example 1.
In order to test the effectiveness of the invention, several articles including a cutter, a toy gun, bottled alcohol, gasoline and the like are selected as test samples, the test samples are respectively and independently mixed with other articles, a dangerous article shape image database (28 types) and common dangerous article characteristic curves (15 types) are established as dangerous article judgment standards, a plurality of tests are carried out in different directions and positions, and the detection accuracy rates of different articles are specifically as follows:
article with a cover Number of samples Rate of accuracy False detection rate Rate of missed examination
Cutting tool 80 91.25% 7.50% 8.13%
Toy gun 80 87.50% 5.20% 7.50%
Gasoline (gasoline) 80 92.00% 6.25% 5.00%
Bottled alcohol 80 90.00% 5.00% 7.13%
As can be seen from the data tables of the embodiment 1, the embodiment 2 and the embodiment 3, the dangerous goods object detection accuracy of the invention is high, and the false detection rate and the omission factor are both below 10%, so that the invention can comprehensively detect the dangerous goods carried in the luggage, improve the efficiency of dangerous goods detection, and is beneficial to reducing the labor intensity of security personnel.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (9)

1.一种危险品图形识别算法,其特征在于,该识别算法具体步骤如下:1. a dangerous goods graphic identification algorithm, is characterized in that, the concrete steps of this identification algorithm are as follows: (1)X射线探测:由X射线探测器获取待测物体图像平均有效原子序数值,若其值大于等于10时,则跳到步骤(2)对待测物体图像进行图像小波分解,若其值小于等于10时,则跳到步骤(6)对待测物体图像进行特征曲线检测;(1) X-ray detection: The average effective atomic number value of the image of the object to be measured is obtained by the X-ray detector. If the value is greater than or equal to 10, skip to step (2) to perform image wavelet decomposition on the image of the object to be measured. When less than or equal to 10, skip to step (6) to perform characteristic curve detection on the image of the object to be measured; (2)图像小波分解:采用小波分解方法对待测物体图像进行一层小波分解,每一层图像均被分解为低频和高频的小波系数矩阵,其中低频系数代表了图像的近似部分,而高频则包含了水平方向、垂直方向和对角线方向系数;(2) Image wavelet decomposition: The image of the object to be measured is decomposed by one layer of wavelet decomposition, and each layer of image is decomposed into low-frequency and high-frequency wavelet coefficient matrices. The frequency contains horizontal, vertical and diagonal direction coefficients; (3)图像小波重构:利用Canny算法对图像近似部分,即低频部分进行边缘检测,得到低频部分的子图像;同时利用Roberts和Sobel算法对图像水平方向、垂直方向和对角线方向系数,即高频部分进行边缘检测,得到高频部分的子图像;将低频部分的子图像和高频部分的子图像进行小波重构,得到边缘图像;(3) Image wavelet reconstruction: use the Canny algorithm to detect the edge of the approximate part of the image, that is, the low-frequency part, and obtain the sub-image of the low-frequency part; That is, edge detection is performed on the high-frequency part to obtain the sub-image of the high-frequency part; the sub-image of the low-frequency part and the sub-image of the high-frequency part are subjected to wavelet reconstruction to obtain the edge image; (4)形态学填充:利用孔洞填充方式对边缘图像进行形态学填充,得到待测增强边缘图像;(4) Morphological filling: the edge image is morphologically filled by using the hole filling method to obtain the enhanced edge image to be tested; (5)图像匹配:构建危险品标准图像,利用曲率的轮廓角点方法对待测增强边缘图像和危险品标准图像进行匹配,得到曲率角点的危险品判断结果;(5) Image matching: Construct a standard image of dangerous goods, and use the contour corner point method of curvature to match the enhanced edge image to be tested and the standard image of dangerous goods, and obtain the judgment result of dangerous goods at the corners of curvature; (6)特征曲线检测:构建常见危险品特征曲线,同时采用无机物特征曲线方法对待测物体图像进行危险品检测匹配,得到曲线的危险品判断结果。(6) Characteristic curve detection: Construct the characteristic curve of common dangerous goods, and at the same time use the inorganic characteristic curve method to detect and match the image of the object to be measured, and obtain the dangerous goods judgment result of the curve. 2.根据权利要求1所述的一种危险品图形识别算法,其特征在于,步骤(2)所述图像小波分解在二维情况下,需要尺度函数
Figure FDA0003008657660000021
(x,y)和二维小波ψH(x,y)、ψV(x,y)和ψD(x,y),其均可表示为一维尺度函数
Figure FDA0003008657660000022
和ψ相应小波函数的乘积,如下式:
2. A kind of dangerous goods graphic recognition algorithm according to claim 1, is characterized in that, in the case of two-dimensional image wavelet decomposition of step (2), scale function is required
Figure FDA0003008657660000021
(x, y) and two-dimensional wavelets ψ H (x, y), ψ V (x, y) and ψ D (x, y), all of which can be expressed as one-dimensional scaling functions
Figure FDA0003008657660000022
and the product of the corresponding wavelet function of ψ, as follows:
Figure FDA0003008657660000023
Figure FDA0003008657660000023
其二维可分离方向敏感小波可表示为:Its two-dimensional separable direction-sensitive wavelet can be expressed as:
Figure FDA0003008657660000024
Figure FDA0003008657660000024
Figure FDA0003008657660000025
Figure FDA0003008657660000025
ψD(x,y)=ψ(x)ψ(y) (4)ψ D (x, y) = ψ(x)ψ(y) (4) 式中:ψH、ψV和ψD分别代表沿不同方向的图像强度变化。In the formula: ψ H , ψ V and ψ D represent the image intensity changes along different directions, respectively.
3.根据权利要求2所述的一种危险品图形识别算法,其特征在于,所述可分离二维尺度和小波函数给定后,定义尺度和小波基函数,如下式:3. a kind of dangerous goods graphic identification algorithm according to claim 2, is characterized in that, after described separable two-dimensional scale and wavelet function are given, define scale and wavelet basis function, as follows:
Figure FDA0003008657660000026
Figure FDA0003008657660000026
Figure FDA0003008657660000027
Figure FDA0003008657660000027
式中:i={H,V,D}表示不同方向的小波;In the formula: i={H, V, D} represents wavelets in different directions; 则尺寸为M×N的f(x,y)离散小波变换为:Then the discrete wavelet transform of f(x, y) with size M×N is:
Figure FDA0003008657660000028
Figure FDA0003008657660000028
Figure FDA0003008657660000029
Figure FDA0003008657660000029
式中:j0为初始尺度,
Figure FDA00030086576600000210
定义尺度为j0,f(x,y)的近似图像;Wψ(j,m,n)包含水平、垂直和对角方向的细节图像;令j0=0,且选择N=M=2j,j=0,1,2,…,j-1和m,n=0,1,2,…2j-1。
where: j 0 is the initial scale,
Figure FDA00030086576600000210
Define an approximate image of scale j 0 , f(x, y); W ψ (j, m, n) contains detail images in horizontal, vertical and diagonal directions; let j 0 =0, and choose N=M=2 j , j=0, 1, 2, ..., j-1 and m, n=0, 1, 2, ... 2 j -1.
4.根据权利要求1所述的一种危险品图形识别算法,其特征在于,步骤(3)所述小波重构公式如下:4. a kind of dangerous goods graphic identification algorithm according to claim 1, is characterized in that, the described wavelet reconstruction formula of step (3) is as follows:
Figure FDA0003008657660000031
Figure FDA0003008657660000031
5.根据权利要求1所述的一种危险品图形识别算法,其特征在于,步骤(4)所述孔洞填充公式如下:5. a kind of dangerous goods graphic identification algorithm according to claim 1, is characterized in that, the described hole filling formula of step (4) is as follows:
Figure FDA0003008657660000032
Figure FDA0003008657660000032
式中:k=1,2,3...。In the formula: k=1, 2, 3....
6.根据权利要求1所述的一种危险品图形识别算法,其特征在于,步骤(5)所述曲率的数学定义如下:在光滑弧上自点M开始取弧段,其长为Δs,对应切线转角为△α,定义弧段;6. a kind of dangerous goods figure recognition algorithm according to claim 1 is characterized in that, the mathematical definition of the curvature described in step (5) is as follows: on smooth arc, take arc segment from point M, and its length is Δs, The corresponding tangent angle is △α, which defines the arc segment; 其中,△S上的平均曲率为:Among them, the average curvature on △S is:
Figure FDA0003008657660000033
Figure FDA0003008657660000033
点M处的曲率为:The curvature at point M is:
Figure FDA0003008657660000034
Figure FDA0003008657660000034
其离散曲率用曲线参数方程计算公式如下:Its discrete curvature is calculated by the curve parameter equation as follows:
Figure FDA0003008657660000035
Figure FDA0003008657660000035
7.根据权利要求1所述的一种危险品图形识别算法,其特征在于,步骤(5)所述曲率包括图像全局和局部曲率,其具体计算过程如下:7. A kind of dangerous goods graphic recognition algorithm according to claim 1, is characterized in that, the described curvature of step (5) comprises image global and local curvature, and its concrete calculation process is as follows: S1:计算各待测增强边缘图像轮廓的平均曲率;S1: Calculate the average curvature of the contour of each enhanced edge image to be tested; S2:然后将轮廓平均曲率作为阈值,对当前轮廓点进行判断,若当前曲率小于阈值,则为真正轮廓角点;S2: Then use the average curvature of the contour as the threshold to judge the current contour point, if the current curvature is less than the threshold, it is the real contour corner; S3:提取出所有待测增强边缘图像的角点后,并将待测增强边缘图像与危险品标准图像进行角点匹配;S3: After extracting the corners of all the enhanced edge images to be tested, perform corner matching between the enhanced edge images to be tested and the standard image of dangerous goods; 所述角点匹配时构建角点特征描述子,其角点特征描述子定义为:假设P1、P2和P3为轮廓曲线S上相邻的三个角点,其曲率分别为K1、K2和K3,P1到P2的距离为L1,P2到P3为L2),则P2的描述子B为:When the corner points are matched, a corner point feature descriptor is constructed, and the corner point feature descriptor is defined as: Suppose P 1 , P 2 and P 3 are three adjacent corner points on the contour curve S, and their curvatures are K 1 , P 2 and P 3 respectively. K 2 and K 3 , the distance from P 1 to P 2 is L 1 , and P 2 to P 3 is L 2 ), then the descriptor B of P 2 is: B=(L1+L2)(K3-K1) (14)。B=(L 1 +L 2 )(K 3 −K 1 ) (14). 8.根据权利要求1所述的一种危险品图形识别算法,其特征在于,步骤(5)所述图像匹配具体步骤如下:8. a kind of dangerous goods graphic identification algorithm according to claim 1, is characterized in that, the concrete steps of image matching described in step (5) are as follows: SS1:提取轮廓特征鲜明的完整的边缘图和危险品标准图像的真实角点;SS1: Extract the complete edge map with distinct contour features and the real corners of the standard image of dangerous goods; SS2:利用式(14)分别求出每个待测增强边缘图像角点和危险品标准图像角点的描述子B和B′;SS2: Use formula (14) to find the descriptors B and B′ of each corner of the enhanced edge image to be tested and the corner of the standard image of dangerous goods; SS3:将待测增强边缘图像中每个角点描述子与危险品标准图像中所有角点描述子做顺序差值运算,若差值向量向量第一项与第二项比值小于阈值,阈值为0.5,则两幅图像的该对角点匹配,否则,不匹配;SS3: Perform sequential difference operation between each corner descriptor in the enhanced edge image to be tested and all corner descriptors in the standard image of dangerous goods. If the ratio between the first item and the second item of the difference vector vector is less than the threshold, the threshold is 0.5, the diagonal points of the two images match, otherwise, they do not match; SS4:统计同一目标轮廓角点匹配相似度百分比,若相似度大于预设值,则该物品为危险品。SS4: Count the matching similarity percentage of the corner points of the same target contour. If the similarity is greater than the preset value, the item is a dangerous item. 9.根据权利要求1所述的一种危险品图形识别算法,其特征在于,步骤(6)所述特征曲线检测具体过程如下:9. A kind of dangerous goods graphic identification algorithm according to claim 1, is characterized in that, the described characteristic curve detection specific process of step (6) is as follows: SSS1:通过X射线安检机获取待测物体图像的高低能灰度值,根据高低能灰度值绘制待测物体图像的特征曲线;SSS1: Obtain the high and low energy gray value of the image of the object to be tested through the X-ray security inspection machine, and draw the characteristic curve of the image of the object to be tested according to the high and low energy gray value; SSS2:构建常见危险品特征曲线,并将其作为检测危险品的标准;SSS2: Construct the characteristic curve of common dangerous goods and use it as the standard for detecting dangerous goods; SSS3:将待测物体图像的特征曲线与常见危险品特征曲线进行比较;若待测物体图像的特征曲线靠近危险品特征曲线,则判断该物品为危险品,反之,则判定正常。SSS3: Compare the characteristic curve of the image of the object to be measured with the characteristic curve of common dangerous goods; if the characteristic curve of the image of the object to be measured is close to the characteristic curve of the dangerous goods, it is judged that the item is a dangerous goods; otherwise, it is judged to be normal.
CN202110369262.5A 2021-04-06 2021-04-06 A Pattern Recognition Algorithm for Dangerous Goods Active CN113076880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110369262.5A CN113076880B (en) 2021-04-06 2021-04-06 A Pattern Recognition Algorithm for Dangerous Goods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110369262.5A CN113076880B (en) 2021-04-06 2021-04-06 A Pattern Recognition Algorithm for Dangerous Goods

Publications (2)

Publication Number Publication Date
CN113076880A true CN113076880A (en) 2021-07-06
CN113076880B CN113076880B (en) 2023-06-06

Family

ID=76615151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110369262.5A Active CN113076880B (en) 2021-04-06 2021-04-06 A Pattern Recognition Algorithm for Dangerous Goods

Country Status (1)

Country Link
CN (1) CN113076880B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114332512A (en) * 2022-03-14 2022-04-12 南京正驰科技发展有限公司 Security check card port detection method and system based on big data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198483A (en) * 2013-04-07 2013-07-10 西安电子科技大学 Multiple time phase remote sensing image registration method based on edge and spectral reflectivity curve
CN110516531A (en) * 2019-07-11 2019-11-29 广东工业大学 A Recognition Method of Dangerous Goods Signs Based on Template Matching
CN111091111A (en) * 2019-12-25 2020-05-01 河北工业大学 A method for identifying dangerous targets under the vehicle

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198483A (en) * 2013-04-07 2013-07-10 西安电子科技大学 Multiple time phase remote sensing image registration method based on edge and spectral reflectivity curve
CN110516531A (en) * 2019-07-11 2019-11-29 广东工业大学 A Recognition Method of Dangerous Goods Signs Based on Template Matching
CN111091111A (en) * 2019-12-25 2020-05-01 河北工业大学 A method for identifying dangerous targets under the vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114332512A (en) * 2022-03-14 2022-04-12 南京正驰科技发展有限公司 Security check card port detection method and system based on big data

Also Published As

Publication number Publication date
CN113076880B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
Jiang et al. HDCB-Net: A neural network with the hybrid dilated convolution for pixel-level crack detection on concrete bridges
US8063815B2 (en) Method and system for automatic classification of objects
Mery et al. Automatic defect recognition in x-ray testing using computer vision
Riffo et al. Automated detection of threat objects using adapted implicit shape model
Di et al. A machine learning approach to crater detection from topographic data
CN104636707B (en) The method of automatic detection cigarette
CN107563433B (en) Infrared small target detection method based on convolutional neural network
CN105809655A (en) Vehicle checking method and system
CN103984966A (en) SAR image target recognition method based on sparse representation
CN108830839A (en) A kind of thermal image defect inspection method of the pressure vessel based on the segmentation of ranks variable step
CN108717069A (en) A kind of high-pressure bottle thermal imaging imperfection detection method based on the segmentation of row variable step
Tasdemir et al. ROI detection in mammogram images using wavelet-based Haralick and HOG features
CN109800755A (en) A kind of remote sensing image small target detecting method based on Analysis On Multi-scale Features
CN106557740A (en) The recognition methods of oil depot target in a kind of remote sensing images
Xu et al. A defect inspection for explosive cartridge using an improved visual attention and image-weighted eigenvalue
CN117746020A (en) Method for detecting forbidden articles in X-ray security inspection image
CN113076880A (en) Hazardous article pattern recognition algorithm
Mosorov et al. Image texture defect detection method using fuzzy C-means clustering for visual inspection systems
Zhou Using vector quantization of hough transform for circle detection
CN105160348B (en) Live trace based on image statistics feature the same method and system automatically
Grycuk et al. New image descriptor from edge detector and blob extractor
Liu et al. A Lightweight Dangerous Liquid Detection Method Based on Depthwise Separable Convolution for X‐Ray Security Inspection
CN116912519A (en) Contraband detection method integrating image color features
Patel et al. Surface defect detection using SVM‐based machine vision system with optimized feature
CN103632164A (en) Reeling steel state identifying method based on KNN reeling steel picture data of optimized KAP sample

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant